optimproblem
Create an optimization problem object.
📝Syntax
prob = optimproblem()
prob = optimproblem(name, value)
📥Input Arguments
Parameter Description
name, value problem properties such as Objective, Constraints, Description or ObjectiveSense.
📤Output Arguments
Parameter Description
prob optimization problem object.
📄Description

optimproblem creates a problem-based model. It can be converted with prob2struct or solved directly for supported unconstrained models.

💡Examples
x = optimvar('x');
prob = optimproblem('Objective', (x - 2)^2);
[sol, fval] = solve(prob)
🔗See Also
optimvarsolve
Used Functions
optimvar solve prob2struct
📚Bibliography
J. Nocedal and S. J. Wright, Numerical Optimization, Springer, 2006.
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub