This course focuses on the basic methods for solving linear and nonlinear constrained optimization problems, including the direct discretization of optimal control problems and simple neuronal networks, making special emphasis in the educated use of the state-of-the-art routines offered by Matlab’s optimization toolbox.