Skip to content

Commit

Permalink
got the stdout from ipopt with a nothing at block end
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMartinon committed Apr 18, 2024
1 parent 65a519b commit 87d7398
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 0 additions & 1 deletion docs/src/api-ctbase.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ For more details about `CTBase.jl` package, see the [documentation](https://cont
Pages = ["api-ctbase.md"]
Modules = [CTBase]
Order = [:module, :constant, :type, :function, :macro]
Private = false
```

## Documentation
Expand Down
1 change: 0 additions & 1 deletion docs/src/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
Pages = ["api.md"]
Modules = [CTDirect]
Order = [:module, :constant, :type, :function, :macro]
Private = false
```

## Available methods
Expand Down
10 changes: 9 additions & 1 deletion docs/src/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,15 @@ end
end
```

We can solve the problem directly using the default options, i.e 100 time steps and a constant initial guess set at 0.1. Then plot the solution with the state and control variables, as well as the costate recovered from the lagrange multipliers of the discretized problem.
We can solve the problem directly using the default options, i.e 100 time steps and a constant initial guess set at 0.1.
```@example main
sol1 = solve(ocp1, print_level=5)
nothing # hide
```
Then plot the solution with the state and control variables, as well as the costate recovered from the lagrange multipliers of the discretized problem.
```@example main
plot(sol1)
```

+++ variantes initial guess: constant
Expand All @@ -74,6 +79,9 @@ sol4
We can also use a so-called *warmstart* strategy and use an existing solution as initial guess (note that the OCP solution returned by the **solve** call is functional, thus it is not necessary to use the same time grid).
```@example main
sol4 = solve(ocp1, grid_size=200, print_level=5, init=OptimalControlInit(sol1))
nothing # hide
```
```@example main
plot(sol4)
```

Expand Down

0 comments on commit 87d7398

Please sign in to comment.