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

Abierto
#368 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@ocots ya está trabajando en esto.

Desde el 5/11/2026.

  • #374 de @ocots — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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

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

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.