State space (2 states)
control.state_space2
Linear system x' = A x + B u, y = C x + D u with two states, one input and one output. x1 and x2 start at x10 and x20.
Ports
| Name | Domain | Direction |
|---|---|---|
u | signal | in |
y | signal | out |
Parameters
| Name | Unit | Default | Description |
|---|---|---|---|
a11 | 1/s | -1 | A row 1, column 1 |
a12 | 1/s | 0 | A row 1, column 2 |
a21 | 1/s | 0 | A row 2, column 1 |
a22 | 1/s | -1 | A row 2, column 2 |
b1 | 1/s | 1 | B row 1 |
b2 | 1/s | 0 | B row 2 |
c1 | 1 | 1 | C column 1 |
c2 | 1 | 0 | C column 2 |
d | 1 | 0 | Feedthrough D |
x10 | 1 | 0 | x1 at the start |
x20 | 1 | 0 | x2 at the start |
Variables
| Name | Unit | Start | Description |
|---|---|---|---|
x1 | 1 | x10 | First state |
x2 | 1 | x20 | Second state |
Equations
der(x1) = a11 * x1 + a12 * x2 + b1 * u der(x2) = a21 * x1 + a22 * x2 + b2 * u y = c1 * x1 + c2 * x2 + d * u