lcapy.statespace.StateSpace
- class lcapy.statespace.StateSpace(A, B, C, D, u=None, y=None, x=None, x0=None)
Bases:
StateSpaceBaseContinuous-time linear time-invariant state space model.
Methods
Characteristic polynomial (aka system polynomial).
discretize([method, alpha])Convert to a discrete-time state space approximation.
from_circuit(cct[, node_voltages, ...])generalized_bilinear_transform([alpha])System of output equations:
System of first-order differential state equations:
Attributes
System transfer functions.
X(s) / U(s)
Diagonal matrix of eigenvalues.
Modal matrix (eigenvectors of A).
Characteristic polynomial (aka system polynomial).
s-domain state transition matrix.
Laplace transform of input vector.
Controllability gramian matrix.
Observability gramian matrix.
Reachability gramian matrix.
Laplace transform of state-variable vector.
Laplace transform of output vector.
Controllability gramian matrix.
Time derivative of state variable vector.
System impulse responses.
ILT{X(s) / U(s)}
Observability gramian matrix.
State transition matrix.
Reachability gramian matrix.
Input vector.
State variable vector.
State variable initial value vector.
Output vector.
- property G
System transfer functions. For a SISO system, use G[0].
- property H
X(s) / U(s)
- property Lambda
Diagonal matrix of eigenvalues.
- property M
Modal matrix (eigenvectors of A).
- property P
Characteristic polynomial (aka system polynomial).
lambda(s) = |s * I - A|
- property Phi
s-domain state transition matrix.
- property U
Laplace transform of input vector.
- property Wc
Controllability gramian matrix.
- property Wo
Observability gramian matrix.
- property Wr
Reachability gramian matrix.
- property X
Laplace transform of state-variable vector.
- property Y
Laplace transform of output vector.
- characteristic_polynomial()
Characteristic polynomial (aka system polynomial).
lambda(s) = |s * I - A|
- property controllability_gramian
Controllability gramian matrix.
- discretize(method='bilinear', alpha=0.5)
Convert to a discrete-time state space approximation.
The default method is ‘bilinear’. Other methods are ‘forward_euler’, ‘backward_euler’, and ‘gbf’. The latter has a parameter alpha.
- property dotx
Time derivative of state variable vector.
- property g
System impulse responses.
- property h
ILT{X(s) / U(s)}
- property observability_gramian
Observability gramian matrix.
- output_equations()
System of output equations:
y(t) = C x(t) + D u(t)
where y is the output vector, x is the state vector and u is the input vector.
- property phi
State transition matrix.
- property reachability_gramian
Reachability gramian matrix. This is equivalent to the controllability gramian matrix for a linear time independent system.
- state_equations()
System of first-order differential state equations:
dotx(t) = A x(t) + B u(t)
where x is the state vector and u is the input vector.
- property u
Input vector.
- property x
State variable vector.
- property x0
State variable initial value vector.
- property y
Output vector.