The models, scripts, and results of the benchmarks performed for a Half Reification Journal paper

Fix MZNC benchmark

+81 -5
+12
Pipfile
··· 1 + [[source]] 2 + url = "https://pypi.org/simple" 3 + verify_ssl = true 4 + name = "pypi" 5 + 6 + [packages] 7 + mzn-bench = {git = "https://github.com/MiniZinc/mzn-bench", extras = ["scripts"]} 8 + 9 + [dev-packages] 10 + 11 + [requires] 12 + python_version = "3.9"
+51
Pipfile.lock
··· 1 + { 2 + "_meta": { 3 + "hash": { 4 + "sha256": "ffdf6e44ee3ff9d9441b7615df72290cfdfec7277ccd294c2af6bec35609aa42" 5 + }, 6 + "pipfile-spec": 6, 7 + "requires": { 8 + "python_version": "3.9" 9 + }, 10 + "sources": [ 11 + { 12 + "name": "pypi", 13 + "url": "https://pypi.org/simple", 14 + "verify_ssl": true 15 + } 16 + ] 17 + }, 18 + "default": { 19 + "click": { 20 + "hashes": [ 21 + "sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a", 22 + "sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc" 23 + ], 24 + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", 25 + "version": "==7.1.2" 26 + }, 27 + "minizinc": { 28 + "hashes": [ 29 + "sha256:c0e5fae557df0b757bbe4dbec70f7b033b2acc0acabea213e3bbcb0b41d8efeb", 30 + "sha256:d4327468b7cdc1b1379c6fa50350393d2d0903ac1be55235f534992b4f7b2538" 31 + ], 32 + "markers": "python_version >= '3.6'", 33 + "version": "==0.4.2" 34 + }, 35 + "mzn-bench": { 36 + "extras": [ 37 + "scripts" 38 + ], 39 + "git": "https://github.com/MiniZinc/mzn-bench", 40 + "ref": "8b6ffa69aa6f8a21a68865975832d9994a49579a" 41 + }, 42 + "ruamel.yaml": { 43 + "hashes": [ 44 + "sha256:012b9470a0ea06e4e44e99e7920277edf6b46eee0232a04487ea73a7386340a5", 45 + "sha256:076cc0bc34f1966d920a49f18b52b6ad559fbe656a0748e3535cf7b3f29ebf9e" 46 + ], 47 + "version": "==0.16.12" 48 + } 49 + }, 50 + "develop": {} 51 + }
+2 -2
bench_env.sh
··· 9 9 else 10 10 python3 -m venv venv 11 11 source venv/bin/activate 12 - python3 -m pip install mzn-bench 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 - export LD_LIBRARY_PATH=`pwd`/software/install/bin:$LD_LIBRARY_PATH 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 - Configuration("Gecode", solver=minizinc.Solver.lookup("gecode"), other_flags={"no-half-reifications": True, "no-chain-compression": True}), 12 + Configuration( 13 + "Gecode", 14 + solver=minizinc.Solver.lookup("gecode"), 15 + other_flags={"no-half-reifications": True, "no-chain-compression": True}, 16 + ), 13 17 Configuration("Gecode HR", solver=minizinc.Solver.lookup("gecode")), 14 - Configuration("Gurobi", solver=minizinc.Solver.lookup("gecode"), other_flags={"no-half-reifications": True, "no-chain-compression": True}), 18 + Configuration( 19 + "Gurobi", 20 + solver=minizinc.Solver.lookup("gurobi"), 21 + other_flags={"no-half-reifications": True, "no-chain-compression": True}, 22 + ), 15 23 Configuration("Gurobi HR", solver=minizinc.Solver.lookup("gurobi")), 16 - Configuration("CBC", solver=minizinc.Solver.lookup("cbc"), other_flags={"no-half-reifications": True, "no-chain-compression": True}), 24 + Configuration( 25 + "CBC", 26 + solver=minizinc.Solver.lookup("cbc"), 27 + other_flags={"no-half-reifications": True, "no-chain-compression": True}, 28 + ), 17 29 Configuration("CBC HR", solver=minizinc.Solver.lookup("cbc")), 18 30 ], 31 + memory=16384, 19 32 nodelist=["critical001"], 20 33 output_dir=Path("./output/mznc/"), 21 34 )