discrete control set mpc
mpc problems with discrete control sets are problems in which some or all manipulated
variables belong to discrete sets. to handle these cases, for a given manipulated variable,
specify the type
field of the corresponding
manipulatedvariables
structure in the
object:
'binary'
— restrict the manipulated variable to be either 0 or 1.'integer'
— restrict the manipulated variable to be an integer.vector containing a discrete set of possible values — restrict the manipulated variable to the specified values, for example
mpcobj.mv(2).type=[-1,0,0.5,1,2];
.
by default, the type is set to 'continuous'
, indicating that
the manipulated variable is continuous.
you can simulate the discrete control set linear mpc controller in:
matlab® — using , , and .
simulink® — using the , , and blocks.
when simulating multiple controllers using mpcmovemultiple
or the
multiple mpc controllers block, all candidate controllers must use the same
manipulated variable type configuration.
code generation from a controller with discrete control sets is supported in both matlab and simulink.
a new built-in mixed-integer quadratic programming (miqp) solver is used to solve the
discrete control set mpc problem. you can use the new property
optimizer.mixedintegeroptions
of the mpc
object to
customize the options for this solver (like for example number of iterations and constraints
tolerance).