Skip to main content

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

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 arenasolver
    
  2. Installation with a Specific Solver:

    If you want to install the library along with a specific solver, you can use:

    pipenv install arenasolver[highs]      # To install with Highs
    pipenv install arenasolver[gurobi]     # To install with Gurobi
    pipenv install arenasolver[scip]       # To install with SCIP
    pipenv install arenasolver[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 arenasolver[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 arenasolver.run 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)

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.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

solverarena-0.2.1-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: solverarena-0.2.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for solverarena-0.2.1.tar.gz
Algorithm Hash digest
SHA256 05b7e02a786fc874acefba43277f8e1bcf67b95c67e318e145cd92973df6c558
MD5 4e4aafb8ecc9a4dcea7c5f99aaa5ac6e
BLAKE2b-256 778d0e4b6f8f38a7a7a02c29bec2598523af1433403b7db815b383daa2b2990e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: solverarena-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for solverarena-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ea29d8c5c8001a5f04b326ac58a3861e84d5ed3850ad462a42bbd1f4aa7f3f0
MD5 cd9a29e289730c5ed5b6c6244fb36ea8
BLAKE2b-256 4cacfc7965bc9ac59f7f0192380afb44df097f4096475ed883b50cfc84bcbc28

See more details on using hashes here.

Supported by

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