CTDirectExtExa

Index

Documentation

CTDirect.build_nlp!Method
build_nlp!(
    docp::CTDirect.DOCP{<:CTDirect.Discretization, <:CTModels.Model, <:CTDirect.ExaBackend},
    x0;
    grid_size,
    disc_method,
    exa_backend,
    kwargs...
)

Build the NLP model for the DOCP (ExaModels version)

Keyword arguments (optional)

  • grid_size: number of time steps for the discretized problem ([250])
  • disc_method: discretization method ([:trapeze], :euler)
  • exa_backend: backend for ExaModels ([nothing])
source
CTDirect.get_time_grid_exaMethod
get_time_grid_exa(
    nlp_solution::SolverCore.AbstractExecutionStats,
    docp::CTDirect.DOCP
) -> Vector{Float64}

Retrieve the time grid from the given DOCP solution.

Arguments

  • nlp_solution: The DOCP solution.
  • docp: The DOCP.

Returns

  • ::Vector{Float64}: The time grid.
source