|On this page…|
State-space models are models that use state variables to describe a system by a set of first-order differential or difference equations, rather than by one or more nth-order differential or difference equations. State variables x(t) can be reconstructed from the measured input-output data, but are not themselves measured during an experiment.
The state-space model structure is a good choice for quick estimation because it requires you to specify only one input, the model order, n. The model order is an integer equal to the dimension of x(t) and relates to, but is not necessarily equal to, the number of delayed inputs and outputs used in the corresponding linear difference equation.
It is often easier to define a parameterized state-space model in continuous time because physical laws are most often described in terms of differential equations. In continuous-time, the state-space description has the following form:
The matrices F, G, H, and D contain elements with physical significance—for example, material constants. x0 specifies the initial states.
Note: = 0 gives the state-space representation of an Output-Error model. For more information, see What Are Polynomial Models?.
You can estimate continuous-time state-space model using both time- and frequency-domain data.
The discrete-time state-space model structure is often written in the innovations form that describes noise:
where T is the sampling interval, u(kT) is the input at time instant kT, and y(kT) is the output at time instant kT.
Note: K=0 gives the state-space representation of an Output-Error model. For more information about Output-Error models, see What Are Polynomial Models?.
Discrete-time state-space models provide the same type of linear difference relationship between the inputs and outputs as the linear ARX model, but are rearranged such that there is only one delay in the expressions.
You cannot estimate a discrete-time state-space model using continuous-time frequency-domain data.
The relationships between the discrete state-space matrices A, B, C, D, and K and the continuous-time state-space matrices F, G, H, D, and are given for piece-wise-constant input, as follows:
These relationships assume that the input is piece-wise-constant over time intervals .
The exact relationship between K and is complicated. However, for short sampling intervals T, the following approximation works well:
For linear models, the general model description is given by:
G is a transfer function that takes the input u to the output y. H is a transfer function that describes the properties of the additive output noise model.
The relationships between the transfer functions and the discrete-time state-space matrices are given by the following equations:
where Inx is the nx-by-nx identity matrix, Iny is the nx-by-nx identity matrix, and ny is the dimension of y and e. The state-space representation in the continuous-time case is similar.