Skip to content

Commit

Permalink
build based on 5477756
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Jun 4, 2024
1 parent 4429f37 commit 5113b4c
Show file tree
Hide file tree
Showing 13 changed files with 983 additions and 976 deletions.
2 changes: 1 addition & 1 deletion dev/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.3","generation_timestamp":"2024-06-03T11:15:30","documenter_version":"1.4.1"}}
{"documenter":{"julia_version":"1.10.3","generation_timestamp":"2024-06-04T12:29:05","documenter_version":"1.4.1"}}
84 changes: 42 additions & 42 deletions dev/api-ctbase.html

Large diffs are not rendered by default.

27 changes: 17 additions & 10 deletions dev/api.html

Large diffs are not rendered by default.

498 changes: 249 additions & 249 deletions dev/continuation-2248f0df.svg → dev/continuation-5785be35.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
504 changes: 252 additions & 252 deletions dev/continuation-1a53eb90.svg → dev/continuation-884ead09.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions dev/continuation.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
ylabel!("Maximal altitude r(tf)")
plot(sol0)
p = plot!(sol)
plot(pobj, p, layout=2)</code></pre><img src="continuation-2248f0df.svg" alt="Example block output"/><h2 id="Manual-constraint-redefinition"><a class="docs-heading-anchor" href="#Manual-constraint-redefinition">Manual constraint redefinition</a><a id="Manual-constraint-redefinition-1"></a><a class="docs-heading-anchor-permalink" href="#Manual-constraint-redefinition" title="Permalink"></a></h2><p>Here we illustrate a slightly more involved way of modifying the OCP problem during the continuation. Instead of just updating a global variable as before, we now remove and redefine one of the constraints (maximal speed). </p><pre><code class="language-julia hljs">global Tmax = 3.5
plot(pobj, p, layout=2)</code></pre><img src="continuation-5785be35.svg" alt="Example block output"/><h2 id="Manual-constraint-redefinition"><a class="docs-heading-anchor" href="#Manual-constraint-redefinition">Manual constraint redefinition</a><a id="Manual-constraint-redefinition-1"></a><a class="docs-heading-anchor-permalink" href="#Manual-constraint-redefinition" title="Permalink"></a></h2><p>Here we illustrate a slightly more involved way of modifying the OCP problem during the continuation. Instead of just updating a global variable as before, we now remove and redefine one of the constraints (maximal speed). </p><pre><code class="language-julia hljs">global Tmax = 3.5
vmax_list = []
obj_list = []
iter_list = []
Expand All @@ -97,7 +97,7 @@
ylabel!(&quot;Maximal altitude r(tf)&quot;)
plot(sol0)
p = plot!(sol)
plot(pobj, p, layout=2)</code></pre><img src="continuation-1a53eb90.svg" alt="Example block output"/><p>We can compare with solving each problem with the default initial guess, which here gives the same solutions but takes more iterations overall.</p><pre><code class="language-julia hljs">iter_list = []
plot(pobj, p, layout=2)</code></pre><img src="continuation-884ead09.svg" alt="Example block output"/><p>We can compare with solving each problem with the default initial guess, which here gives the same solutions but takes more iterations overall.</p><pre><code class="language-julia hljs">iter_list = []
for vmax=0.15:-0.01:0.05
print(vmax,&quot; &quot;)
remove_constraint!(ocp, :speed_limit)
Expand All @@ -106,4 +106,4 @@
push!(iter_list, sol.iterations)
end
@printf(&quot;\nAverage iterations %d\n&quot;, mean(iter_list))</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">0.15 0.14 0.13 0.12 0.11 0.1 0.09 0.08 0.07 0.06 0.05
Average iterations 32</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="tutorial.html">« Tutorial</a><a class="docs-footer-nextpage" href="api.html">API »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.4.1 on <span class="colophon-date" title="Monday 3 June 2024 11:15">Monday 3 June 2024</span>. Using Julia version 1.10.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Average iterations 32</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="tutorial.html">« Tutorial</a><a class="docs-footer-nextpage" href="api.html">API »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.4.1 on <span class="colophon-date" title="Tuesday 4 June 2024 12:29">Tuesday 4 June 2024</span>. Using Julia version 1.10.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit 5113b4c

Please sign in to comment.