Optimization Problem Setup

Choose solver, define objective function and constraints, compute in parallel

To represent your optimization problem for solution, you generally follow these steps:

• Choose an optimization solver.

• Create an objective function, typically the function you want to minimize.

• Create constraints, if any.

• Set options, or use the default options.

• Call the appropriate solver.

For a basic nonlinear optimization example, see Solve a Constrained Nonlinear Problem. For a basic mixed-integer linear programming example, see Mixed-Integer Linear Programming Basics.

Featured Examples

Was this topic helpful?