Skip to content

Commit 74283db

Browse files
committed
Merge branch 'main' of github.com:control-toolbox/preconditioning
2 parents 64ab9c9 + a9191fa commit 74283db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ DifferentialEquations = "7.13"
1111
Documenter = "1.6"
1212
ForwardDiff = "0.10"
1313
MINPACK = "1.3"
14-
OptimalControl = "0.11"
14+
OptimalControl = "0.12"
1515
Plots = "1.40"
1616
julia = "1.10"

docs/src/2D-example.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ sol_ = φ((t0, tf), x0, p0_sol.x[1], saveat=range(t0, tf, 500))
284284
285285
# plot
286286
sol = OptimalControl.OptimalControlSolution(sol_)
287-
t = sol.times
288-
x = sol.state
289-
p = sol.costate
287+
t = time_grid(sol)
288+
x = state(sol)
289+
p = costate(sol)
290290
u = sign ∘ p
291291
292292
plt_x = plot(t, x, label = "x")

0 commit comments

Comments
 (0)