StateSpace
StateSpace represents a vector-fitted matrix rational approximation with
real or complex poles and factorized residue terms. For pole count \(Q\), define
the pole-index set
Note
The consuming model classifies the input \(\mathbf{u}\) as differential or algebraic. Algebraic input requires \(\mathbf{E} = \mathbf{0}\).
Note
Each factorized term has residue \(\mathbf{R}_q = \mathbf{C}_{:,q}\mathbf{B}_{q,:}\), so \(\mathrm{rank}(\mathbf{R}_q) \le 1\). Terms with the same pole may be repeated. Their residues sum and can have higher rank.
Block Diagram

Figure 1: StateSpace model
Model Parameters
For output dimension \(N\), input dimension \(K\), pole count \(Q\), input units \([u]\), and output units \([y]\):
Symbol |
Units |
JSON |
Description |
Note |
|---|---|---|---|---|
\(\mathbf{D}\) |
\([y]/[u]\) |
|
Constant coefficient |
\(\mathbf{D} \in \mathbb{R}^{N \times K}\) |
\(\mathbf{E}\) |
\(\mathrm{s}[y]/[u]\) |
|
Linear coefficient |
\(\mathbf{E} \in \mathbb{R}^{N \times K}\) |
\(\mathbf{p}\) |
\([\mathrm{s}^{-1}]\) |
|
Poles |
\(\mathbf{p} \in \mathbb{C}^Q\) |
\(\mathbf{C}\) |
\([y]/[u]\) |
|
Output matrix |
\(\mathbf{C} \in \mathbb{C}^{N \times Q}\) |
\(\mathbf{B}\) |
\([\mathrm{s}^{-1}]\) |
|
Input matrix |
\(\mathbf{B} \in \mathbb{C}^{Q \times K}\) |
Parameter Validation
Let \(\mathcal{Q}_\mathrm{r} \subseteq \mathcal{Q}\) contain the real-pole indices and \(\mathcal{Q}_\mathrm{c} \subseteq \mathcal{Q}\) the first indices of the nonreal conjugate pairs. Define their partner-index set as
The sets \(\mathcal{Q}_\mathrm{r}\), \(\mathcal{Q}_\mathrm{c}\), and \(\mathcal{Q}_\mathrm{c}^{+}\) are pairwise disjoint.
Model Derived Parameters
Model Ports
Symbol |
Port |
Type |
Units |
Description |
Note |
|---|---|---|---|---|---|
\(\mathbf{u}\) |
|
Input |
\([u]\) |
Input vector port |
\(\mathbf{u} \in \mathbb{R}^K\) |
\(\mathbf{y}\) |
|
Output |
\([y]\) |
Output vector port |
\(\mathbf{y} \in \mathbb{R}^N\) |
Submodels
None.
Submodel Validation
None.
Submodel Wiring
None.
Model Variables
Internal Variables
Differential
Symbol |
Units |
Description |
Note |
|---|---|---|---|
\(w_q\) |
\([u]\) |
Real memory state |
\(w_q \in \mathbb{R}\), \(q \in \mathcal{Q}_\mathrm{r} \cup \mathcal{Q}_\mathrm{c}\) |
\(v_q\) |
\([u]\) |
Imaginary memory state |
\(v_q \in \mathbb{R}\), \(q \in \mathcal{Q}_\mathrm{c}\) |
The documented real realization has order \(Q\).
Algebraic
None.
External Variables
Differential
Symbol |
Units |
Description |
Note |
|---|---|---|---|
\(\mathbf{u}\) |
\([u]\) |
Input vector |
Differential-input configuration, \(\mathbf{u} \in \mathbb{R}^K\) |
Algebraic
Symbol |
Units |
Description |
Note |
|---|---|---|---|
\(\mathbf{u}\) |
\([u]\) |
Input vector |
Algebraic-input configuration, \(\mathbf{u} \in \mathbb{R}^K\) |
Model Equations
Internal Equations
Differential
Algebraic
None.
External Equations
Initialization
None.
Monitors
None.