Skip to content

Commit 8120478

Browse files
committed
Remove redundant Flow declarations in control-free examples
- Remove duplicate f = Flow(ocp) declarations in indirect method sections - Flow objects are already created earlier in the examples - Clean up code duplication while maintaining functionality
1 parent 90f3626 commit 8120478

2 files changed

Lines changed: 0 additions & 246 deletions

File tree

docs/src/api/private.md

Lines changed: 0 additions & 244 deletions
This file was deleted.

docs/src/example-control-free.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ Finally, we compute and plot the indirect solution:
164164

165165
```@example main-growth
166166
# Compute and plot indirect solution
167-
f = Flow(ocp)
168167
indirect_sol = f((t0, tf), x0, p0_sol, λ_sol; saveat=range(t0, tf, 200))
169168
plot!(plt, indirect_sol; linestyle=:dash, lw=2, label="Indirect", color=2)
170169
```
@@ -357,7 +356,6 @@ Finally, we compute and plot the indirect solution:
357356

358357
```@example main-harmonic
359358
# Compute and plot indirect solution
360-
f = Flow(ocp)
361359
indirect_sol = f((t0, tf), [q0, v0], p0_sol, ω_sol; saveat=range(t0, tf, 200))
362360
plot!(plt, indirect_sol; linestyle=:dash, lw=2, label="Indirect", color=2)
363361
```

0 commit comments

Comments
 (0)