A second-order Lagrangian condition for restricted control problems

We derive a second-order condition for optimal control problems defined by ordinary differential equations with time-varyingconvex restrictions on controls and with endpoint constraints. This condition generalizes theaccessory minimum problem of the calculus of variations.