Method of mss.
Linearize an explicit MTI model around an operating point (not necessarily an equilibrium).
Source: src/model/@mss/linearize.m
lsys = linearize(msys, x_op, u_op)
[A, B, C, D] = linearize(msys, x_op, u_op)
lsys = linearize(msys, x_op) % only if nInput == 0linearize forms the first-order Taylor approximation of
the explicit multilinear system
around . The state evolution is valid for both continuous-time or discrete-time .
The result is a linear state-space model in the deviations , , and , as
The four matrices are taken straight off the model Jacobians as
see [1] or [2] for further details.
The operating point does not have to be an equilibrium —
linearize never checks if
.
Users can verify equilibrium conditions by calling functionValue
and outputValue
first.
| Argument | Description |
|---|---|
msys |
The mss model. |
x_op |
State operating point (msys.nState elements). |
u_op |
Input operating point (msys.nInput elements); may be
omitted when the model has no inputs. |
| Output | Description |
|---|---|
lsys |
(one output) sparss model with the sample time
and signal names of msys. |
A, B, C, D |
(several outputs) Raw linearization matrices:
nState×nState,
nState×nInput,
nOutput×nState,
nOutput×nInput. |
sys = rmss(3,1,1,4);
lsys = linearize(sys, [1; 0; -1], 0.5); % sparss model
[A,B,C,D] = linearize(sys, [1; 0; -1], 0.5); % raw matrices
eig(A) % local stability at the operating pointstateJacobian ·
outputJacobian
· msim · mss · linearize
MyToolbox Documentation | Generated automatically by CI/CD pipeline