tangled
alpha
login
or
join now
dekker.one
/
half-reif-benchmarks
0
fork
atom
The models, scripts, and results of the benchmarks performed for a Half Reification Journal paper
0
fork
atom
overview
issues
pulls
pipelines
Fix MZNC benchmark
dekker.one
5 years ago
82104542
c6789ffb
+81
-5
4 changed files
expand all
collapse all
unified
split
Pipfile
Pipfile.lock
bench_env.sh
mznc_benchmark.py
+12
Pipfile
···
1
1
+
[[source]]
2
2
+
url = "https://pypi.org/simple"
3
3
+
verify_ssl = true
4
4
+
name = "pypi"
5
5
+
6
6
+
[packages]
7
7
+
mzn-bench = {git = "https://github.com/MiniZinc/mzn-bench", extras = ["scripts"]}
8
8
+
9
9
+
[dev-packages]
10
10
+
11
11
+
[requires]
12
12
+
python_version = "3.9"
+51
Pipfile.lock
···
1
1
+
{
2
2
+
"_meta": {
3
3
+
"hash": {
4
4
+
"sha256": "ffdf6e44ee3ff9d9441b7615df72290cfdfec7277ccd294c2af6bec35609aa42"
5
5
+
},
6
6
+
"pipfile-spec": 6,
7
7
+
"requires": {
8
8
+
"python_version": "3.9"
9
9
+
},
10
10
+
"sources": [
11
11
+
{
12
12
+
"name": "pypi",
13
13
+
"url": "https://pypi.org/simple",
14
14
+
"verify_ssl": true
15
15
+
}
16
16
+
]
17
17
+
},
18
18
+
"default": {
19
19
+
"click": {
20
20
+
"hashes": [
21
21
+
"sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a",
22
22
+
"sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc"
23
23
+
],
24
24
+
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'",
25
25
+
"version": "==7.1.2"
26
26
+
},
27
27
+
"minizinc": {
28
28
+
"hashes": [
29
29
+
"sha256:c0e5fae557df0b757bbe4dbec70f7b033b2acc0acabea213e3bbcb0b41d8efeb",
30
30
+
"sha256:d4327468b7cdc1b1379c6fa50350393d2d0903ac1be55235f534992b4f7b2538"
31
31
+
],
32
32
+
"markers": "python_version >= '3.6'",
33
33
+
"version": "==0.4.2"
34
34
+
},
35
35
+
"mzn-bench": {
36
36
+
"extras": [
37
37
+
"scripts"
38
38
+
],
39
39
+
"git": "https://github.com/MiniZinc/mzn-bench",
40
40
+
"ref": "8b6ffa69aa6f8a21a68865975832d9994a49579a"
41
41
+
},
42
42
+
"ruamel.yaml": {
43
43
+
"hashes": [
44
44
+
"sha256:012b9470a0ea06e4e44e99e7920277edf6b46eee0232a04487ea73a7386340a5",
45
45
+
"sha256:076cc0bc34f1966d920a49f18b52b6ad559fbe656a0748e3535cf7b3f29ebf9e"
46
46
+
],
47
47
+
"version": "==0.16.12"
48
48
+
}
49
49
+
},
50
50
+
"develop": {}
51
51
+
}
+2
-2
bench_env.sh
···
9
9
else
10
10
python3 -m venv venv
11
11
source venv/bin/activate
12
12
-
python3 -m pip install mzn-bench
12
12
+
python3 -m pip install git+https://github.com/Dekker1/mzn-bench.git@fix/env_size
13
13
fi
14
14
15
15
# Set other environment variables and load cluster modules
···
26
26
cmake --build software/chuffed/build --config Release --target install
27
27
28
28
export PATH=`pwd`/software/install/bin:$PATH
29
29
-
export LD_LIBRARY_PATH=`pwd`/software/install/bin:$LD_LIBRARY_PATH
29
29
+
export LD_LIBRARY_PATH=`pwd`/software/install/lib:$LD_LIBRARY_PATH
+16
-3
mznc_benchmark.py
···
9
9
instances=Path("./mznc_instances.csv"),
10
10
timeout=timedelta(minutes=20),
11
11
configurations=[
12
12
-
Configuration("Gecode", solver=minizinc.Solver.lookup("gecode"), other_flags={"no-half-reifications": True, "no-chain-compression": True}),
12
12
+
Configuration(
13
13
+
"Gecode",
14
14
+
solver=minizinc.Solver.lookup("gecode"),
15
15
+
other_flags={"no-half-reifications": True, "no-chain-compression": True},
16
16
+
),
13
17
Configuration("Gecode HR", solver=minizinc.Solver.lookup("gecode")),
14
14
-
Configuration("Gurobi", solver=minizinc.Solver.lookup("gecode"), other_flags={"no-half-reifications": True, "no-chain-compression": True}),
18
18
+
Configuration(
19
19
+
"Gurobi",
20
20
+
solver=minizinc.Solver.lookup("gurobi"),
21
21
+
other_flags={"no-half-reifications": True, "no-chain-compression": True},
22
22
+
),
15
23
Configuration("Gurobi HR", solver=minizinc.Solver.lookup("gurobi")),
16
16
-
Configuration("CBC", solver=minizinc.Solver.lookup("cbc"), other_flags={"no-half-reifications": True, "no-chain-compression": True}),
24
24
+
Configuration(
25
25
+
"CBC",
26
26
+
solver=minizinc.Solver.lookup("cbc"),
27
27
+
other_flags={"no-half-reifications": True, "no-chain-compression": True},
28
28
+
),
17
29
Configuration("CBC HR", solver=minizinc.Solver.lookup("cbc")),
18
30
],
31
31
+
memory=16384,
19
32
nodelist=["critical001"],
20
33
output_dir=Path("./output/mznc/"),
21
34
)