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.

Exercises

  1. Verification of a computed optimal trajectory

    Suppose a direct-collocation solver returns the discrete solution

    {Xk,Uk}k=0K\left\{ \boldsymbol{X}_k, \boldsymbol{U}_k \right\}_{k=0}^{K}

    for

    minu()  J=Φ ⁣(x(tf))+t0tfL(x,u,t)dt\min_{\boldsymbol{u}(\cdot)} \; J = \Phi\!\left(\boldsymbol{x}(t_f)\right) + \int_{t_0}^{t_f} L(\boldsymbol{x},\boldsymbol{u},t)\,\mathrm{d}t

    subject to

    x˙=f(x,u,t).\dot{\boldsymbol{x}} = \boldsymbol{f}(\boldsymbol{x},\boldsymbol{u},t).

    (a) Define a dynamic-defect residual on each mesh interval.

    (b) Define the maximum endpoint-constraint residual.

    (c) Define the maximum path-constraint violation.

    (d) Explain how to re-simulate the reconstructed control using an independent differential-equation solver.

    (e) Define a mesh-refinement table containing the objective, terminal residual, maximum defect, and maximum path violation.

    (f) State what convergence behavior would support the claim that the numerical result is credible.

    (g) Explain why a solver-success message alone is not evidence that the engineering conclusion is correct.

  2. Complete derivation of the bilinear tangent steering law

    Consider

    x˙=u,y˙=v,u˙=acosβ,v˙=asinβ,\dot{x}=u, \qquad \dot{y}=v, \qquad \dot{u}=a\cos\beta, \qquad \dot{v}=a\sin\beta,

    with

    x(0)=y(0)=u(0)=v(0)=0,x(0)=y(0)=u(0)=v(0)=0,
    y(T)=H,v(T)=0,y(T)=H, \qquad v(T)=0,

    where TT is fixed. The terminal values x(T)x(T) and u(T)u(T) are free, and the objective is

    maxβ()u(T).\max_{\beta(\cdot)}u(T).

    (a) Convert the problem to minimization form.

    (b) Construct the Hamiltonian.

    (c) Derive and integrate all four costate equations.

    (d) Derive the interior stationarity condition

    tanβ=λvλu.\tan\beta = \frac{\lambda_v}{\lambda_u}.

    (e) Apply terminal transversality to show that

    λx(t)0,λu(t)1.\lambda_x(t)\equiv0, \qquad \lambda_u(t)\equiv-1.

    (f) Show that the general bilinear tangent law reduces to

    tanβ(t)=tanβ0ct.\tan\beta(t) = \tan\beta_0-ct.

    (g) Explain why the correct branch of β\beta must still be checked against the minimum principle.

  3. Analytical state reconstruction for fixed-time ascent

    Let

    q(t)=tanβ(t)=q0ct.q(t) = \tan\beta(t) = q_0-ct.

    (a) Show that

    cosβ=11+q2,sinβ=q1+q2,dt=1cdq.\cos\beta = \frac{1}{\sqrt{1+q^2}}, \qquad \sin\beta = \frac{q}{\sqrt{1+q^2}}, \qquad \mathrm{d}t = -\frac{1}{c}\,\mathrm{d}q.

    (b) Starting from

    u˙=acosβ,\dot{u}=a\cos\beta,

    derive

    u(t)=acln[q0+1+q02q(t)+1+q2(t)].u(t) = \frac{a}{c} \ln \left[ \frac{ q_0+\sqrt{1+q_0^2} }{ q(t)+\sqrt{1+q^2(t)} } \right].

    (c) Starting from

    v˙=asinβ,\dot{v}=a\sin\beta,

    derive

    v(t)=ac[1+q021+q2(t)].v(t) = \frac{a}{c} \left[ \sqrt{1+q_0^2} - \sqrt{1+q^2(t)} \right].

    (d) Use v(T)=0v(T)=0 to show that the nontrivial solution satisfies

    β(T)=β0.\beta(T)=-\beta_0.

    (e) Derive

    c=2tanβ0T.c = \frac{2\tan\beta_0}{T}.

    (f) Show that

    tanβ(t)=tanβ0(12tT).\tan\beta(t) = \tan\beta_0 \left( 1-\frac{2t}{T} \right).

    (g) Explain the symmetry of the steering law about t=T/2t=T/2.

  4. Altitude equation and terminal horizontal velocity

    For the fixed-time ascent problem, the analytical vertical position is

    y(t)=a2c2[(tanβ0tanβ)(secβ0+secβ)ln(tanβ0+secβ0tanβ+secβ)].y(t) = \frac{a}{2c^2} \left[ \bigl( \tan\beta_0-\tan\beta \bigr) \bigl( \sec\beta_0+\sec\beta \bigr) - \ln \left( \frac{ \tan\beta_0+\sec\beta_0 }{ \tan\beta+\sec\beta } \right) \right].

    (a) Substitute

    β(T)=β0,c=2tanβ0T\beta(T)=-\beta_0, \qquad c=\frac{2\tan\beta_0}{T}

    and derive the scalar altitude equation

    4HaT2=2tanβ0secβ0ln(secβ0+tanβ0secβ0tanβ0)2tan2β0.\frac{4H}{aT^2} = \frac{ 2\tan\beta_0\sec\beta_0 - \ln \left( \frac{ \sec\beta_0+\tan\beta_0 }{ \sec\beta_0-\tan\beta_0 } \right) }{ 2\tan^2\beta_0 }.

    (b) Explain why the original trajectory-optimization problem has now been reduced to one scalar nonlinear equation.

    (c) Derive the expression for the terminal horizontal velocity u(T)u(T).

    (d) Describe a numerical procedure for solving for β0\beta_0.

    (e) State the endpoint and minimum-principle checks that must be performed after a root is obtained.

  5. Necessary conditions for fuel-optimal lunar landing

    Consider

    h˙=v,v˙=g+u,\dot{h}=v, \qquad \dot{v}=-g+u,

    with

    0u3,0\leq u\leq3,
    h(0)=h0,v(0)=v0,h(0)=h_0, \qquad v(0)=v_0,
    h(tf)=0,v(tf)=0,h(t_f)=0, \qquad v(t_f)=0,

    and free tft_f. Minimize

    J=0tfu(t)dt.J = \int_0^{t_f}u(t)\,\mathrm{d}t.

    Use the chapter’s normal Hamiltonian convention

    H=1+λhv+λv(g+u).H = 1+\lambda_hv+\lambda_v(-g+u).

    (a) Derive the costate equations and their general solutions.

    (b) Define the switching function

    σ(t)=1+λv(t).\sigma(t) = 1+\lambda_v(t).

    (c) Derive the bang–bang control law.

    (d) Prove that a nondegenerate singular arc cannot exist.

    (e) Show that the optimal control has at most one switching time.

    (f) Derive the free-final-time condition

    H(tf)=0.H(t_f)=0.
  6. Piecewise analytical lunar-landing trajectory

    For the lunar-landing model, first derive the state solution on an interval [ta,t][t_a,t] when the initial values at tat_a are hah_a and vav_a.

    (a) For u=0u=0, derive v(t)v(t) and h(t)h(t).

    (b) For u=3u=3, derive v(t)v(t) and h(t)h(t).

    (c) Assume a coast-then-burn structure,

    u(t)={0,0t<ts,3,tsttf.u(t) = \begin{cases} 0, & 0\leq t<t_s,\\ 3, & t_s\leq t\leq t_f. \end{cases}

    Derive h(ts)h(t_s) and v(ts)v(t_s).

    (d) Enforce continuity and derive the two algebraic equations produced by

    h(tf)=0,v(tf)=0.h(t_f)=0, \qquad v(t_f)=0.

    (e) Express the fuel cost in terms of tst_s and tft_f.

    (f) Repeat the formulation for a burn-then-coast structure.

    (g) State how the admissible structures should be compared and verified.

  7. Direct and indirect verification of lunar landing

    Formulate a numerical verification study for the lunar-landing problem.

    (a) Write a direct-shooting formulation using tst_s and tft_f as decision variables for a coast-then-burn control.

    (b) Write a direct-collocation formulation with state variables hh and vv, control uu, and free final time.

    (c) State the boundary and control constraints.

    (d) Define the terminal residuals.

    (e) Define the Hamiltonian residual at the final time.

    (f) Explain how to compare the shooting and collocation solutions.

    (g) Explain why a smooth numerical approximation of the switch does not by itself disprove the bang–bang analytical structure.

  8. Total specific energy and constant-energy contours

    Consider the longitudinal aircraft equations

    V˙=TcosαDmgsinγ,h˙=Vsinγ.\dot{V} = \frac{T\cos\alpha-D}{m} - g\sin\gamma, \qquad \dot{h} = V\sin\gamma.

    Define

    E=V22+gh.E = \frac{V^2}{2}+gh.

    (a) Differentiate EE with respect to time.

    (b) Show explicitly that the gravitational terms cancel.

    (c) Derive

    E˙=Vm(TcosαD).\dot{E} = \frac{V}{m} \left( T\cos\alpha-D \right).

    (d) Under the small-angle approximation, derive

    E˙Vm(TD).\dot{E} \approx \frac{V}{m}(T-D).

    (e) For constant EE, derive

    h=EgV22g.h = \frac{E}{g} - \frac{V^2}{2g}.

    (f) Derive

    dhdV=Vg.\frac{\mathrm{d}h}{\mathrm{d}V} = -\frac{V}{g}.

    (g) Derive the altitude loss required to accelerate from V1V_1 to V2V_2 at constant energy.

  9. Energy-state minimum-time optimality conditions

    Consider the reduced model

    E˙=Ps(E,V)=Vm[T(E,V)D(E,V)],\dot{E} = P_s(E,V) = \frac{V}{m} \left[ T(E,V)-D(E,V) \right],

    with

    mintf=min0tf1dt.\min t_f = \min \int_0^{t_f}1\,\mathrm{d}t.

    (a) Rewrite the final time as

    tf=E0Ef1Ps(E,V)dE.t_f = \int_{E_0}^{E_f} \frac{1}{P_s(E,V)}\,\mathrm{d}E.

    (b) Explain directly from this integral why minimum time requires maximum specific excess power at each energy level.

    (c) Construct the reduced Hamiltonian

    H=1+λEPs(E,V).H = 1+\lambda_EP_s(E,V).

    (d) Derive the stationarity condition

    PsV=0.\frac{\partial P_s}{\partial V}=0.

    (e) Derive the costate equation and show that λE\lambda_E cannot change sign along a normal extremal.

    (f) Use the free-final-time condition to show that λE<0\lambda_E<0 for a feasible climb with Ps>0P_s>0.

    (g) Show that the speed schedule satisfies

    TD+V(TVDV)=0.T-D + V \left( T_V-D_V \right) = 0.

    (h) State the second-derivative condition required for a local maximum of specific excess power.

  10. Full-model refinement of the energy-state solution

    Let the full aircraft state and control be

    x=[Vγhxm]T,u=[αη]T.\boldsymbol{x} = \begin{bmatrix} V&\gamma&h&x&m \end{bmatrix}^{\mathsf T}, \qquad \boldsymbol{u} = \begin{bmatrix} \alpha&\eta \end{bmatrix}^{\mathsf T}.

    The objective is to minimize tft_f.

    (a) Write the full longitudinal dynamics used in the chapter.

    (b) Write the minimum-time Hamiltonian for an indirect formulation.

    (c) State the interior stationarity equations with respect to α\alpha and η\eta.

    (d) Write the normalized-time dynamics on τ[0,1]\tau\in[0,1].

    (e) List the flight-envelope constraints discussed in the chapter.

    (f) Explain how an energy-state speed schedule can be converted into an initial guess for the full problem.

    (g) Define verification checks for terminal feasibility, path feasibility, mesh convergence, Hamiltonian consistency, and independent re-simulation.

    (h) Explain why agreement in qualitative dive–climb structure is useful but does not prove quantitative accuracy of the reduced model.