Optimal control 2026-10-05
Choice of a control input to minimize an objective subject to differential equations for a state and constraints on the control, state or terminal time. Necessary conditions such as the Pontryagin maximum principle require regularity hypotheses and do not by themselves prove global optimality.
Use the minimization convention for Pontryagin maximum principle: , with , , and minimizing over its allowed set. The initial state is fixed; since terminal time is fixed and terminal state is free, the transversality condition is . No free-terminal-time condition is imposed.
For the advertising problem, and , so . Write and . Then
The switching function satisfies , while . Thus there is at most one switch, from to , and no singular interval. If were always zero, then and , contradicting Hamiltonian minimization. Hence a switch occurs at some .
Before it, ; after it, and . Setting gives
The left side increases and the right side decreases, so the switch is unique.
Sufficiency can also be proved directly. For any control with total effort , the cumulative effort by time is at most . Since , the best arrangement for that fixed effort is to advertise immediately at full strength for time . Its cost is
Its derivative is and its second derivative is on . The unique minimizer is exactly the preceding . This verifies a global optimum, not only a necessary extremal.
For fixed terminal time and fixed endpoint, use the maximizing form of the Pontryagin maximum principle. For dynamics and running cost , there are multipliers , not all zero, with , and Hamiltonian of an optimal-control problem . Along an optimum, , , and the chosen control maximizes over admissible controls almost everywhere. Fixed terminal state imposes no prescribed terminal value of ; fixed time imposes no free-time condition . The normal case scales ; abnormal extremals have .
For this problem the normal Hamiltonian of an optimal-control problem is
Maximization gives , . The costate equations give , , hence , . Nonzero velocities rotate at constant angular rate, and rotational symmetry permits , . For a closed path, , with integer . Then , so the required positive endpoint has , and cost .
To prove a global minimum rather than only classify stationary extremals, write and subtract its time average; this changes neither its derivative nor . The resulting closed mean-zero path satisfies the periodic Wirtinger inequality . This follows immediately by its Fourier expansion: each nonzero mode of the derivative has squared multiplier at least . The Cauchy-Schwarz inequality now gives
The argument extends to square-integrable controls by the periodic Sobolev/Fourier interpretation. Thus the cost is at least for every feasible control. Equality is attained by
These satisfy every endpoint and have cost . Therefore the minimum is , an area-constrained quadratic control cost. The global inequality also prevents an overlooked abnormal candidate from lowering it; in fact an abnormal finite maximizing Hamiltonian of an optimal-control problem would force both linear control coefficients to vanish and then force zero velocity, incompatible with .
Use the maximizing form of the Pontryagin maximum principle. For a cost-minimization problem there are a nonnegative multiplier and a costate , not both identically zero, with Hamiltonian . The optimal control maximizes , the costate obeys , and free terminal time at the fixed terminal state zero gives . There is no fixed terminal costate value since the terminal state is fixed. In the normal case scale .
For the energy problem , , , so is constant and the normal Hamiltonian is , where . Maximization gives full power for and zero power for ; either value, or a fractional value, is allowed on a price tie. On the final active arc, the free-time condition gives
This is the threshold energy scheduling with a completion reward rule. In this example the normal case is justified: an abnormal constant costate would require either no processing or processing at all times, and free-time transversality would then force that nonzero costate to vanish.
For , processing starts at . Energy is completed at , before the price rises again. Its cost and reward are
Any threshold carrying completion into day two has and reward at most . Since energy cost is nonnegative, , so it is suboptimal.
For a global check, even any completion time has reward at most and cannot beat the displayed candidate. Also since power is bounded by one. At a fixed , the cheapest half-unit of processing consists of the last half-unit interval : every earlier point has a price at least as large as every selected point. Exchanging any earlier powered interval with a later unpowered cheaper one proves this rearrangement claim, also for fractional controls.
Write . This minimal cost minus reward is
with
It has its unique minimum at , where . The selected interval is then and its threshold is . Consequently
The terminal condition also checks: .
Pontryagin maximum principle leaves the initial costate unknown. Terminal conditions determine these unknown constants and, when terminal time is free, the time. In a maximization convention with terminal reward and running cost , use . A free terminal coordinate gives ; a fixed terminal coordinate instead allows a constraint multiplier. More generally is normal to the permitted terminal manifold. The free-terminal-time transversality condition is . These conditions convert the adjoint and state equations into a boundary-value problem. Reversing the costate sign gives the equivalent minimization convention.
The adjoint equation is , so . For the interior stationary candidate from part (i), writing gives . Therefore it formally has
which derives the printed formula as a stationary, generally nonoptimal candidate.
For the work-then-consume optimum for a nonconcave consumption-leisure utility, the endpoint maximization in part (i) gives
whenever consumption is chosen, and otherwise. Compare the two endpoint values: leisure and consumption are preferred when
Because the unconstrained consumption is increasing in time, there is at most one switch: work first, then cease work and consume at an increasing rate.
Here is a global verification, not just a Pontryagin maximum principle condition. The terminal constraint is equivalent to
For any , pointwise maximization of gives an upper bound on every feasible objective, after adding . A control attaining this pointwise maximum and using the full budget attains the bound, so it is globally optimal.
Let . If
the optimal switch time is and . Otherwise choose the unique such that
The left side of the second equality after substitution decreases strictly from to zero, while the right side increases from to a positive number. Thus the switch exists and is unique. The control is before and after it. It saturates the budget and attains the dual upper bound, completing the proof of optimality for the actual printed parameter range.
The Pontryagin maximum principle addresses optimization of an integral running reward, possibly with terminal reward, subject to a controlled differential equation, admissible control constraints and prescribed endpoint conditions. For a normal maximization problem with running reward , the Hamiltonian is ; the optimal control maximizes it pointwise, and the adjoint satisfies with the appropriate terminal transversality condition. State constraints require additional care when active.
Assume and . Here
The terminal stock is free and has no salvage reward, so an optimum with positive terminal stock has . For , maximization over gives whenever . Then
Set , so and . Integrating gives
The resulting is positive throughout, validating the interior control formula. Integrating the state equation yields
The state remains positive, so its nonnegativity constraint is inactive and the terminal condition is consistent. The reward is jointly concave in and the dynamics are linear, giving sufficiency of this solution. Alternatively the value function satisfies the Hamilton-Jacobi-Bellman equation with this maximizing control. At zero price the optimal control is zero, obtained by a continuous limit; zero initial stock also gives zero extraction.
Assume a finite optimum with and continuous price near its completion time. With costate for the remaining-file state, the minimization Hamiltonian of an optimal-control problem is . It is independent of , so is constant. By the Pontryagin maximum principle, pointwise minimization over gives
This is a bang-bang control away from equality. At equality partial transmission or either endpoint rate is allowed. This also follows by exchanging a small amount of transmission from a more expensive time to a cheaper unused time. The free-terminal-time transversality condition is . Since , it forces and terminal transmission at rate one, yielding
Without regularity/existence hypotheses an arbitrary known price need not have a finite differentiable optimum; the equality is the interior terminal-time condition used here.
For , , feasible completion requires for finite cost. The price decreases to its minimum at one and then increases. Its cheapest unrestricted interval of length one has endpoints of equal price, giving and . For , the cheapest length-one subset of is the terminal interval : its left endpoint has at least the price of its right endpoint, and the earlier times are still more expensive. For the transmission minimum is unchanged from that unrestricted interval, while the delay cost increases, so no optimum lies beyond .
For the terminal-interval policy the total cost is
Its derivative is strictly increasing on , since . It is negative near one and positive at , so the unique global optimum is
There is exactly one positive root: none lies in because the left side is negative, and the strictly monotone comparison gives exactly one in . Its threshold is .