JuDO.jl
Julia for Dynamic Optimization
JuDO is a domain-specific modeling language for dynamic optimization in Julia. It extends the syntax of JuMP.jl to support infinite-dimensional optimization variables and differential equations.
Why use JuDO?
JuDO solves the problem of solver fragmentation in optimal control. You can write your dynamic optimization problem once and test it on many solvers.
- Unified Modeling and Reproducibility: Dynamic optimization solvers have different requirements, but JuDO gives you a standardized definition interface. It translates your high-level code so you do not have to write custom parsers.
- Automated Reformulation: JuDO and its underlying DynOptInterface automatically recognize and transform the user-defined problem into the style that the underlying solver requires.
- Familiar Syntax: JuDO extends JuMP. It uses standard macros like
@variableand@constraintso you can build models quickly if you know Julia or JuMP.
Installation
using Pkg
# Required dependencies
Pkg.add(url="https://github.com/JuDO-dev/DynOptInterface.jl", rev="v0.3.2")
Pkg.add(url="https://github.com/Kailai-Shi/Interesso.jl", rev="f1b0849ac2ae00b95a223c82fa1398b8163c5292")
# JuDO itself
Pkg.add(url="https://github.com/JuDO-dev/JuDO.jl", rev="v0.1.1")
# Packages used by the examples
Pkg.add(["JuMP", "Plots"])Julia 1.12.2 or later is required.