Formulation
An optimal control problem (OCP) with fixed initial and final times can be described as minimising the cost functional (in Bolza form)
where the state
and other constraints such as
If
Free times and extra variables
The initial time
More generally, a vector
with, in addition, box constraints on
The control-free case
Nothing above requires a control to be present: taking
See also
Abstract syntax (
@def) — write this formulation directly as Julia code.Functional API — build the same model without the macro.
Problems without a control — the
case.