A library to run and compare optimization models
Project description
Solver Arena
Solver Arena is an open-source library designed to facilitate the performance comparison of different solvers in optimization problems. The library abstracts the implementation of solvers, allowing users to input a list of MPS files and choose the desired solvers with their respective parameters.
Installation
To install the library from PyPI, you can use pipenv
with one of the following commands:
-
Basic Installation (only the main library):
pipenv install solverarena
-
Installation with a Specific Solver:
If you want to install the library along with a specific solver, you can use:
pipenv install solverarena[highs] # To install with Highs pipenv install solverarena[gurobi] # To install with Gurobi pipenv install solverarena[scip] # To install with SCIP pipenv install solverarena[ortools] # To install with OR-Tools
-
Installation with All Solvers:
If you want to install the library along with all available solvers, use:
pipenv install solverarena[all_solvers]
Usage
To use the library, you can refer to the example folder, which contains a basic implementation. Here is an example of how to use arena_solver
:
from arenasolver.run import run_models
# Define the list of MPS files and solvers
mps_files = ['path/to/model1.mps', 'path/to/model2.mps']
solvers = ['solver1', 'solver2']
parameters = {
"solver1": {
"presolve": "on",
"pdlp_native_termination": True,
"solver": "pdlp",
},
}
# Run the models
results = run_models(mps_files, solvers, parameters)
print(results)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file solverarena-0.2.3.tar.gz
.
File metadata
- Download URL: solverarena-0.2.3.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 719c0e96ee04a996159ba358343bd33e4135a8b23b365fe5ec30f0560a53314e |
|
MD5 | de4ef3b304600110f1c5568439ca3d4c |
|
BLAKE2b-256 | 0c23e05ba9e311ce55ebc58ad565e851d2c344502c7f664ab0a2133f757492b3 |
File details
Details for the file solverarena-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: solverarena-0.2.3-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18bbb80e02fc4809ffcbaa912a0a0229b7418d3bdbe6ad711d5d64536c1695a4 |
|
MD5 | 4a3b01858ecb53ae030761b97d42960b |
|
BLAKE2b-256 | a36c6204c3c32718c3e87a82c98110a122184c2f06523f61c7b762baf496fc97 |