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.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

solverarena-0.2.6.tar.gz (13.6 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.6-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: solverarena-0.2.6.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

Hashes for solverarena-0.2.6.tar.gz
Algorithm Hash digest
SHA256 38cdfcb4ac2260403ad0c73c0efe648ee0c94644b50125215165b7923587183a
MD5 9c33e1a46b94f6daa9c5dc0dd45b88fc
BLAKE2b-256 35ecb251058e3a61d43be4625d3da5d6379ba2fa80aa984a4572224e8d0fb6ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: solverarena-0.2.6-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

Hashes for solverarena-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e715324e57367e50348d823afc8a6b317924b3625bd7312a17e969539deabc5d
MD5 9e32c3e8177af7bf1579fa6fbbf37a3a
BLAKE2b-256 3af6d4ba35318691aab25d1c8280c11fcd620e9971513bb93a29582f42f95734

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