outputValue

Method of mss.

Evaluate the output equation at a given state and input.

Source: src/model/@mss/outputValue.m

Syntax

y = outputValue(sys, stateVector, inputVector)
y = sys.outputValue(x, u)

Description

outputValue is the output-equation counterpart of functionValue. It evaluates

y=ΦGm(x,u), y = \Phi_G\, m(x,u),

with mm the norm-1 monomial vector over v=[x;u]v=[x;\,u] and ΦG\Phi_G the output-equation block of the parameter matrix. Only the rows outputEquationIndex and the monomial columns that block uses (columnIndexOutputEq) are evaluated.

The two evaluation paths mirror functionValue:

The value is the same whether the model is continuous or discrete: the output equation is static, so timeStepSize does not enter.

As in functionValue, the CPN path assembles the signal vector by scattering xx and uu through stateIndex and inputIndex, so a permuted structure-matrix row layout is evaluated correctly.

msim uses this equation to produce its third output argument, though for a CPNTensor model it compiles the block once itself rather than calling this method per time point.

Input arguments

Argument Description
sys The mss model.
stateVector State xx at the evaluation point (sys.nState × 1).
inputVector Input uu at the evaluation point (sys.nInput × 1; [] if the model has no inputs).

Output arguments

Output Description
outputValues sys.nOutput × 1 output vector yy.

Example

sys = rmss(3,1,1,4);
y = sys.outputValue([1; 0; -1], 0.5);

See also

functionValue · outputJacobian · msim · mss


MyToolbox Documentation | Generated automatically by CI/CD pipeline