State Trajectories and Dynamic Equality Constraints
Time-dependent decisions¶
Dynamic optimization involves functions of time. The state and control trajectories are
State and control trajectories must evolve consistently with the system dynamics and constraints.
Trajectories matter because comfort, energy, tracking, stress, and control effort depend on behavior over an interval—not merely one instant. Initial and terminal conditions may be fixed or constrained:
The final time may itself be fixed or optimized.
Dynamics as equality constraints¶
The dynamics enforce physical laws. A general continuous-time model is
This is an equality constraint restricting the feasible trajectory set.
The optimizer must search among trajectories that satisfy the physical model.
In residual form,
Mass–spring–damper example¶
Let , , and . Then
These equations define the feasible state trajectories for any candidate plant and control input.
Other equality constraints¶
CCD formulations may also contain algebraic equalities for kinematic loop closure, geometric compatibility, steady-state equations, periodicity, and actuator or sensor calibration. The equality set can therefore be larger than the state equations alone.
Differential-algebraic form¶
When the dynamics contain algebraic equalities in addition to the state derivatives, the model is a differential-algebraic equation (DAE) rather than a plain ODE. In semi-explicit form,
where is an algebraic variable: a quantity that must satisfy the algebraic constraint at every instant but has no derivative of its own appearing in the model. Solving the algebraic equation in Eq. (6) for requires that the Jacobian be nonsingular; a DAE with this property is called index-1, where the index counts how many times the algebraic equations must be differentiated before the system reduces to an ordinary differential equation. Index-1 DAEs are the most tractable case and the one nearly all CCD dynamic-optimization software targets.
Algebraic variables arise naturally in CCD. Kinematic loop closure and geometric compatibility, mentioned above, are two sources; another is a path inequality constraint that becomes active during part of the trajectory. Every time an inequality constraint is pinned to its bound, one degree of freedom is lost: a state variable must become dependent on the others through the newly active algebraic equation. In actively controlled systems, the control input is the natural candidate to absorb this loss—an actuator command that saturates, for instance, stops behaving as a free trajectory and becomes an algebraic variable determined by the active bound—while the state variables continue to evolve according to the underlying physics. Each additional active inequality constraint can raise the DAE index and make the numerical solution correspondingly harder.
Activity 4.1: Formulating Actuator Dynamics, Rate Limits, and Energy Limits¶
Activity 4.1: Formulating Actuator Dynamics, Rate Limits, and Energy Limits
Consider the plant
where is the actual actuator force. The actuator command is , but the actuator has first-order dynamics:
The actuator capacity and bandwidth are design variables:
The actuator is subject to
and
Construct an augmented state vector that includes the actuator dynamics.
Introduce an energy-accumulation state such that
Rewrite the energy limit as a terminal boundary constraint.
Rewrite the actuator-rate constraint entirely in terms of , , and , without using explicitly.
Write the complete augmented dynamics in residual form
Identify which of the following are plant variables, control trajectories, states, path constraints, and boundary constraints:
Explain why imposing only
is not sufficient to guarantee that the actual actuator force is physically feasible.
Add the actuator-design penalty
and explain the physical tradeoff represented by the second term.