[Dev] Factorise the trapezoidal JuMP models in schemes.jl

Đã đóng
#368 1 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 5/11/2026.

  • #374 của @ocots — đã merge

Đánh giá

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

Mô tả

paper

Sub-issue of #284 (theme), part 1 of 5. Specification: the comments of #284 (spec comment, and the first-task report).

Scope

  • ext/JuMPModels/schemes.jl writes the trapezoidal scheme once: variables, dynamics, path constraints, objective (Lagrange added directly, Mayer and Bolza as today), boundary constraints, in CTDirect's interleaved order.
  • Each ext/JuMPModels/<problem>.jl declares only its data: dimensions and names, bounds, initial guess, dynamics, Lagrange and Mayer costs, path and boundary constraints, as functions returning JuMP expressions.
  • Metadata keys of the JuMP model unchanged (checked by the contract tests of #304).

Not in scope

Other schemes (part 2), orderings (part 3), equivalence tests (part 4).

Done when

  • Every JuMP problem goes through schemes.jl; problem files hold data only.
  • Same NLP as before the change for every problem (variables, constraints, bounds, objective and constraint values at the initial point), checked against the current models.
  • JuMP tests and contract tests pass.

Refs #284

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

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.