function
Control.Mpc.PartialDynamics
Interface for the discrete-time prediction model x+ = f(x, u)
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | state | Real | [:] | State at the start of the interval |
| input | controlInput | Real | [:] | Control held over the interval |
| input | samplePeriod | Real | (unit="s") | Interval length |
| output | nextState | Real | [size(state, 1)] | State at the end of the interval |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function PartialDynamics
"Interface for the discrete-time prediction model x+ = f(x, u)"
input Real state[:] "State at the start of the interval";
input Real controlInput[:] "Control held over the interval";
input Real samplePeriod(unit="s") "Interval length";
output Real nextState[size(state, 1)] "State at the end of the interval";
end PartialDynamics;