nutopy.ocp¶
- class OCP(f0fun, ffun)[source]¶
Bases:
object
- Parameters
f0fun (callable) – Function defining the Lagrange cost
ffun (callable) – Function defining the dynamics
- Returns
An Optimal Control Problem (Lagrange type) object
- class Hamiltonian(hfun, tvars=None)[source]¶
Bases:
object
- Parameters
hfun (callable) – Hamiltonian function (must be tensorized up to order two)
- Returns
A Hamiltonian object
- property tvars¶
- property tvars_args¶
- class Flow(h, options=None)[source]¶
Bases:
object
- Parameters
h (Hamiltonian) – Hamiltonian object defining the flow
options (dict) – Dictionary of options for the IVP solver
- Returns
The Hamiltonian flow. The optional options are passed to the IVP solver and can be set dynamically.
See also
- property h¶
- property options¶
- exception Unimplemented[source]¶
Bases:
nutopy.ocp.Error
Raised when trying to use a (not yet) implemented feature
- exception IVPError(status, message)[source]¶
Bases:
nutopy.ocp.Error
- Parameters
status (int) – Termination status from IVP
message (string) – Explanation from IVP
- Returns
An exception raised when IVP integration is not successful