From cc41414c638e2140b11e8c781f2646941247b1b0 Mon Sep 17 00:00:00 2001 From: Pierre Martinon Date: Fri, 5 Jul 2024 15:10:23 +0200 Subject: [PATCH] docs ok --- docs/src/api.md | 6 ++---- docs/src/tutorial.md | 28 ---------------------------- 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/docs/src/api.md b/docs/src/api.md index cb660de..2cf244e 100644 --- a/docs/src/api.md +++ b/docs/src/api.md @@ -18,8 +18,6 @@ Private = false ```@docs solve -save_OCP_solution -load_OCP_solution -export_OCP_solution -read_OCP_solution +export_ocp_solution +import_ocp_solution ``` diff --git a/docs/src/tutorial.md b/docs/src/tutorial.md index 275ec8f..ee62748 100644 --- a/docs/src/tutorial.md +++ b/docs/src/tutorial.md @@ -108,31 +108,3 @@ nothing # hide ```@example main plot(sol4) ``` - -## The discretized problem - -Instead of calling **solve** directly on the OCP problem, you can first obtain the discretized problem (DOCP) by calling **directTranscription**, then call **solve** on the DOCP. The resulting solution of the discretized problem can be used to generate the corresponding OCP solution with **OCPSolutionFromDOCP**. -```@example main -docp = directTranscription(ocp, grid_size=100) -dsol = solve(docp, print_level=5) -sol5 = OCPSolutionFromDOCP(docp, dsol) -nothing # hide -``` -The initial guess can be passed to **solve** same as before. -```@example main -dsol = solve(docp, print_level=0, init=sol1) -sol6 = OCPSolutionFromDOCP(docp, dsol) -println("Objective ", sol6.objective, " after ", sol6.iterations, " iterations") -``` -Another possibility is to set the initial guess associated to the DOCP, using the function **setInitialGuess**. -```@example main -setDOCPInitialGuess(docp, sol1) -dsol = solve(docp, print_level=5) -nothing # hide -``` -Finally, the direct transcription also accept an initial guess. -```@example main -docp = directTranscription(ocp, grid_size=100, init=sol1) -dsol = solve(docp, print_level=5) -nothing # hide -```