Costate (source code)

= Costate
{title2=$p(t)$}

An adjoint variable enforcing the state dynamics in <optimal control>. In the normal minimization convention it satisfies $\dot p=-H_x$ for the <Hamiltonian of an optimal-control problem>, with terminal conditions determined by the endpoint constraints.