Skip to content

Commit 7a1f575

Browse files
Remove docs DiffEqDevTools dependency (#4729)
Co-authored-by: ChrisRackauckas-Claude <accounts@chrisrackauckas.com>
1 parent ee7dd34 commit 7a1f575

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

docs/Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ CommonSolve = "38540f10-b2f7-11e9-35d8-d573e4eb0ff2"
77
ControlSystemsBase = "aaaaaaaa-a6ca-5380-bf3e-84a91bcd477e"
88
ControlSystemsMTK = "687d7614-c7e5-45fc-bfc3-9ee385575c88"
99
DataInterpolations = "82cc6244-b520-54b8-b5a6-8a565e85f1d0"
10-
DiffEqDevTools = "f3b72e0c-5b89-59e1-b016-84e28bfd966d"
1110
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
1211
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
1312
DynamicQuantities = "06fc5a27-2a28-4c7c-a15d-362465fb6821"
@@ -44,7 +43,6 @@ CommonSolve = "0.2"
4443
ControlSystemsBase = "1.20"
4544
ControlSystemsMTK = "2.6"
4645
DataInterpolations = "8"
47-
DiffEqDevTools = "2, 3"
4846
Distributions = "0.25"
4947
Documenter = "1"
5048
DynamicQuantities = "1"

docs/src/tutorials/dynamic_optimization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ What we would like to optimize here is the final height of the rocket. We do thi
4141

4242
Now we can construct a problem and solve it. Let us use JuMP as our backend here. Note that the package trigger is actually [InfiniteOpt](https://infiniteopt.github.io/InfiniteOpt.jl/stable/), and not JuMP - this package includes JuMP but is designed for optimization on function spaces. Additionally we need to load the solver package - we will use [Ipopt](https://github.com/jump-dev/Ipopt.jl) here (a good choice in general).
4343

44-
Here we have also loaded DiffEqDevTools because we will need to construct the ODE tableau. This is only needed if one desires a custom ODE tableau for the collocation - by default the solver will use RadauIIA5.
44+
The collocation solver uses a default ODE tableau. A custom tableau can still be supplied when needed.
4545

4646
```@example dynamic_opt
47-
using InfiniteOpt, Ipopt, DiffEqDevTools
47+
using InfiniteOpt, Ipopt
4848
jprob = JuMPDynamicOptProblem(rocket, [u0map; pmap], (ts, te); dt = 0.001)
49-
jsol = solve(jprob, JuMPCollocation(Ipopt.Optimizer, constructRadauIIA5()));
49+
jsol = solve(jprob, JuMPCollocation(Ipopt.Optimizer));
5050
```
5151

5252
The solution has three fields: `jsol.sol` is the ODE solution for the states, `jsol.input_sol` is the ODE solution for the inputs, and `jsol.model` is the wrapped model that we can use to query things like objective and constraint residuals.

0 commit comments

Comments
 (0)