[Paper] JuMP models for Euler, trapeze and midpoint, and NLP equivalence tests
メンテナーはふだん 1 日以内に返信
@ocots がすでに取り組んでいます。
2026年10月31日 から。
評価
この issue はまだ評価されていません。
説明
Agents: read the guide for agents in #310 first (order, difficulty, how to claim an issue, working method). The specification is in this description and in the comments below.
Goal
Provide JuMP models for the Euler, trapezoidal and midpoint schemes, so that the paper can compare JuMP and OptimalControl scheme by scheme. Today the JuMP models exist only with trapezoids. The NLPs must be exactly the ones built by CTDirect, otherwise the comparison measures the formulation, not the modeler.
What we know
ext/JuMPModels/<problem>.jlwrites the trapezoidal scheme by hand (22 problems).- CTDirect conventions (see
CTDirect.jl/src/ode/): midpoint uses statesX_0…X_Nand piecewise-constant controlsU_0…U_{N-1}(withu(tf)=U_{N-1}), and the Lagrange cost is integrated by a scheme-specific quadrature (integralinode/common.jl); trapezoid hasU_0…U_N.euler.jlstill has to be read for the placement of the last control and for the cost quadrature. - Sub-question to settle: does "Euler" mean explicit only, or explicit and implicit Euler?
- Path constraints: at which nodes they are imposed in each scheme has to be read from CTDirect.
Proposal (to be discussed)
Avoid writing 66 models by hand: each problem declares its dynamics, cost and constraints as JuMP expressions, and a generic add_scheme!(model, scheme, …) writes the equations of each scheme.
Equivalence tests (issue #166)
For every problem, every scheme and a small grid, compare the JuMP model (converted with NLPModelsJuMP MathOptNLPModel) with the ADNLP and Exa NLPs: number of variables, constraints, nonzeros of the Jacobian and of the Hessian, objective and constraints at the initial point, sorted nonzero values (variable orders may differ). NLPModelsTest.consistent_nlps can be used when the orders coincide.
A Hessian discrepancy on ducted_fan was reported in #166 and must be explained before the paper.
Consequence
Once done, remove the "JuMP only with trapezoids" restriction from CTBenchmarks (filter_models_for_backend).
Related
#166, #174.
How to work on this theme
This is a theme issue: it describes the work to do and what is known so far, it is not meant to be closed by a single PR.
- Whoever takes it first defines the work precisely and splits it into sub-issues (they can live in any repository of the organization).
- Work proceeds through the sub-issues; tick the checklist below as they are closed.
- Close the theme when everything is done or explicitly dropped.
Context: tracking issue control-toolbox/CTBenchmarks.jl#200; planning notes: objectives and directions and updating OptimalControlProblems and CTBenchmarks (in control-toolbox/benchmark-paper).
Sub-issues
- #368 part 1: factorise the trapezoidal JuMP models (#374)
- #369 part 2: Euler, implicit Euler and midpoint (#383)
- #370 part 3: orderings
:interleaved/:blocks(#390) - #371 part 4: NLP equivalence tests, Exa gap as a warning (after #370)
- #372 part 5:
ducted_fanHessian (independent)
- 主要言語
- Julia
- スター
- 13
- フォーク
- 1
- 平均マージ
- 3時間 24分
- マージ済み PR(30日)
- 34
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
control-toolbox/OptimalControlProblems.jl のほかの issue
-
[Dev] One source of truth per problem, and the equality of the modelings checked by computation対応中かも @ocots が今日担当しました。 オープン
control-toolbox/OptimalControlProblems.jl#391 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[Cron] cron-failureオープンcron-failure
難易度 4/5 1〜2日 初心者へのやさしさ 25/100
control-toolbox/OptimalControlProblems.jl#381 ·
メンテナーはふだん 1 日以内に返信
-
[Metadata] Declared fields: tags, references, Corleone, reference solution対応中かも @ocots が 1 日前に担当しました。 オープン
control-toolbox/OptimalControlProblems.jl#379 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[Metadata] Shared initial guess in the metadata, read by every modeling対応中かも @ocots が 1 日前に担当しました。 オープン
control-toolbox/OptimalControlProblems.jl#377 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[Dev] Precompile the problems so that users and tests do not recompile them every time対応中かも @ocots が 1 日前に担当しました。 オープン
control-toolbox/OptimalControlProblems.jl#373 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
control-toolbox/OptimalControlProblems.jl の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
backport 1.14 GC
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信