You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/index.md
+64Lines changed: 64 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,3 +73,67 @@ If you want to ask a question, feel free to start a discussion [here](https://gi
73
73
!!! note
74
74
75
75
If you want to add an application or a package to the control-toolbox ecosystem, please follow this [set up tutorial](https://github.com/control-toolbox/CTApp.jl/discussions/9).
76
+
77
+
## Reproducibility
78
+
79
+
```@raw html
80
+
<details><summary>The documentation of this package was built using these direct dependencies,</summary>
81
+
```
82
+
83
+
```@example
84
+
using Pkg # hide
85
+
Pkg.status() # hide
86
+
```
87
+
88
+
```@raw html
89
+
</details>
90
+
```
91
+
92
+
```@raw html
93
+
<details><summary>and using this machine and Julia version.</summary>
94
+
```
95
+
96
+
```@example
97
+
using InteractiveUtils # hide
98
+
versioninfo() # hide
99
+
```
100
+
101
+
```@raw html
102
+
</details>
103
+
```
104
+
105
+
```@raw html
106
+
<details><summary>A more complete overview of all dependencies and their versions is also provided.</summary>
107
+
```
108
+
109
+
```@example
110
+
using Pkg # hide
111
+
Pkg.status(; mode = PKGMODE_MANIFEST) # hide
112
+
```
113
+
114
+
```@raw html
115
+
</details>
116
+
```
117
+
118
+
```@eval
119
+
using TOML
120
+
using Markdown
121
+
version = TOML.parse(read("../../Project.toml", String))["version"]
122
+
name = TOML.parse(read("../../Project.toml", String))["name"]
The options for the direct method are listed [here](https://control-toolbox.org/OptimalControl.jl/stable/dev-ctdirect.html#CTDirect.solve-Tuple{Model,%20Vararg{Symbol}}). The main options, with their [default values], are:
101
101
-`display` ([true], false): setting `display` to false will disable output.
102
+
-`init`: info for the starting guess, which can be provided as numerical values, functions, or an existing solution. See [initial guess tutorial](@ref tutorial-initial-guess).
102
103
-`grid_size` ([250]): size of the (uniform) time discretization grid. More precisely, it is the number of time steps, that is if `N = grid_size` and if the initial and final times are denoted respectively `t0` and `tf`, then we have `Δt = (tf - t0) / N`.
104
+
-`time_grid` ([`nothing`]): explicit time grid (can be non uniform). If `time_grid` is nothing then, a uniform grid is built of length `grid_size`.
103
105
-`disc_method` ([`:trapeze`], `:midpoint`, `:euler`, `:euler_implicit`, `:gauss_legendre_2`, `:gauss_legendre_3`): see [discretisation methods](https://control-toolbox.org/Tutorials.jl/stable/tutorial-discretisation.html).
104
-
-`init`: info for the starting guess, which can be provided as numerical values, functions, or an existing solution. See [initial guess tutorial](@ref tutorial-initial-guess).
106
+
-`adnlp_backend`: backend for automatic differentiation in ADNLPModels ([`:optimized`], `:manual`, `:default`).
@@ -114,12 +116,12 @@ In addition to these options, all remaining keyword arguments passed to `solve`
114
116
115
117
Please check the list of [Ipopt options](https://coin-or.github.io/Ipopt/OPTIONS.html) and the [NLPModelsIpopt.jl documentation](https://jso.dev/NLPModelsIpopt.jl).
116
118
```@example main
117
-
solve(ocp; max_iter=0)
118
-
nothing # hide
119
+
sol = solve(ocp; max_iter=0, display=false)
120
+
iterations(sol)
119
121
```
120
122
121
123
Similarly, please check the [MadNLP.jl documentation](https://madnlp.github.io/MadNLP.jl) and the list of [MadNLP.jl options](https://madnlp.github.io/MadNLP.jl/stable/options/).
122
124
```@example main
123
-
solve(ocp, :madnlp; max_iter=0)
124
-
nothing # hide
125
+
sol = solve(ocp, :madnlp; max_iter=0, display=false)
0 commit comments