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 solverarena.run import run_models
if __name__ == "__main__":
mps_files = [
"examples/mps_files/model_dataset100.mps",
]
solvers = {
"highs_default": {
"solver_name": "highs",
"presolve": "on",
"time_limit": 3600,
"solver": "ipm"
},
"highs_no_presolve": {
"solver_name": "highs",
"presolve": "off",
"time_limit": 1800,
"solver": "simplex"
}
}
results = run_models(mps_files, solvers)
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file solverarena-0.2.5.tar.gz.
File metadata
- Download URL: solverarena-0.2.5.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03dc49709b9dea97fe94ad62ba321d659de2e130d05ec30479c03498c573fe27
|
|
| MD5 |
b4547f7a5b5a198007e390477faba8f8
|
|
| BLAKE2b-256 |
5c32f2f03eb18fef63e53bf7d4dfa35333804ec9409ef8f89d15db07c2ad494a
|
File details
Details for the file solverarena-0.2.5-py3-none-any.whl.
File metadata
- Download URL: solverarena-0.2.5-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d99b55900d74757b91f53fe628550fa6f88f8f747b46faa930ed48928765637c
|
|
| MD5 |
7470d3674d452e5760638cc0d7578d51
|
|
| BLAKE2b-256 |
101a7e070d71a4601294bd861a9d1ea851b3ab231e7535c764dd0a32112aed3e
|