CTDirect.jl
The CTDirect.jl package is part of the control-toolbox ecosystem.
flowchart TD
O(<a href='https://control-toolbox.org/OptimalControl.jl/stable/'>OptimalControl</a>) --> B(<a href='https://control-toolbox.org/OptimalControl.jl/stable/api-ctbase.html'>CTBase</a>)
O --> D(<a href='https://control-toolbox.org/OptimalControl.jl/stable/api-ctdirect.html'>CTDirect</a>)
O --> F(<a href='https://control-toolbox.org/OptimalControl.jl/stable/api-ctflows.html'>CTFlows</a>)
F --> B
D --> B
style D fill:#FBF275
For the developers, here are the private methods.
Index
CTDirect.available_methods
CTDirect.direct_solve
CTDirect.direct_transcription
CTDirect.is_solvable
CTDirect.set_initial_guess
Documentation
CTDirect.available_methods
— Methodavailable_methods(
) -> Tuple{Tuple{Symbol, Symbol}, Tuple{Symbol, Symbol}}
Return the list of available methods to solve the optimal control problem.
CTDirect.direct_solve
— Methoddirect_solve(
ocp::OptimalControlModel,
description::Symbol...;
init,
grid_size,
time_grid,
kwargs...
)
Solve an OCP with a direct method
CTDirect.direct_transcription
— Methoddirect_transcription(
ocp::OptimalControlModel,
description...;
init,
grid_size,
time_grid
) -> Tuple{CTDirect.DOCP, ADNLPModels.ADNLPModel{Float64, Vector{Float64}, Vector{Int64}}}
Discretize an optimal control problem into a nonlinear optimization problem (ie direct transcription)
CTDirect.is_solvable
— Methodis_solvable(ocp) -> Bool
Check if an OCP is solvable by the method solve
.
CTDirect.set_initial_guess
— Methodset_initial_guess(docp::CTDirect.DOCP, nlp, init) -> Any
Set initial guess in the DOCP