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

Đang mở
#398 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@ocots đang làm issue này rồi.

Từ ngày 7/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
Julia
Star
13
Fork
1
Merge trung bình
3 giờ 9 phút
Pull request đã merge (30 ngày)
47

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của control-toolbox/OptimalControlProblems.jl

Tất cả issue của control-toolbox/OptimalControlProblems.jl

Issue tương tự

Thêm issue về Julia

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.