setCustomSolver
Configures an MPC object to use the QP solver from Optimization Toolbox as a custom solver
Since R2021b
Description
setCustomSolver(
configures
mpcobj
,'quadprog')mpcobj
to use quadprog
from Optimization Toolbox™ as a custom QP solver for both simulation and code generation. Specifically,
this syntax generates, in the current folder, the files mpcCustomSolver.m
and mpcCustomSolverCodeGen.m
, which internally call the active-set
quadprog
(Optimization Toolbox) solver. It then sets
mpcobj.Optimizer.CustomSolver
and
mpcobj.Optimizer.CustomSolverCodeGen
to
true
.
Examples
Input Arguments
Version History
Introduced in R2021b
See Also
Functions
mpcqpsolver
|mpcqpsolverOptions
|mpcInteriorPointSolver
|mpcInteriorPointOptions
|mpcActiveSetSolver
|mpcActiveSetOptions
|quadprog
(Optimization Toolbox)