State space
===========
A state-space model: x' = A x + B u and y = C x + D u for s, or x[k+1] = A x + B u and y = C x + D u for z. A is n x n, B n x m, C p x n, D p x m, and x0 is the initial state.
``state_space`` · control
.. raw:: html
State spacefn
A0
B1
C1
D0
x0
domains
solverauto
Inputs
------
.. list-table::
:header-rows: 1
* - Port
- Type
- Unit
- Components
* - ``u``
- numbers
- —
- —
Outputs
-------
.. list-table::
:header-rows: 1
* - Port
- Type
- Unit
- Components
* - ``y``
- numbers
- —
- —
* - ``x``
- numbers
- —
- —
Parameters
----------
.. list-table::
:header-rows: 1
* - Param
- Type
- Default
- Options or unit
* - ``A``
- matrix
- ``"0"``
- —
* - ``B``
- matrix
- ``"1"``
- —
* - ``C``
- matrix
- ``"1"``
- —
* - ``D``
- matrix
- ``"0"``
- —
* - ``x0``
- matrix
- —
- —
* - ``domain``
- enum
- ``"s"``
- ``s``, ``z``
* - ``solver``
- enum
- ``"auto"``
- ``auto``, ``rk4``, ``rk45``, ``rk2``, ``euler``, ``discrete``