-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
51 lines (39 loc) · 1.78 KB
/
Makefile
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
# Copyright (c) 2024: Oscar Dowson, Joaquim Garcia and contributors
#
# Use of this source code is governed by an MIT-style license that can be found
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
default: help
help:
@echo "The following make commands are available:"
@echo " genx write all GenX instances"
@echo " powermodels write all PowerModels instances"
@echo " sienna write all Sienna instances"
@echo " spineopt write all SpineOpt instances"
@echo " tulipaenergymodel write all TulipaEnergyModel instances"
@echo " unitcommitment write all UnitCommitment instances"
@echo " [HIGHS=X.Y.Z] benchmark run a new set of benchmarks, optionally with a version of HiGHS"
@echo " analyze print analysis of output"
@echo " all re-run all commands"
genx:
julia --project=GenX GenX/main.jl --all --run --write
powermodels:
julia --project=PowerModels PowerModels/main.jl --all --run --write
sienna:
julia --project=Sienna Sienna/tutorial_1.jl --all --run --write
spineopt:
julia --project=SpineOpt SpineOpt/main.jl --all --run --write
tulipaenergymodel:
julia --project=TulipaEnergyModel TulipaEnergyModel/main.jl --all --run --write
unitcommitment:
julia --project=UnitCommitment UnitCommitment/main.jl --all --run --write
benchmark:
@if [ ${HIGHS} ]; then\
echo ${HIGHS};\
julia --project=benchmark -e 'import Pkg; Pkg.add(; name = "HiGHS_jll", version = ENV["HIGHS"])';\
fi
julia --project=benchmark -e "import Pkg; Pkg.instantiate()"
julia --project=benchmark benchmark/main.jl --all
analyze:
julia --project=benchmark benchmark/main.jl --analyze
all: genx powermodels sienna spineopt tulipaenergymodel unitcommitment
.PHONY: default help genx powermodels sienna spineopt tulipaenergymodel unitcommitment benchmark analyze