Examples
Example 2.1: derive and analyze a state-space model¶
Consider a mass–spring–damper system with kg, N s/m, and N/m. The control input is force and the measured output is displacement .
Step 1: Write the dynamic equation.
Step 2: Define the states.
Step 3: Write the first-order model.
so
Step 4: Analyze stability. The eigenvalues are the roots of
which are
Their real parts are negative, so the open-loop equilibrium is asymptotically stable.
Step 5: Interpret the result. The system oscillates, but the oscillations decay. If the designer raises stiffness to without changing damping, the oscillation frequency increases and the best feedback tuning may change.
Example 2.2: effect of PD feedback¶
Suppose Example 2.1 uses
The closed-loop equation is
with characteristic equation
The closed-loop poles have a more negative real part than the open-loop poles, indicating increased damping and faster decay. Feedback improves the response by altering the effective dynamics.
Example 2.3: identify signals in cruise control¶
Consider a simple vehicle moving along a straight road:
where is vehicle speed, is traction force, is a drag or rolling-resistance coefficient, and is road slope.
A sensible description is:
state: vehicle speed ;
control input: traction force or throttle command;
output: vehicle speed ; and
disturbance: road slope .
This first-order model reminds us that a useful state set need not contain many variables.
Common modeling mistakes¶
Treating outputs as states without justification. Outputs may equal states, but they do not have to.
Ignoring disturbances. This usually creates unrealistic conclusions about controller performance.
Using too many states. More states are not always better; the state set should be minimal and meaningful.
Forgetting units. Dynamic equations must be dimensionally consistent.
Assuming plant design changes only constraints or cost. In CCD, plant design often changes the differential equations themselves.
Confusing stability with performance. A stable system is not necessarily fast, efficient, comfortable, or optimal.