From 87d7398ee0031069f91c4976d282a37a58d429af Mon Sep 17 00:00:00 2001 From: Pierre Martinon Date: Thu, 18 Apr 2024 12:53:42 +0200 Subject: [PATCH] got the stdout from ipopt with a nothing at block end --- docs/src/api-ctbase.md | 1 - docs/src/api.md | 1 - docs/src/tutorial.md | 10 +++++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/src/api-ctbase.md b/docs/src/api-ctbase.md index 1c543b60..6d8698f1 100644 --- a/docs/src/api-ctbase.md +++ b/docs/src/api-ctbase.md @@ -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 diff --git a/docs/src/api.md b/docs/src/api.md index fc55b2b9..d120f0ee 100644 --- a/docs/src/api.md +++ b/docs/src/api.md @@ -6,7 +6,6 @@ Pages = ["api.md"] Modules = [CTDirect] Order = [:module, :constant, :type, :function, :macro] -Private = false ``` ## Available methods diff --git a/docs/src/tutorial.md b/docs/src/tutorial.md index 4e0a5af3..b4eedfc6 100644 --- a/docs/src/tutorial.md +++ b/docs/src/tutorial.md @@ -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 @@ -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) ```