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.5.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.5-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

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

Hashes for solverarena-0.2.5.tar.gz
Algorithm Hash digest
SHA256 03dc49709b9dea97fe94ad62ba321d659de2e130d05ec30479c03498c573fe27
MD5 b4547f7a5b5a198007e390477faba8f8
BLAKE2b-256 5c32f2f03eb18fef63e53bf7d4dfa35333804ec9409ef8f89d15db07c2ad494a

See more details on using hashes here.

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

Hashes for solverarena-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d99b55900d74757b91f53fe628550fa6f88f8f747b46faa930ed48928765637c
MD5 7470d3674d452e5760638cc0d7578d51
BLAKE2b-256 101a7e070d71a4601294bd861a9d1ea851b3ab231e7535c764dd0a32112aed3e

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