Skip to content

[Bug] #592

@jbcaillau

Description

@jbcaillau

Issue when using print_level with :madnlp (that indeed knows this option):

ocp = @def begin
    t  [0, 1], time
    x  R², state
    u  R, control
    x(0) == [-1, 0]
    x(1) == [0, 0]
    (t) == [x₂(t), u(t)]
    ( 0.5u(t)^2 )  min
end

julia> solve(ocp, :madnlp; print_level = 4)
▫ This is OptimalControl version v1.1.0 running with: direct, adnlp, madnlp.

▫ The optimal control problem is solved with CTDirect version v0.15.2.

   ┌─ The NLP is modelled with ADNLPModels and solved with MadNLP.
   │
   ├─ Number of time steps: 250
   └─ Discretisation scheme: trapeze

ERROR: MethodError: no method matching parse_option(::Type{MadNLP.LogLevels}, ::Int64)
The function `parse_option` exists, but no method is defined for this combination of argument types.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions