Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

4.3 State and Algebraic Variables

Differential states carry memory

The state x(t)x(t) is the smallest collection of quantities that, together with current inputs and data, determines future evolution under the model. For a positioner with motor electrical dynamics,

x=[q, ω, i]T,x=[q,\ \omega,\ i]^T,

where qq is joint angle, ω\omega angular speed, and ii motor current. A representative model is

q˙=ω,Jeq(p)ω˙=ηNktib(p)ωτg(q,p)τd,Lm(p)i˙=vRm(p)ikeNω.\begin{aligned} \dot q&=\omega,\\ J_{\mathrm{eq}}(p)\dot\omega&=\eta N k_t i-b(p)\omega-\tau_g(q,p)-\tau_d,\\ L_m(p)\dot i&=v-R_m(p)i-k_eN\omega. \end{aligned}

Plant variables change the state equations. The state trajectory is therefore an analysis result in a nested simulation, or a set of optimization variables tied together by defect constraints in a simultaneous transcription.

Algebraic variables enforce instantaneous relations

The vector z(t)z(t) contains quantities determined by algebraic equations rather than independent time integration. Examples include reaction forces, circuit currents under a quasi-static electrical approximation, power-flow variables, aerodynamic induction factors, and kinematic loop forces.

A differential-algebraic model can be written

x˙=f(t,x,z,u,p,d),0=q(t,x,z,u,p,d).\dot x=f(t,x,z,u,p,d),\qquad 0=q(t,x,z,u,p,d).

Promoting an algebraic output to a decision variable requires retaining its consistency equation. Otherwise, an optimizer may choose physically impossible values.

States, measurements, and outputs differ

A sensor output ym=s(x,z)+ny_m=s(x,z)+n need not reveal every state. A performance output such as electrical power Pe=viP_e=vi may not be measured. Keep differential states, algebraic variables, measured outputs, and performance outputs distinct even when their numerical values coincide in a simplified example.

Activity 4.3: classify model quantities