Skip to content

Commit 45c585c

Browse files
committed
up readme
1 parent f611b94 commit 45c585c

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,21 +105,20 @@ julia> P02_named.x
105105

106106
### Internals: Transformation of non-proper models to proper statespace form
107107
For some models, ModelingToolkit will fail to produce a proper statespace model (a non-proper model is differentiating the inputs, i.e., it has a numerator degree higher than the denominator degree if represented as a transfer function) when calling `linearize`. For such models, given on the form
108-
$$
109-
\dot x = Ax + Bu + \bar B \dot u
110-
$$
108+
$$\dot x = Ax + Bu + \bar B \dot u$$
111109
we create the following augmented descriptor model
112-
$$
110+
```math
113111
\begin{aligned}
114112
sX &= Ax + BU + s\bar B U \\
115-
[X_u = U]\\
116-
s(X - \bar B X_u) = AX + BU \leftrightarrow \\
117-
s \begin{bmatrix}I & -\bar B \\ 0 & 0 \end{bmatrix} =
113+
[X_u &= U]\\
114+
s(X - \bar B X_u) &= AX + BU \\
115+
s \begin{bmatrix}I & -\bar B \\ 0 & 0 \end{bmatrix} &=
118116
\begin{bmatrix} A & 0 \\ 0 & -I\end{bmatrix}
119117
\begin{bmatrix}X \\ X_u \end{bmatrix} +
120-
\begin{bmatrix} B \\ I_u\end{bmatrix} U
118+
\begin{bmatrix} B \\ I_u\end{bmatrix} U \\
119+
sE &= A_e x_e + B_e u
121120
\end{aligned}
122-
$$
121+
```
123122
where $X_u$ is a new algebraic state variable and $I_u$ is a selector matrix that picks out the differentiated inputs appearing in $\dot u$ (if all inputs appear, $I_u = I$).
124123

125124
This model may be converted to a proper statespace model (if the system is indeed proper) using `DescriptorSystems.dss2ss`.

0 commit comments

Comments
 (0)