Method of mss.
Evaluate the output equation at a given state and input.
Source: src/model/@mss/outputValue.m
y = outputValue(sys, stateVector, inputVector)
y = sys.outputValue(x, u)outputValue is the output-equation counterpart of functionValue.
It evaluates
with
the norm-1 monomial vector over
and
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:
CPNTensor — the
unified value primitive computeFunctionValue,
sliced to the output rows and columns.mtiTensor, e.g. TTTensor — the tensor’s
own computeOutputValueMss.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
and
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.
| Argument | Description |
|---|---|
sys |
The mss model. |
stateVector |
State
at the evaluation point (sys.nState × 1). |
inputVector |
Input
at the evaluation point (sys.nInput × 1; [] if
the model has no inputs). |
| Output | Description |
|---|---|
outputValues |
sys.nOutput × 1 output vector
. |
sys = rmss(3,1,1,4);
y = sys.outputValue([1; 0; -1], 0.5);functionValue ·
outputJacobian
· msim · mss
MyToolbox Documentation | Generated automatically by CI/CD pipeline