Skip to content

Commit

Permalink
setup
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMartinon committed Apr 17, 2024
1 parent bac752e commit 191564c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/src/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ We restrict here ourselves to vertical (monodimensional) trajectories, and the
```

First import the module
```@setup main
using Plots
using Plots.PlotMeasures
plot(args...; kwargs...) = Plots.plot(args...; kwargs..., leftmargin=25px)
```

First import the CTDirect module
```@example main
using CTDirect
```
Then define the OCP for the Goddard problem. Note that the free final time is modeled as an optimization variable, hence the argument (variable=true).
Expand Down

0 comments on commit 191564c

Please sign in to comment.