Main Content
OptimizationProblem
Optimization problem
Description
An OptimizationProblem
object describes an optimization
problem, including variables for the optimization, constraints, the objective function,
and whether the objective is to be maximized or minimized. Solve a complete problem
using solve
.
Tip
For the full workflow, see Problem-Based Optimization Workflow.
Creation
Create an OptimizationProblem
object by using optimproblem
.
Warning
The problem-based approach does not support complex values in the following: an objective function, nonlinear equalities, and nonlinear inequalities. If a function calculation has a complex value, even as an intermediate value, the final result might be incorrect.
Properties
Object Functions
evaluate | Evaluate optimization expression or objectives and constraints in problem |
issatisfied | Constraint satisfaction of an optimization problem at a set of points |
optimoptions | Create optimization options |
prob2struct | Convert optimization problem or equation problem to solver form |
show | Display information about optimization object |
solve | Solve optimization problem or equation problem |
solvers | Determine default and valid solvers for optimization problem or equation problem |
varindex | Map problem variables to solver-based variable index |
write | Save optimization object description |