This is machine translation
Mouseover text to see original. Click the button below to return to the English verison of the page.
Note: This page has been translated byMathWorks.Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.
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, seeSolve a Constrained Nonlinear Problem. For a basic mixed-integer linear programming example, seeMixed-Integer Linear Programming Basics.
- Choose a Solver
Choose the most appropriate solver and algorithm - Write Objective Function
Define the function to minimize or maximize, representing your problem - Write Constraints
Provide bounds, linear constraints, and nonlinear constraints - Set Options
Set optimization options - Parallel Computing
Solve constrained nonlinear minimization or multiobjective optimization problems in parallel
Featured Examples
Was this topic helpful?