DataDrivenMPCState
Description
An DataDrivenMPCState object is a handle object pointing to the
current state of a DataDrivenMPC object.
Use a DataDrivenMPCState object to initialize and hold the current state of a
data-driven MPC controller within a MATLAB® simulation.
To initialize and hold the state of an implicit or explicit MPC controller, use mpcstate instead.
The state of a data-driven MPC controller consists in its past input and output
trajectory. Before simulation, use DataDrivenMPCState to obtain the handle
object pointing to the current controller state. Then, make sure that the
PastInputBuffer and PastOutputBuffer properties of
the DataDrivenMPCState are populated with the correct values that reflect the
plant inputs and outputs before the simulation (the default values are zeroes). During
simulation, mpcmove updates the controller state when
calculating a new control move. After the simulation, the handle object reflects the state of
the controller at the end of the simulation. For more information about handle objects, see
Handle Object Behavior.
Creation
Description
initializes the xc = DataDrivenMPCState(ddobj,PastInputBuffer,PastOutputBuffer)PastInputBuffer and
PastOutputBuffer properties with custom input and output
trajectories.
Input Arguments
Output Arguments
Properties
Object Functions
mpcmove | Compute optimal control action and update controller states |
Examples
Version History
Introduced in R2026a