FUNCTION REFERENCE
mpcmoveopt
Create runtime overrides for mpcmove as a scalar structure.
Create runtime overrides for mpcmove as a scalar structure.
Syntax
options = mpcmoveoptSupported fields (default []): OutputWeights, MVWeights, MVRateWeights, ECRWeight, OutputMin, OutputMax, MVMin, MVMax, MVUsed (also accepts the documented spelling MVused). Nonempty weight overrides must match the controller constant/time-varying format. Bound overrides require existing finite controller bounds; a row override translates a time-varying profile, and a matrix replaces it. Repeat the final row through the horizon. MVUsed supplies the actual previously applied MV in engineering units, correcting the prior state and rate baseline.
Example
c=mpc(ss(.8,.2,1,0,.1)); c.MV.Max=1; s=mpcstate(c); o=mpcmoveopt; o.MVMax=.5; o.MVRateWeights=.2; mv=mpcmove(c,s,0,1,[],o)Differences from MATLAB: Options are a structure; other fields explicitly error as not supported, including MVTarget, OnlyComputeCost, CustomConstraint and horizon overrides. Plain scalar structures with supported fields are also accepted.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.