Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

up compat #5

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[deps]
CTFlows = "1c39547c-7794-42f7-af83-d98194f657c2"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
NLPModelsIpopt = "f4238b75-b362-5c4c-b852-0801c9a21d71"
Expand All @@ -10,12 +9,11 @@ Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"

[compat]
CTFlows = "0.4.5"
Documenter = "1.5.0"
NLPModelsIpopt = "0.10.2"
NonlinearSolve = "3.13.1"
OptimalControl = "0.9.4"
OrdinaryDiffEq = "6.85.0"
Plots = "1.40.5"
Suppressor = "0.2.7"
Documenter = "1.5"
NLPModelsIpopt = "0.10"
NonlinearSolve = "3.13"
OptimalControl = "0.11"
OrdinaryDiffEq = "6.88"
Plots = "1.40"
Suppressor = "0.2"
julia = "1.10"
18 changes: 0 additions & 18 deletions docs/src/saturation.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,9 @@ We define a custom plot function to plot the solution inside the Bloch ball.
<code>spin_plot</code> — <span class="docstring-category">Function</span>
</header>
<section style="display: none;"><div><pre><code class="language-julia hljs">using Plots.PlotMeasures
using CTFlows

function spin_plot(sol; kwargs...)

if sol isa CTFlows.OptimalControlFlowSolution
sol = CTFlows.OptimalControlSolution(sol)
end

y2 = cos(asin(zs))
y1 = -y2

Expand Down Expand Up @@ -231,13 +226,8 @@ end</code><button class="copy-button fa-solid fa-copy" aria-label="Copy this cod

```@example main
using Plots.PlotMeasures # hide
using CTFlows # hide
function spin_plot(sol; kwargs...) # hide

if sol isa CTFlows.OptimalControlFlowSolution # hide
sol = CTFlows.OptimalControlSolution(sol) # hide
end # hide

y2 = cos(asin(zs)) # hide
y1 = -y2 # hide

Expand Down Expand Up @@ -376,10 +366,6 @@ and its derivative along the solution computed by the direct method.
</header>
<section style="display: none;"><div><pre><code class="language-julia hljs">function switching_plot(sol, H1, H01; kwargs...)

if sol isa CTFlows.OptimalControlFlowSolution
sol = CTFlows.OptimalControlSolution(sol)
end

t = sol.times
u = sol.control
q = sol.state
Expand Down Expand Up @@ -427,10 +413,6 @@ the first singular arc, the switching function is not always zero.
```@example main
function switching_plot(sol, H1, H01; kwargs...) # hide

if sol isa CTFlows.OptimalControlFlowSolution # hide
sol = CTFlows.OptimalControlSolution(sol) # hide
end # hide

t = sol.times # hide
u = sol.control # hide
q = sol.state # hide
Expand Down
Loading