Skip to content
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
10 changes: 6 additions & 4 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
DifferentiationInterface = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterInterLinks = "d12716ef-a0f6-4df4-a9f1-a5a34e75c656"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
MINPACK = "4854310b-de5a-5eb6-a2a5-c1dee2bd17f9"
Expand All @@ -20,16 +21,17 @@ Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"
BenchmarkTools = "1.6"
DataFrames = "1.7"
DifferentiationInterface = "0.7"
Documenter = "1.8"
Documenter = "1.14"
DocumenterInterLinks = "1.1"
ForwardDiff = "0.10, 1"
LinearAlgebra = "1"
MINPACK = "1.3"
MadNLP = "0.8"
NLPModels = "0.21"
NLPModelsIpopt = "0.10"
NonlinearSolve = "4.6"
OptimalControl = "1.0"
OrdinaryDiffEq = "6.93"
NonlinearSolve = "4.10"
OptimalControl = "1.1"
OrdinaryDiffEq = "6"
Plots = "1.40"
Printf = "1"
Suppressor = "0.2"
Expand Down
4 changes: 2 additions & 2 deletions docs/extras/disc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ for adnlp_backend in backends
println("Testing backend: ", adnlp_backend)

# Discretize the problem with a large grid size and Gauss-Legendre method
bt = @btimed direct_transcription(
docp = @btimed direct_transcription(
$ocp; disc_method=:euler, grid_size=1000, adnlp_backend=($adnlp_backend)
)
docp, nlp = bt.value
nlp = model(docp)
prepa_time = bt.time

# Get the number of non-zero elements
Expand Down
16 changes: 16 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
using Documenter
using DocumenterInterLinks
using OptimalControl

#
links = InterLinks(
"CTDirect" => (
"https://control-toolbox.org/CTDirect.jl/stable/",
"https://control-toolbox.org/CTDirect.jl/stable/objects.inv",
joinpath(@__DIR__, "inventories", "CTDirect.toml"),
),
"OptimalControl" => (
"https://control-toolbox.org/OptimalControl.jl/stable/",
"https://control-toolbox.org/OptimalControl.jl/stable/objects.inv",
joinpath(@__DIR__, "inventories", "OptimalControl.toml"),
),
)

# For reproducibility
mkpath(joinpath(@__DIR__, "src", "assets"))
cp(
Expand Down Expand Up @@ -46,6 +61,7 @@ makedocs(;
"Model Predictive Control" => "tutorial-mpc.md",
],
],
plugins=[links],
)

deploydocs(; repo=repo_url * ".git", devbranch="main")
Loading
Loading