Skip to content

Commit a2e28c3

Browse files
committed
goddard tuto fix
1 parent 95c2293 commit a2e28c3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/src/tutorial-goddard.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ using OrdinaryDiffEq # to get the Flow function from OptimalControl
4949
using NonlinearSolve # interface to NLE solvers
5050
using MINPACK # NLE solver: use to solve the shooting equation
5151
using Plots # to plot the solution
52+
using BenchmarkTools # do some benchmarking
5253
```
5354

5455
## Optimal control problem
@@ -302,8 +303,7 @@ nothing # hide
302303

303304
Let us do some benchmarking. This will be useful to compare the performance with the MINPACK.jl package below.
304305

305-
```@example main
306-
using BenchmarkTools
306+
```@setup main
307307
function nlsolve(prob; kwargs...)
308308
try
309309
NonlinearSolve.solve(prob; kwargs...)
@@ -318,7 +318,7 @@ end
318318
For small nonlinear systems, it could be faster to use the
319319
[`SimpleNewtonRaphson()` descent algorithm](https://docs.sciml.ai/NonlinearSolve/stable/tutorials/code_optimization/).
320320

321-
```@example main
321+
```@setup main
322322
function nlsolve(prob, meth; kwargs...)
323323
try
324324
NonlinearSolve.solve(prob, meth; kwargs...)

0 commit comments

Comments
 (0)