- Install Julia
julia> ] activate .
julia> instantiate
- Install Python and dependencies
pip install -r requirements.txt
This folder contains the benchmark experiments for the facility location and LQCP problems. The experiments are implemented in Julia, Python, C++. The experiments are run with the following solvers:
- C++
$ cpp_build.bat
$ julia cpp_run.jl gurobi
$ julia cpp_run.jl copt
- JuMP
$ julia --project=. facility.jl gurobi
$ julia --project=. lqcp.jl gurobi
$ julia --project=. facility.jl copt
$ julia --project=. lqcp.jl copt
- PyOptInterface
$ python facility_poi.py gurobi
$ python lqcp_poi.py gurobi
$ python facility_poi.py copt
$ python lqcp_poi.py copt
- gurobipy
$ python facility_gurobipy.py
$ python lqcp_gurobipy.py
- coptpy
$ python facility_coptpy.py
$ python lqcp_coptpy.py
- Pyomo
$ python facility_pyomo.py gurobi
$ python lqcp_pyomo.py gurobi
$ python facility_pyomo.py copt
$ python lqcp_pyomo.py copt
The result is stored in benchmarks.csv file and can be shown by running
$ julia --project=. produce_table.jl
The code for benchmark is adapted from https://github.com/jump-dev/JuMPPaperBenchmarks and licensed under the MIT License.