Skip to main content

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:

  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)

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

solverarena-0.2.7.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solverarena-0.2.7-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file solverarena-0.2.7.tar.gz.

File metadata

  • Download URL: solverarena-0.2.7.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for solverarena-0.2.7.tar.gz
Algorithm Hash digest
SHA256 8e2ffc633bcf34cfdb783eec58096e46e769701f847a62bedce48fd4ddfd6b5c
MD5 b1f16ca8a4a962cc6402453bd1260768
BLAKE2b-256 b19df3287fb89ea6acf22a7d684b2f05322766ea4350c1878f3a18e000161c85

See more details on using hashes here.

File details

Details for the file solverarena-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: solverarena-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for solverarena-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e2af8af5bd31e8eebfc80aac4d8e121477ac6ba0799cefc2a1717db4319e31b4
MD5 fe4353ead5cf234880db9b971cc39325
BLAKE2b-256 e3fa91b0446126fd8d0132eb6879ba95ec97f655c304d7d1c5aca4637322615c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page