Skip to main content

Graphics for Understanding Mathematical Programming in Python

Project description

CuPPy

A collection of "naive" implementations of basic cutting plane algorithms in Python. The collection contains a generator for Gomory Mixed Integer cuts and one for generating the most violated split cut using the method of Saxena and Balas, as well as a generic generator for Fenchel-type cuts.

The idea is for these implementations to be as transparent as possible. I intend them mainly for educational use. They will most certainly not be effective in a real-world environment. Even on small examples, it is easy to run into numerical difficulties.

The underlying solvers are Clp and Cbc, which is called via the Python bindings of CyLP. Through CyLP, one can easily add these as cut generators within Cbc.

The cutting plane procedure can be visualized for 2D examples using the polyhedron2D class of GrUMPy.

(Some) documentation is available here:

https://tkralphs.github.io/CuPPy

Install with

pip install coinor.cuppy

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

coinor_cuppy-0.96.3.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

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

coinor_cuppy-0.96.3-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file coinor_cuppy-0.96.3.tar.gz.

File metadata

  • Download URL: coinor_cuppy-0.96.3.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for coinor_cuppy-0.96.3.tar.gz
Algorithm Hash digest
SHA256 6d78abce10c7e9da91c4c2cbdd4f5003da669ec32b0aeee05f33f5fd028ab3e8
MD5 54886f2d0043a3a8a8e55ebf5d26dbab
BLAKE2b-256 c072698fc99028a0f15369fe3fd2a932a7f0efaa140ed7e0e0ac4decac6abdea

See more details on using hashes here.

File details

Details for the file coinor_cuppy-0.96.3-py3-none-any.whl.

File metadata

  • Download URL: coinor_cuppy-0.96.3-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for coinor_cuppy-0.96.3-py3-none-any.whl
Algorithm Hash digest
SHA256 42cbb7173c7edd20a82236ae52aa6fe5a72f5ddbb4af9b5e42ebd3772125033b
MD5 fa99d114924aae015ec196a6f1c573ab
BLAKE2b-256 ca99750dd104377ff36eb40fa71d6ba4e0f64f9772359e7558b0db8a46d7ae0f

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