Write Objective Function
How to express the objective for various problem types.
Find the appropriate form for your objective function.
Describes which solvers can handle complex numbers.
How to write objective functions for scalar nonlinear problems.
How to write objective functions for nonlinear least squares or systems of nonlinear equations.
How to write objective functions for linear programming, integer linear programming, quadratic programming, or linear least squares.
Save function evaluations, typically useful in simulations.
How to optimize for a maximum instead of a minimum.
Pass Extra Parameters
Including extra parameters or data in your objective or nonlinear constraint functions.