From Continuous CCD to a Computable Problem
A continuous finite-horizon CCD formulation has finite plant and controller parameters but functional state and control decisions. Numerical approximation produces
where includes sampled states and controls plus plant and controller variables.
The numerical-method landscape for dynamic optimization.
Indirect methods derive costate, stationarity, and transversality conditions and solve a boundary-value problem. They can be accurate and theoretically revealing, but costate initialization and active path constraints are difficult.
Direct methods parameterize controls, states, or both and solve an NLP. They are usually more robust for engineering problems with bounds, path constraints, black-box components, and plant–control coupling.
In sequential direct methods, a simulator computes states from optimized controls and parameters. In simultaneous direct methods, state samples are also decision variables and algebraic defects enforce the dynamics.
Time discretization¶
Choose a mesh
and define and .
The mesh converts continuous trajectories into finite samples and local approximations.
For states and controls, node variables contribute approximately scalars.
Uniform meshes suit smooth behavior. Nonuniform meshes place points near transients, switching, active-set changes, impacts, or boundary layers. The mesh must resolve the physics, not merely divide the horizon conveniently.
Local representations use piecewise-constant, piecewise-linear, trapezoidal, or Hermite–Simpson polynomials. Global or pseudospectral methods use high-order Legendre or Chebyshev approximations. Local methods refine naturally near nonsmooth behavior; global methods can converge very rapidly for smooth solutions.
Common control representations are piecewise constant, piecewise linear, and basis expansions. The choice should match actuator physics and the selected integration scheme.