Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/metab0t/pyoptinterface_benchmark
https://github.com/metab0t/pyoptinterface_benchmark
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/metab0t/pyoptinterface_benchmark
- Owner: metab0t
- Created: 2024-02-14T16:21:49.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-05-13T16:29:08.000Z (8 months ago)
- Last Synced: 2024-05-14T09:28:56.611Z (8 months ago)
- Language: Python
- Size: 42 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Preparation
- Install Julia
```
julia> ] activate .
julia> instantiate
```
- Install Python and dependencies
```
pip install -r requirements.txt
```## Run benchmark experiments
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
```## Show results
The result is stored in `benchmarks.csv` file and can be shown by running
```
$ julia --project=. produce_table.jl
```## Reference
The code for benchmark is adapted from https://github.com/jump-dev/JuMPPaperBenchmarks