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

オープン
#368 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@ocots がすでに取り組んでいます。

2026年11月5日 から。

  • #374 @ocots による — オープン

評価

この issue はまだ評価されていません。

説明

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

主要言語
Julia
スター
13
フォーク
1
平均マージ
3時間 20分
マージ済み PR(30日)
27

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

control-toolbox/OptimalControlProblems.jl のほかの issue

control-toolbox/OptimalControlProblems.jl の issue をすべて見る

似ている issue

Julia の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。