Skip to content
@control-toolbox

control-toolbox

Toolbox for optimal control

Welcome to control-toolbox!

The control-toolbox ecosystem gathers   Julia   packages for mathematical control and applications.

The root package is OptimalControl.jl which aims to provide tools to model and solve optimal control problems with ordinary differential equations by direct and indirect methods.

Documentation

To learn how to define and solve optimal control problems in Julia, please refer to the documentation of OptimalControl.jl:

Doc

The documentation provides:

  • step-by-step examples of basic optimal control problems;
  • guides on problem definition, solver initialization, solution plotting, and Hamiltonian flow computation;
  • tutorials on combining direct and indirect methods, and working with discretized problems;
  • real-world applications in calculus of variations, MRI, space mechanics, and more;
  • a collection of benchmark problems, modeled in OptimalControl and JuMP, to test and compare solvers.

Installation ©

To install OptimalControl.jl please open Julia's interactive session (known as REPL) and press ] key in the REPL to use the package mode, then add the package:

julia> ]
pkg> add OptimalControl

Note

Sometimes the above command can fail due to the default Julia registry ('General') not being installed for some reason. You can check that the registry is installed with

pkg> registry st
Registry Status 
[23338594] General (https://github.com/JuliaRegistries/General.git)

If the General registry is missing, simply add it

pkg> registry add General

then retry the add command.

Main repositories

The control-toolbox hierarchy includes:

  • OptimalControl.jl: main package
  • CTBase.jl: fundamentals of the control-toolbox ecosystem
  • CTDirect.jl: direct transcription of an optimal control problem and resolution
  • CTFlows.jl: classical flow, Hamiltonian flow, flow from optimal control problem
  • CTModels.jl: models of optimal control problem, solution
  • CTParser.jl: parser to define an optimal control problem with an abstract syntax
flowchart TD
B(<a href='https://control-toolbox.org/OptimalControl.jl/stable/dev-ctbase.html'>CTBase</a>)
M(<a href='https://control-toolbox.org/OptimalControl.jl/stable/dev-ctmodels.html'>CTModels</a>)
P(<a href='https://control-toolbox.org/OptimalControl.jl/stable/dev-ctparser.html'>CTParser</a>)
O(<a href='https://control-toolbox.org/OptimalControl.jl/stable/dev-optimalcontrol.html'>OptimalControl</a>)
D(<a href='https://control-toolbox.org/OptimalControl.jl/stable/dev-ctdirect.html'>CTDirect</a>)
F(<a href='https://control-toolbox.org/OptimalControl.jl/stable/dev-ctflows.html'>CTFlows</a>)
O --> D
O --> M
O --> F
O --> P
F --> M
O --> B
F --> B
D --> B
D --> M
P --> M
P --> B
M --> B
Loading

Contributing

Any contributions are welcomed, check out how to contribute to a Github project. If it is your first contribution, you can also check this first contribution tutorial. You can find first good issues (if any 🙂) here and the list of control-toolbox issues at the control-toolbox list of issues.

For any package, if you think you found a bug or if you have a feature request or suggestion, feel free to open an issue. Before opening a pull request, start an issue or a discussion on the topic, please. If you want to ask a question, feel free to start a discussion.

Note

If you want to add an application or a package to the control-toolbox ecosystem, please follow this set up tutorial.

Citing us

If you use the package OptimalControl.jl in your work, please cite us.

Misc

Pinned Loading

  1. OptimalControl.jl OptimalControl.jl Public

    Model and solve optimal control problems in Julia

    Julia 95 9

  2. OptimalControlProblems.jl OptimalControlProblems.jl Public

    Optimal control problems for Julia

    Julia 10 1

  3. CTBase.jl CTBase.jl Public

    Fundamentals of the control-toolbox ecosystem

    Julia 13 3

  4. CTDirect.jl CTDirect.jl Public

    Direct transcription of an optimal control problem and resolution

    Julia 12 6

  5. CTFlows.jl CTFlows.jl Public

    Flows: classical, Hamiltonian, from OCP and more

    Julia 2 2

  6. CTApp.jl CTApp.jl Public template

    Control-toolbox template for application and package

    Julia 2

Repositories

Showing 10 of 39 repositories
  • OptimalControl.jl Public

    Model and solve optimal control problems in Julia

    control-toolbox/OptimalControl.jl’s past year of commit activity
    Julia 95 MIT 9 19 (1 issue needs help) 11 Updated May 13, 2025
  • Tutorials.jl Public

    Tutorials on optimal control problems using control-toolbox.

    control-toolbox/Tutorials.jl’s past year of commit activity
    Julia 1 MIT 0 0 3 Updated May 13, 2025
  • CTDirect.jl Public

    Direct transcription of an optimal control problem and resolution

    control-toolbox/CTDirect.jl’s past year of commit activity
    Julia 12 MIT 6 10 1 Updated May 12, 2025
  • CTModels.jl Public

    Gather the models for the control-toolbox.

    control-toolbox/CTModels.jl’s past year of commit activity
    Julia 3 MIT 0 9 1 Updated May 12, 2025
  • CTParser.jl Public

    Parser for optimal control problems

    control-toolbox/CTParser.jl’s past year of commit activity
    Julia 2 MIT 0 13 0 Updated May 11, 2025
  • CTBenchmarks.jl Public

    Control-toolbox benchmarks

    control-toolbox/CTBenchmarks.jl’s past year of commit activity
    Jupyter Notebook 11 4 5 0 Updated May 11, 2025
  • GeometricPreconditioner.jl Public

    Geometric preconditioner for indirect shooting

    control-toolbox/GeometricPreconditioner.jl’s past year of commit activity
    Julia 2 MIT 0 0 0 Updated May 10, 2025
  • LossControl.jl Public

    Optimal control problems with loss control: applications

    control-toolbox/LossControl.jl’s past year of commit activity
    Julia 2 MIT 1 2 0 Updated May 10, 2025
  • Kepler.jl Public

    Kepler

    control-toolbox/Kepler.jl’s past year of commit activity
    Julia 1 MIT 0 0 0 Updated May 10, 2025
  • CalculusOfVariations.jl Public

    Applications from calculus of variations

    control-toolbox/CalculusOfVariations.jl’s past year of commit activity
    Julia 1 MIT 0 0 0 Updated May 10, 2025

Top languages

Loading…

Most used topics

Loading…