Skip to content

Commit 7f04d93

Browse files
make the tutorial work with copy-paste
1 parent 6bf222f commit 7f04d93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/src/tutorials/nonlinear_optimal_control.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ GalacticOptim.jl:
8686
```julia
8787
u0 = rand(length(states(sys))) # guess for the state values
8888
prob = OptimizationProblem(sys,u0,[0.1,0.1],grad=true)
89+
90+
using GalacticOptim, Optim
8991
sol = solve(prob,BFGS())
9092
```
9193

0 commit comments

Comments
 (0)