DOCP
Index
CTDirect.DOCP
CTDirect.DOCP_constraints!
CTDirect.DOCP_initial_guess
CTDirect.DOCP_objective
CTDirect.build_bounds
CTDirect.constraints_bounds!
CTDirect.get_time_grid
CTDirect.is_solvable
CTDirect.setPointConstraints!
CTDirect.variables_bounds!
Documentation
CTDirect.DOCP
— TypeStruct for discretized optimal control problem DOCP
Contains:
- a copy of the original OCP
- data required to link the OCP with the discretized DOCP
CTDirect.DOCP_constraints!
— MethodDOCP_constraints!(c, xu, docp::CTDirect.DOCP) -> Any
Compute the constraints C for the DOCP problem (modeled as LB <= C(X) <= UB).
CTDirect.DOCP_initial_guess
— FunctionDOCP_initial_guess(docp::CTDirect.DOCP) -> Vector{Float64}
DOCP_initial_guess(
docp::CTDirect.DOCP,
init::CTModels.Init
) -> Vector{Float64}
Build initial guess for discretized problem
CTDirect.DOCP_objective
— MethodDOCP_objective(xu, docp::CTDirect.DOCP) -> Any
Compute the objective for the DOCP problem.
CTDirect.build_bounds
— Methodbuild_bounds(
dim_var,
dim_box,
box_triplet
) -> Tuple{Any, Any}
Build full, ordered sets of bounds for state, control or optimization variables
CTDirect.constraints_bounds!
— Methodconstraints_bounds!(
docp::CTDirect.DOCP
) -> Tuple{Vector{Float64}, Vector{Float64}}
Build upper and lower bounds vectors for the DOCP nonlinear constraints.
CTDirect.get_time_grid
— Methodget_time_grid(xu, docp::CTDirect.DOCP) -> Any
Return time grid for variable time problems (times are then dependent on NLP variables)
CTDirect.is_solvable
— Methodis_solvable(ocp) -> Bool
Check if an OCP is solvable by the method solve
.
CTDirect.setPointConstraints!
— MethodsetPointConstraints!(docp::CTDirect.DOCP, c, xu, v) -> Any
Set the boundary and variable constraints
CTDirect.variables_bounds!
— Methodvariables_bounds!(
docp::CTDirect.DOCP
) -> Tuple{Vector{Float64}, Vector{Float64}}
Build upper and lower bounds vectors for the DOCP variable box constraints.