Skip to content

Commit 5d3d346

Browse files
author
Documenter.jl
committed
build based on 748a8da
1 parent ed6c8bb commit 5d3d346

27 files changed

+998
-998
lines changed

dev/.documenter-siteinfo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"documenter":{"julia_version":"1.11.7","generation_timestamp":"2025-09-28T10:54:49","documenter_version":"1.14.1"}}
1+
{"documenter":{"julia_version":"1.11.7","generation_timestamp":"2025-09-28T10:54:54","documenter_version":"1.14.1"}}

dev/ho-5314a923.svg renamed to dev/ho-06036e37.svg

Lines changed: 36 additions & 36 deletions
Loading

dev/ho-6fa41275.svg renamed to dev/ho-1b2bb116.svg

Lines changed: 100 additions & 100 deletions
Loading

dev/ho-b53ab9f6.svg renamed to dev/ho-24a04553.svg

Lines changed: 31 additions & 31 deletions
Loading

dev/ho-e5558d62.svg renamed to dev/ho-7bd21620.svg

Lines changed: 34 additions & 34 deletions
Loading

dev/ho-90688599.svg renamed to dev/ho-7da94578.svg

Lines changed: 36 additions & 36 deletions
Loading

dev/ho-c517b199.svg renamed to dev/ho-c07cf0c2.svg

Lines changed: 31 additions & 31 deletions
Loading

dev/ho-3c9adc70.svg renamed to dev/ho-f88cf81d.svg

Lines changed: 32 additions & 32 deletions
Loading

dev/ho.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
using OptimalControl
2424
using NLPModelsIpopt
2525
include(&quot;smooth.jl&quot;)</code></pre><pre><code class="language-julia hljs">fNC(x) = fNC_unboundedminus(x, 0, 0.018)
26-
plot(fNC, -1, 1, label=&quot;fNC&quot;)</code></pre><img src="ho-3c9adc70.svg" alt="Example block output"/><pre><code class="language-julia hljs">const ε = 1e-3
26+
plot(fNC, -1, 1, label=&quot;fNC&quot;)</code></pre><img src="ho-f88cf81d.svg" alt="Example block output"/><pre><code class="language-julia hljs">const ε = 1e-3
2727

2828
@def ocp begin
2929

@@ -93,9 +93,9 @@
9393
Number of equality constraint Jacobian evaluations = 378
9494
Number of inequality constraint Jacobian evaluations = 0
9595
Number of Lagrangian Hessian evaluations = 377
96-
Total seconds in IPOPT = 14.080
96+
Total seconds in IPOPT = 13.912
9797

98-
EXIT: Optimal Solution Found.</code></pre><pre><code class="language-julia hljs">plot(sol; layout=:group, size=(800, 300))</code></pre><img src="ho-6fa41275.svg" alt="Example block output"/><pre><code class="language-julia hljs">tf = variable(sol)
98+
EXIT: Optimal Solution Found.</code></pre><pre><code class="language-julia hljs">plot(sol; layout=:group, size=(800, 300))</code></pre><img src="ho-1b2bb116.svg" alt="Example block output"/><pre><code class="language-julia hljs">tf = variable(sol)
9999
tt = (0:N+1) * (tf/(N+1))
100100

101101
x1(t) = state(sol)(t)[1]
@@ -105,8 +105,8 @@
105105
p1(t) = costate(sol)(t)[1]
106106
p2(t) = costate(sol)(t)[2]
107107
a = λ(tf)</code></pre><pre><code class="language-julia hljs">plot(x1, x2, 0, tf, label=&quot;optimal trajectory&quot;, color=&quot;blue&quot;, linewidth=2)
108-
plot!([-4, 5], [0, 0], color=:black, label=false, linewidth=2)</code></pre><img src="ho-b53ab9f6.svg" alt="Example block output"/><pre><code class="language-julia hljs">plot(tt, u, label=&quot;optimal control&quot;, color=&quot;red&quot;, linewidth=2)
109-
plot!(tt, λ, label=&quot;state λ&quot;, color=&quot;green&quot;, linewidth=2)</code></pre><img src="ho-e5558d62.svg" alt="Example block output"/><pre><code class="language-julia hljs"># Find the crossing times based on conditions for x1
108+
plot!([-4, 5], [0, 0], color=:black, label=false, linewidth=2)</code></pre><img src="ho-24a04553.svg" alt="Example block output"/><pre><code class="language-julia hljs">plot(tt, u, label=&quot;optimal control&quot;, color=&quot;red&quot;, linewidth=2)
109+
plot!(tt, λ, label=&quot;state λ&quot;, color=&quot;green&quot;, linewidth=2)</code></pre><img src="ho-7bd21620.svg" alt="Example block output"/><pre><code class="language-julia hljs"># Find the crossing times based on conditions for x1
110110
t1_index = findfirst(t -&gt; x2(t) ≤ 0, tt)
111111
t2_index = nothing
112112
t3_index = nothing
@@ -258,8 +258,8 @@
258258
x22 = [ xx[i][2] for i=1:m ]
259259
p11 = [ pp[i][1] for i=1:m ]
260260
p22 = [ pp[i][2] for i=1:m ]</code></pre><pre><code class="language-julia hljs">plot(x11, x22, label=&quot;optimal trajectory&quot;, linecolor=:blue , linewidth=2)
261-
plot!([-4, 5], [0, 0], color=:black, label=false, linewidth=2)</code></pre><img src="ho-c517b199.svg" alt="Example block output"/><pre><code class="language-julia hljs">plot(tt0, uu, label=&quot;optimal control&quot;, linecolor=:red , linewidth=2)</code></pre><img src="ho-90688599.svg" alt="Example block output"/><pre><code class="language-julia hljs">plot(tt0, p11, label=&quot;costate p1&quot;, linecolor=:purple , linewidth=2)
262-
plot!(tt0, p22, label=&quot;costate p2&quot;, linecolor=:violet , linewidth=2)</code></pre><img src="ho-5314a923.svg" alt="Example block output"/><pre><code class="language-julia hljs"># create an animation
261+
plot!([-4, 5], [0, 0], color=:black, label=false, linewidth=2)</code></pre><img src="ho-c07cf0c2.svg" alt="Example block output"/><pre><code class="language-julia hljs">plot(tt0, uu, label=&quot;optimal control&quot;, linecolor=:red , linewidth=2)</code></pre><img src="ho-7da94578.svg" alt="Example block output"/><pre><code class="language-julia hljs">plot(tt0, p11, label=&quot;costate p1&quot;, linecolor=:purple , linewidth=2)
262+
plot!(tt0, p22, label=&quot;costate p2&quot;, linecolor=:violet , linewidth=2)</code></pre><img src="ho-06036e37.svg" alt="Example block output"/><pre><code class="language-julia hljs"># create an animation
263263
animx = @animate for i = 1:length(tt0)
264264
plot(x11[1:i], x22[1:i], xlim=(-3.,5.), ylim=(-4.,4.3), label=&quot;optimal trajectory&quot;,
265265
linecolor=:blue, linewidth=2, legend=:topleft)

dev/zermelo1-cc58575c.svg renamed to dev/zermelo1-9d306ef6.svg

Lines changed: 32 additions & 32 deletions
Loading

0 commit comments

Comments
 (0)