-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstartup.jl
66 lines (48 loc) · 1.83 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# deactivate plot GUI, which is not available in Docker
ENV["GKSwstype"] = "100"
# instantiate project
import Pkg
Pkg.activate(@__DIR__)
Pkg.instantiate()
using ClosedLoopReachability
ClosedLoopReachability.LazySets.deactivate_assertions()
# create output folder and table
const TARGET_FOLDER = "results"
const RESULTS_FILE = "results.csv"
# function to run benchmarks
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\n")
println("Running AINNCS benchmarks...")
println("###\nRunning ACC benchmark\n###")
include("models/ACC/ACC.jl")
println("###\nRunning TORA benchmark\n###")
include("models/TORA/TORA.jl")
println("###\nRunning Unicycle benchmark\n###")
include("models/Unicycle/Unicycle.jl")
println("###\nRunning VerticalCAS benchmark\n###")
include("models/VerticalCAS/VerticalCAS.jl")
println("###\nRunning InvertedPendulum benchmark\n###")
include("models/InvertedPendulum/InvertedPendulum.jl")
println("###\nRunning InvertedTwoLinkPendulum benchmark\n###")
include("models/InvertedTwoLinkPendulum/InvertedTwoLinkPendulum.jl")
println("###\nRunning Airplane benchmark\n###")
include("models/Airplane/Airplane.jl")
println("###\nRunning AttitudeControl benchmark\n###")
include("models/AttitudeControl/AttitudeControl.jl")
println("###\nRunning Quadrotor benchmark\n###")
include("models/Quadrotor/Quadrotor.jl")
println("###\nRunning SpacecraftDocking benchmark\n###")
include("models/SpacecraftDocking/SpacecraftDocking.jl")
println("###\nRunning NAV benchmark\n###")
include("models/NAV/NAV.jl")
print(io, "\n")
println("Finished running benchmarks.")
close(io)
nothing
end
# run benchmarks
main()