Skip to main content

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:

  1. Basic Installation (only the main library):

    pipenv install solverarena
    
  2. 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
    
  3. 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 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)

Metadata

Release files for solverarena 0.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solverarena 0.2.7
File Size Uploaded
solverarena-0.2.7.tar.gz 14.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for solverarena 0.2.7
File Interpreter ABI Platform
solverarena-0.2.7-py3-none-any.whl Python 3 none any Details

Total release size: 32.2 kB

Release files / solverarena-0.2.7.tar.gz

Download URL solverarena-0.2.7.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8e2ffc633bcf34cfdb783eec58096e46e769701f847a62bedce48fd4ddfd6b5c
BLAKE2b-256 checksum
How to use checksums
b19df3287fb89ea6acf22a7d684b2f05322766ea4350c1878f3a18e000161c85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release files / solverarena-0.2.7-py3-none-any.whl

Download URL solverarena-0.2.7-py3-none-any.whl
Size 18.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2af8af5bd31e8eebfc80aac4d8e121477ac6ba0799cefc2a1717db4319e31b4
BLAKE2b-256 checksum
How to use checksums
e3fa91b0446126fd8d0132eb6879ba95ec97f655c304d7d1c5aca4637322615c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.2.7 This release

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page