[Tests] Remove the MadNLP barrier bypass once CTSolvers ≥ 0.7.1 is used

Abierto
#398 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@ocots ya está trabajando en esto.

Desde el 7/11/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

Context

The robustness tests (#378) solve with MadNLP under other barrier options. With CTSolvers 0.5, the MadNLP strategy accepts mu_init but MadNLP 0.10 ignores it, and barrier is not declared. So test/common/solve_optimalcontrol.jl (function barrier) builds MadNLP.MonotoneUpdate(; mu_init) or MadNLP.LOQOUpdate() itself and passes it with OptimalControl.bypass(...).

Fixed upstream in control-toolbox/CTSolvers.jl#321 (control-toolbox/CTSolvers.jl#322, merged): mu_init and mu_min now reach MadNLP, and barrier is a declared option. The fix is on CTSolvers 0.7.x. OptimalControl and CTDirect still require CTSolvers = "0.5", so it cannot be used here yet.

To do, once the test environments resolve CTSolvers ≥ 0.7.1

  • In test/common/solve_optimalcontrol.jl, remove the bypass: pass mu_init as is, and barrier=MadNLP.LOQOUpdate() as a declared option (or remove the function barrier).
  • Keep the robustness option sets of test/common/configs.jl unchanged, and check on one problem that the iterates are the same as with the bypass (e.g. mountain_car with mu_init=1e-5 reaches 102.39757).
  • Update test/README.md if it mentions the bypass.

Refs #378, #306

🤖 Generated with Claude Code

Lenguaje dominante
Julia
Estrellas
13
Forks
1
Merge medio
3 h 9 min
PR fusionados (30 d)
47

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de control-toolbox/OptimalControlProblems.jl

Todos los issues de control-toolbox/OptimalControlProblems.jl

Issues similares

Más issues de Julia

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.