API: Problems & Dynamics

Continuous problems

Impulsive problems

Main.SCPLib.ImpulsiveProblemMethod

Construct an impulsive optimal control problem

If set_dynamics_cache! is provided, it will be used to set STM's to prob.lincache.

The signature of set_dynamics_cache! should be:

set_dynamics_cache!(prob::OptimalControlProblem, x_ref::Union{Matrix,Adjoint}, u_ref::Union{Matrix,Adjoint}, y_ref::Union{Matrix,Nothing})

and the function should return the dynamics residuals. See set_dynamics_cache! for more details.

source

Equations of motion