CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

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.

RoleNameTypeDimensions / attributes / defaultDescription
inputstateReal[:]State at the start of the interval
inputcontrolInputReal[:]Control held over the interval
inputsamplePeriodReal(unit="s")Interval length
outputnextStateReal[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;