@@ -277,7 +277,7 @@ Struct representing a discretized optimal control problem (DOCP).
277277
278278- `discretization::D`: The discretization scheme.
279279- `ocp::O`: The original OCP model.
280- - `nlp_model ::N`: The NLP model backend.
280+ - `nlp_model_backend ::N`: The NLP model backend.
281281- `nlp`: The constructed NLP instance.
282282- `exa_getter::Union{Nothing,Function}`: Getter for ExaModels if used.
283283- `flags::DOCPFlags`: Boolean flags describing problem structure.
@@ -290,11 +290,11 @@ Struct representing a discretized optimal control problem (DOCP).
290290# Example
291291
292292```julia-repl
293- julia> DOCP(ocp, nlp_model )
293+ julia> DOCP(ocp, nlp_model_backend )
294294DOCP{...}(...)
295295```
296296"""
297- mutable struct DOCP{D<: Discretization ,O<: CTModels.Model ,N<: CTDirect.AbstractNLPModelBackend }
297+ mutable struct DOCP{D<: CTDirect. Discretization ,O<: CTModels.Model ,N<: CTDirect.AbstractNLPModelBackend }
298298
299299 # discretization scheme
300300 discretization:: D
@@ -303,7 +303,7 @@ mutable struct DOCP{D<:Discretization,O<:CTModels.Model,N<:CTDirect.AbstractNLPM
303303 ocp:: O # parametric instead of just qualifying reduces allocations (but not time). Specialization ?
304304
305305 # NLP
306- nlp_model :: N
306+ nlp_model_backend :: N
307307 nlp
308308 exa_getter:: Union{Nothing,Function} # getter for ExaModels (if used)
309309
@@ -326,7 +326,7 @@ mutable struct DOCP{D<:Discretization,O<:CTModels.Model,N<:CTDirect.AbstractNLPM
326326 # constructor
327327 function DOCP (
328328 ocp:: CTModels.Model ,
329- nlp_model ;
329+ nlp_model_backend :: CTDirect.AbstractNLPModelBackend ;
330330 grid_size= __grid_size (),
331331 time_grid= __time_grid (),
332332 disc_method= __disc_method (),
@@ -423,10 +423,10 @@ mutable struct DOCP{D<:Discretization,O<:CTModels.Model,N<:CTDirect.AbstractNLPM
423423 )
424424
425425 # call constructor with const fields
426- docp = new {typeof(discretization),typeof(ocp),typeof(nlp_model )} (
426+ docp = new {typeof(discretization),typeof(ocp),typeof(nlp_model_backend )} (
427427 discretization,
428428 ocp,
429- nlp_model ,
429+ nlp_model_backend ,
430430 nothing , # nlp
431431 nothing , # exa_getter
432432 flags,
0 commit comments