Conversation
|
Just one info. Sometimes in the doc you have an output but you don't want one since it is ugly: To get rid of this output you can add using JuMP
using Ipopt
using Plots
using Plots.PlotMeasures
using LaTeXStrings
using OptimalControl
using NLPModelsIpopt
include("smooth.jl");
nothing # hide |
Project.toml
Outdated
| uuid = "6a3a0e7e-9c90-4c26-bc64-8dd630726a7b" | ||
| authors = ["Olivier Cots <olivier.cots@irit.fr>"] | ||
| version = "0.1.1" | ||
| version = "0.1.0" |
There was a problem hiding this comment.
Maybe put the version "0.1.3" and make a new release if you want this to appear in the "stable" documentation.
README.md
Outdated
|
|
||
| This repo is part of the [control-toolbox ecosystem](https://github.com/control-toolbox). | ||
| The control-toolbox ecosystem gathers Julia packages for mathematical control and applications. The root package is [OptimalControl.jl](https://github.com/control-toolbox/OptimalControl.jl) which aims to provide tools to modelise and solve optimal control problems by direct and indirect methods. [](http://control-toolbox.org/OptimalControl.jl) | ||
| The control-toolbox ecosystem gathers `Julia` packages for mathematical control and applications. The root package is [`OptimalControl.jl`](https://github.com/control-toolbox/OptimalControl.jl) which aims to provide tools to modelise and solve optimal control problems by direct and indirect methods. [](http://control-toolbox.org/OptimalControl.jl) |
There was a problem hiding this comment.
Actually, instead of OptimalControl.jl we simply write OptimalControl.jl.
There was a problem hiding this comment.
Same for Julia. Be careful since, it seems that you have overwritten corrections I have made before.
There was a problem hiding this comment.
This issue is solved.
|
|
||
| ```@example main | ||
| @def ocp begin | ||
| @def ocp begin |
There was a problem hiding this comment.
At the end of the code, you can add nothing # hide if you want.
There was a problem hiding this comment.
Thanks, I used nothing # hide for most of the code and it worked well except in
N = 500
sol = solve(ocp; grid_size=N);
nothing # hide
where it (still) shows the output.
There was a problem hiding this comment.
@AnasXbouali This is not really an output but a trace during the optimization process. To turn it off you can use the option display:
N = 500
sol = solve(ocp; grid_size=N, display=false)and if you don't want to print the output, here print sol, then you can add:
N = 500
sol = solve(ocp; grid_size=N, display=false)
nothing # hideNote. You can remove ";" when using nothing # hide.
There was a problem hiding this comment.
Noted, Thanks!
There was a problem hiding this comment.
@AnasXbouali If you want the trace but there are many iterations and you want a shorter display, you can use the print_level option from Ipopt.
sol = solve(ocp; grid_size=N, print_level=4)See https://control-toolbox.org/OptimalControl.jl/stable/tutorial-double-integrator.html#Solve-and-plot
There was a problem hiding this comment.
I think when the new release v0.1.3 is out, then we could add a link to this doc in the menu of OptimalControl.jl in the Applications part.
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
|
@AnasXbouali Pense à supprimer la branche une fois le merge fait. Clique sur "Delete branch" en bas, cf image. |


Hi @ocots !
I modified the introduction and added a section about the 'PMP with loss control regions', as well as a presentation of the 'direct method'.
I believe the current version is ready to be merged with the main branch.