A library to run and compare optimization models
Project description
Arena Solver
Arena Solver 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
For now, the library is available on GitHub. To install it, use the following command:
pipenv install git+https://github.com/pataq21/SolverArena.git
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 arena_solver 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)
Main Functions
run_models: Executes multiple solvers on MPS files and save performance results as csv.
Contributions
Contributions are welcome. If you would like to contribute, please open an issue or a pull request on the GitHub repository.
License
This library is licensed under the MIT License.
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.1.tar.gz
.
File metadata
- Download URL: solverarena-0.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcce07520a0a2d4caa5a82e7525de15da5074b37c57ab9ecd38c18d15569c063 |
|
MD5 | 6c7129138c7072a2eba24ee525a6f03f |
|
BLAKE2b-256 | 966a4b4d9bf77184b8b1a338ddcbbb9b2c5804f6b291c3c9daab3d7535b9e806 |
File details
Details for the file solverarena-0.1-py3-none-any.whl
.
File metadata
- Download URL: solverarena-0.1-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bca169450904fa8e644e007f91788fdcbb4f45b6920d3bc33c18d082d9d5384a |
|
MD5 | 07d3da47f0b34dc86d85fc31dc23bcac |
|
BLAKE2b-256 | d3929c4a69efdf0cbd0edacf9f2b9d83cd6d6d080cf8ffc060b490d839bb5dc9 |