Skip to content
Open
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
8 changes: 8 additions & 0 deletions benchmarks/benchmarks-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,13 @@
"runs_on": "[\"moonshot\"]",
"runner": "self-hosted"
}
,
{
"id": "core-midpoint-trapeze",
"julia_version": "1.11",
"julia_arch": "x64",
"runs_on": "\"ubuntu-latest\"",
"runner": "self-hosted"
}
]
}
39 changes: 39 additions & 0 deletions benchmarks/core-midpoint-trapeze.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Modeler: :exa

function run()
results = CTBenchmarks.benchmark(
problems=[
:beam,
:chain,
:double_oscillator,
:ducted_fan,
:electric_vehicle,
:glider,
:insurance,
:jackson,
:robbins,
:robot,
:rocket,
:space_shuttle,
:steering,
:vanderpol,
],

# solver × modeler
solver_models = [
:madnlp => [:exa],
:ipopt => [:exa],
],

disc_methods = [:trapeze, :midpoint],

grid_sizes = [200],
tol = 1e-8,
ipopt_mu_strategy = "adaptive",
print_trace = false,
max_iter = 2000,
max_wall_time = 600.0,
)
println("✅ Benchmark midpoint vs trapeze completed successfully!")
return results
end
8 changes: 6 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ with_processed_template_problems(
# ───────────────────────────────────────────────────────────────────────────

size_threshold_ignore = [
"index.md", joinpath("core", "cpu.md"), joinpath("core", "gpu.md")
"index.md", joinpath("core", "cpu.md"), joinpath("core", "gpu.md"), joinpath("core", "midpoint-trapeze.md") #####
]
for problem in core_problems
push!(size_threshold_ignore, joinpath("core", "problems", "$(problem).md"))
Expand All @@ -80,6 +80,7 @@ with_processed_template_problems(
joinpath("core", "cpu.md"),
joinpath("core", "gpu.md"),
joinpath("core", "problems"),
joinpath("core", "midpoint-trapeze.md"), ####
],
joinpath(@__DIR__, "src"),
joinpath(@__DIR__, "src", "assets", "md"),
Expand All @@ -106,7 +107,10 @@ with_processed_template_problems(
"Introduction" => "index.md",
"Performance Profile" => "performance_profile.md",
"Core benchmarks" => [
"CPU" => joinpath("core", "cpu.md"),
"CPU" => [ #### sous menu
"General Benchmarks" => joinpath("core", "cpu.md"),
"Midpoint vs Trapeze" => joinpath("core", "midpoint-trapeze.md"),
],
"GPU" => joinpath("core", "gpu.md"),
"Problems" => core_problems_menu,
],
Expand Down
Loading