-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstartup.jl
51 lines (39 loc) · 1.5 KB
/
startup.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# deactivate plot GUI, which is not available in Docker
ENV["GKSwstype"] = "100"
# instantiate project
import Pkg
Pkg.activate(@__DIR__)
Pkg.instantiate()
global const TARGET_FOLDER = "results"
const RESULTS_FILE = "results.csv"
function main()
if !isdir(TARGET_FOLDER)
mkdir(TARGET_FOLDER)
end
global io = open(joinpath(TARGET_FOLDER, RESULTS_FILE), "w")
print(io, "benchmark,instance,result,time,accuracy,number of time steps\n")
println("Running NLN benchmarks...")
# Vehicle benchmark (TRAF22)
println("###\nRunning Traffic benchmark\n###")
include("models/Vehicle/vehicle_benchmark.jl")
# Robertson benchmark (ROBE21)
println("###\nRunning Robertson benchmark\n###")
include("models/Robertson/robertson_benchmark.jl")
# Coupled Van der Pol benchmark (CVDP22)
println("###\nRunning Van der Pol benchmark\n###")
include("models/VanDerPol/vanderpol_benchmark.jl")
# Laub-Loomis benchmark (LALO20)
println("###\nRunning Laub-Loomis benchmark\n###")
include("models/LaubLoomis/laubloomis_benchmark.jl")
# Lotka-Volterra tangential crossing benchmark (LOVO21)
println("###\nRunning Lotka-Volterra tangential crossing benchmark\n###")
include("models/LotkaVolterra/lotka_volterra_benchmark.jl")
# Spacecraft benchmark (SPRE22)
println("###\nSpacecraft benchmark\n###")
include("models/Spacecraft/spacecraft_benchmark.jl")
print(io, "\n")
println("Finished running benchmarks.")
close(io)
nothing
end
main()