Direct and Multiple Shooting
Direct shooting¶
Parameterize control as . The optimizer selects and design variables; a forward integrator simulates the dynamics and returns objective and constraint values.
Direct shooting embeds a full forward simulation in every optimization evaluation.
Advantages include simple simulator integration, automatically integrated states, relatively few NLP variables, and reuse of mature ODE/DAE solvers.
Its main weakness is long-range sensitivity. If
then
For unstable or long-horizon systems, sensitivities may grow or decay severely, making terminal and path constraints difficult. Shooting is most suitable for stable systems, short horizons, low-dimensional controls, and moderate terminal requirements.
Multiple shooting¶
Multiple shooting splits the horizon into segments with independent initial-state decisions .
Short local simulations limit sensitivity propagation.
Let be the simulated endpoint of segment . Continuity requires
Multiple shooting handles unstable dynamics and tight terminal constraints better, permits internal state guesses, and produces sparse continuity Jacobians. It adds state variables, constraints, and several local simulations. It lies between single shooting and direct transcription: integration remains inside each segment, while algebraic continuity reconnects the horizon.
Activity 7.1: Multiple Shooting versus Direct Collocation for an Unstable System¶
Activity 7.1: Multiple Shooting versus Direct Collocation for an Unstable System
Consider
with
Minimize
Derive the exact state-transition equation over one shooting interval:
Formulate a 10-segment multiple-shooting nonlinear program with piecewise-constant control.
Formulate a Hermite--Simpson transcription using 30 intervals.
Solve both formulations.
Compare Jacobian sparsity, condition number, optimizer iterations, and sensitivity to initial guesses.
Explain why direct single shooting performs poorly for this unstable system.
Activity 7.2: Hypersensitive Optimal-Control Problem¶
Activity 7.2: Hypersensitive Optimal-Control Problem
Consider
with
Minimize
Solve the problem using direct single shooting.
Solve it using multiple shooting with 5, 10, and 20 segments.
Solve it using GPOPS-II or Dymos with an adaptive collocation mesh.
Plot the state and control near:
the initial boundary layer;
the long interior arc; and
the terminal boundary layer.
Compare the methods in terms of:
convergence;
sensitivity to the initial guess;
Jacobian conditioning;
mesh size; and
computation time.
Independently integrate the collocation solution and report
Explain why this problem is difficult for single shooting even though it contains only one state.