Definitioncore
Costate
Also called adjoint state, costate variables.
The multiplier of the dynamics in an optimal control problem, which runs backward in time and gives the sensitivity of the optimal cost to the state.
The costate is the time-varying multiplier that an optimal control problem attaches to its dynamics . It solves a linear differential equation that runs backward from a condition at the final time, and it enters the Hamiltonian whose minimum gives the optimal input. Where the optimal cost is smooth, the costate is its gradient along the optimal trajectory, so is the marginal cost of one more unit of at time .
Definition
Take the optimal control problem with dynamics , running cost , terminal cost , and the Hamiltonian , where , and are in . Let be an admissible input on and its trajectory.
A costate for with cost multiplier is an absolutely continuous function that solves the adjoint equation
for almost every , together with the end conditions of the problem (the transversality conditions), and with . For a free final state the end condition is . For a fixed final state there is no condition on .
The adjoint equation is linear in , so is determined by its final value, and it is integrated from back to . Its homogeneous part is the adjoint of the linearized dynamics : for every solution of the linearization,
The costate as a gradient. Suppose the value function , the optimal cost from state at time , is near the optimal trajectory and solves the HJB equation . Then is a costate with . Proof: let . The HJB equation gives everywhere, and because attains the minimum along the optimal trajectory. So minimizes , and :
Then , which is the adjoint equation, and is the end condition.
Examples and non-examples
A scalar problem. For , , , the Hamiltonian is , so . The adjoint equation is , so is a constant, and the end condition gives . Then , so , and . The optimal cost is , and indeed . With and : , and the cost is .
The costate gives the gradient of the cost. For an input that is not optimal, solve the adjoint equation with along its own trajectory. Then the derivative of in the direction of a change of the input is . In the scalar example with , and constant inputs , , and , which is the derivative of . This is the adjoint method for gradients. Its discrete form, for , is reverse-mode differentiation, and it gives the gradient used by gradient descent on the inputs.
The linear quadratic regulator. For the LQR problem with the cost , the value function is and the costate is , where solves the Riccati differential equation with .
Non-example: a costate that is not a gradient. Take , , , the horizon 1 and the cost . The inputs and are both optimal, with cost . The value function is , which is not differentiable at . The costate is constant with , so it is along and along . At there are two costates and no gradient. For each costate equals along its own trajectory.
Non-example: an abnormal multiplier. Minimize with , , . Only is admissible. A costate exists only with (see the maximum principle), and any constant works. Here does not measure a change of the cost, because the constraint alone fixes the input.
Related definitions
- Lagrange multiplier. The costate is the multiplier of the equality constraint at each time. In discrete time, is the multiplier of in the KKT conditions of the finite program.
- Momentum. In the calculus of variations, , the negative of the momentum of mechanics (Euler-Lagrange equation).
- Transversality conditions. The end conditions on for free, fixed and constrained end points and a free final time (transversality conditions).
- Shooting. In an indirect method, the unknown initial costate is found by Newton's method so that the end condition holds.
References
- Daniel Liberzon, Calculus of Variations and Optimal Control Theory, A Concise Introduction, Princeton University Press, 2012, Section 4.2.8 (the adjoint equation in the proof of the maximum principle) and Section 5.2 (the relation between the HJB equation and the maximum principle)
- Arthur E. Bryson and Yu-Chi Ho, Applied Optimal Control, Optimization, Estimation, and Control, Hemisphere, 1975 (revised printing of the 1969 edition)
- Donald E. Kirk, Optimal Control Theory, An Introduction, Prentice-Hall, 1970 (Dover reprint, 2004), Section 5.1 (the costate equations among the necessary conditions)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag FAF6PP Edit this page History Report an error Markdown