Table of Contents

State-space model

A state-space model models a system as a set of inputs, outputs, and state variables.

Linear state-space models can be written in matrix form.

State-space models can also be written with nonlinear equations. They can be linearized around a equilibrium point to get a linear model, which can then be written in a matrix form.

General linear forms

CT state-space

$$ \dot{\mathbf{q}}(t) = \mathbf{A}(t)\mathbf{q}(t) + \mathbf{B}(t)\mathbf{x}(t) $$ $$ \mathbf{y}(t) = \mathbf{C}(t)\mathbf{q}(t) + \mathbf{D}(t)\mathbf{x}(t) $$

Variables:

Parameters:

Additional conditions

DT state-space

$$ \mathbf{q}[n+1] = \mathbf{A}[n]\mathbf{q}[n] + \mathbf{B}[n]\mathbf{x}[n] $$ $$ \mathbf{y}[n] = \mathbf{C}[n]\mathbf{q}[n] + \mathbf{D}[n]\mathbf{x}[n] $$

Writing state-space models

  1. Choose state variables, which represent the memory of the system.
    1. Energy is often a good candidate for state variables.
    2. The first time derivative (CT case) or the difference (DT case) should be able to be written as a function of the current values of the state variables and the inputs.
    3. If only the second derivative of the state variable can be written in terms of current values of the state variables and inputs, then the first derivative of that state variable may be needed as another state variable.
  2. Write the state evolution equations.
    1. These equations relate the time derivative or difference of state variables to the current values of the state variables and inputs.
  3. Write the instantaneous output equation.
    1. These equations relate the outputs to the current values of the state variables and inputs.
  4. If the system is not linear, then linearize the model.
  5. Convert the state evolution and instantaneous output equations to matrix form.

Equilibrium

A state-space system is in equilibrium if the state variables do not change over time.

$$ \mathbf{0} = \mathbf{A}\bar{\mathbf{q}} + \mathbf{B}\bar{\mathbf{x}} $$

$$ \bar{\mathbf{q}} = \mathbf{A}\bar{\mathbf{q}} + \mathbf{B}\bar{\mathbf{x}} $$

Linearizing nonlinear state-space systems

Nonlinear state-space systems can be linearized around an equilibrium point. Small changes in the inputs (around the equilibrium point $\tilde{\mathbf{x}}$, $\tilde{\mathbf{q}}$) result in small changes in the state variables (around the equilibrium point).

$$ \mathbf{x} = \bar{\mathbf{x}} + \tilde{\mathbf{x}} $$ $$ \mathbf{q} = \bar{\mathbf{q}} + \tilde{\mathbf{q}} $$

We can consider $\tilde{\mathbf{q}}$ and $\tilde{\mathbf{x}}$ to be small deviations from the equilibrium. Then we can pretend that $\tilde{\mathbf{q}}$ is a linear function of $\tilde{\mathbf{x}}$.

CT case: $$ \dot{\mathbf{q}}(t) = \mathbf{A}\tilde{\mathbf{q}}(t) + \mathbf{B}\tilde{\mathbf{x}}(t) $$ DT case: $$ \tilde{\mathbf{q}}[n+1] = \mathbf{A}\tilde{\mathbf{q}}[n] + \mathbf{B}\tilde{\mathbf{x}}[n] $$

More on state-space models