Skip to main content

ilpy

License Anaconda PyPI CI codecov

Unified python wrappers for popular ILP solvers

ilpy is a Python library that provides unified wrappers for popular Integer Linear Programming (ILP) solvers such as Gurobi and SCIP. It offers a consistent API that abstracts away the differences between solver implementations.

With ilpy, you can:

  • Define linear and quadratic optimization problems using a simple, intuitive syntax
  • Express constraints using natural Python expressions
  • Switch between different solver backends (currently Gurobi and SCIP)
  • Monitor solver progress through callback events
  • Support for continuous, binary, and integer variables

Installation

Install from pip with:

pip install ilpy

Note that ilpy requires a solver backend: either pyscipopt (for SCIP) or gurobipy (for Gurobi).

... with SCIP

Currently, ilpy ships by default with support for the SCIP optimization suite, via pyscipopt, but you may also declare it explicitly:

pip install "ilpy[scip]"

... with Gurobi

If you want to use Gurobi (which requires a license), you can bring in the gurobipy dependency with:

pip install "ilpy[gurobi]"

... with cuOpt

cuOpt is NVIDIA's GPU-accelerated optimization engine (Linux only, requires an NVIDIA GPU). Install the package that matches your CUDA version:

pip install ilpy cuopt-cu12  # CUDA 12
pip install ilpy cuopt-cu13  # CUDA 13

On conda

If you prefer to use conda:

...with SCIP

conda install -c conda-forge ilpy pyscipopt

...with Gurobi

conda install -c conda-forge -c gurobi ilpy gurobi

Local development

pip install -e .[dev]
pytest

Metadata

Release files for ilpy 0.6.1

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

Source distribution (sdist)

Source distribution for ilpy 0.6.1
File Size Uploaded Provenance Actions
ilpy-0.6.1.tar.gz 35.2 kB Without provenance Details for ilpy-0.6.1.tar.gz

Built distribution (wheel)

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

Total release size: 68.0 kB

Release files / ilpy-0.6.1.tar.gz

Download URL ilpy-0.6.1.tar.gz
Size 35.2 kB
Tags Source
SHA-256 checksum
How to use checksums
aabdbaad8e874086ccfbf15d34267651c38f99c6de5ac44f64c02351f89ff673
BLAKE2b-256 checksum
How to use checksums
fac37e03af39d39efeb3094d733e5101a5c8b3129be43e8825159a498d34555c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / ilpy-0.6.1-py3-none-any.whl

Download URL ilpy-0.6.1-py3-none-any.whl
Size 32.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8291392cbcae0b053ea7f1566b0e60b970ee9216caa5c81740a3f630b8ccd700
BLAKE2b-256 checksum
How to use checksums
30d8364ed77afbdcb869c11a3ff2e6e8806640a55edecd656b64fac5501054f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for ilpy 0.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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