Skip to main content

passagemath: Convex polyhedra in arbitrary dimension, mixed integer linear optimization

Project description

About SageMath

“Creating a Viable Open Source Alternative to

Magma, Maple, Mathematica, and MATLAB”

Copyright (C) 2005-2024 The Sage Development Team

https://www.sagemath.org

SageMath fully supports all major Linux distributions, recent versions of macOS, and Windows (Windows Subsystem for Linux).

See https://doc.sagemath.org/html/en/installation/index.html for general installation instructions.

About this pip-installable source distribution

This pip-installable source distribution sagemath-polyhedra is a distribution of a part of the Sage Library. It provides a small subset of the modules of the Sage library (“sagelib”, sagemath-standard), sufficient for computations with convex polyhedra in arbitrary dimension (in exact rational arithmetic), and linear and mixed integer linear optimization (in floating point arithmetic).

What is included

Examples

A quick way to try it out interactively:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-polyhedra[test]" IPython

In [1]: from sage.all__sagemath_polyhedra import *

Available as extras, from other distributions

Additional features:

pip install “sagemath-polyhedra[graphs]”

Face lattices, combinatorial polyhedra, graph-theoretic constructions

pip install “sagemath-polyhedra[groups]”

Constructing symmetric polyhedra, computing automorphisms, lattice point counting modulo group actions

pip install “sagemath-polyhedra[toric]”

Toric Varieties

Other backends for polyhedral computations can be installed:

pip install “sagemath-polyhedra[normaliz]”

Normaliz, via PyNormaliz

pip install “sagemath-polyhedra[polymake]”

Polymake, via JuPyMake

sagemath-polyhedra also provides integration with other packages for additional functionality:

Optional backends for optimization:

pip install “sagemath-polyhedra[cbc]”

COIN/OR CBC Mixed Integer Linear Optimization solver, via sage_numerical_backends_coin

pip install “sagemath-polyhedra[cplex]”

CPLEX Mixed Integer Optimization solver (proprietary; requires licensed installation), via sage_numerical_backends_cplex

pip install “sagemath-polyhedra[cvxpy]”

CVXPy as middle-end for various backends

pip install “sagemath-polyhedra[gurobi]”

Gurobi Mixed Integer Optimization solver (proprietary; requires licensed installation), via sage_numerical_backends_gurobi

pip install “sagemath-polyhedra[scip]”

SCIP Mixed Integer Optimization solver, via PySCIPOpt

Development

$ git clone --origin passagemath https://github.com/passagemath/passagemath.git
$ cd passagemath
passagemath $ ./bootstrap
passagemath $ python3 -m venv polyhedra-venv
passagemath $ source polyhedra-venv/bin/activate
(polyhedra-venv) passagemath $ pip install -v -e pkgs/sagemath-polyhedra

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

passagemath_polyhedra-10.4.50.tar.gz (985.8 kB view details)

Uploaded Source

Built Distributions

passagemath_polyhedra-10.4.50-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.4 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

passagemath_polyhedra-10.4.50-cp312-cp312-macosx_14_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.50-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

passagemath_polyhedra-10.4.50-cp311-cp311-macosx_14_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.50-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.8 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

passagemath_polyhedra-10.4.50-cp310-cp310-macosx_14_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.50-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.8 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

passagemath_polyhedra-10.4.50-cp39-cp39-macosx_14_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

File details

Details for the file passagemath_polyhedra-10.4.50.tar.gz.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.50.tar.gz
Algorithm Hash digest
SHA256 9cff0c3bd9d64918266a581972862bef1dc8217e00ec4d037f9bd0b2c2301fdb
MD5 082d85b2a55b5233d11a05deb2c76c16
BLAKE2b-256 4cc98779a19898eb321e58cd3526b662fcc9695d016c45bc285f8b76a3af1ff3

See more details on using hashes here.

File details

Details for the file passagemath_polyhedra-10.4.50-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.50-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 328d60c43d52b93093e16ca3541b5ef1f4afd7f655ae2471e95bc23c2052874d
MD5 b705dbe6f941e8b4d08281c537590b75
BLAKE2b-256 a7a911d782dde94dc9eea68b888602d6268257f4710ab62ec395533df24c5a13

See more details on using hashes here.

File details

Details for the file passagemath_polyhedra-10.4.50-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.50-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 3b3e1063f7a423fc8f54aa5997b3723fbe527fea5d9ab2b6afd267c862e23a46
MD5 ecab5474200bbbf99d0b9a35145ad45f
BLAKE2b-256 2a0b1b22718578f0d583d8ae69962d4d60d95a161e58333ff8f90b0b68823769

See more details on using hashes here.

File details

Details for the file passagemath_polyhedra-10.4.50-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.50-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 be7b21a72c5e5925a5cdb836c3ee12d52e49dd2cc3bed06e064acede5a408302
MD5 1832def08d86ab6e37d7603b1ad7f37c
BLAKE2b-256 2db510d63ba811f81fe3d04f20a9b196d2208bd674bf67c073ff70135a12874a

See more details on using hashes here.

File details

Details for the file passagemath_polyhedra-10.4.50-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.50-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 13193576cc8fbce65fbe6188e43aba9e068c7ecaddd3e927f43e083549b65046
MD5 9c460a84d3b9bb07af4529fc34e7fa1d
BLAKE2b-256 9604109ce0934f80dffafe606e72a88ebe9649f0dc1382c0448b557c2a80b0b5

See more details on using hashes here.

File details

Details for the file passagemath_polyhedra-10.4.50-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.50-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4973618bc044bdc06b82c9b2ac03f3834b7c09b76fdc6bb561390092dd39ac27
MD5 a67af2264bd9f949408fbe497407c254
BLAKE2b-256 e25871e0d02fc2624a0d01bc4bc40505546969814af043a9c51089e92ac605d2

See more details on using hashes here.

File details

Details for the file passagemath_polyhedra-10.4.50-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.50-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 293c2ee9a570b3917f6bdfd2390d5350abda9ddc4007c96ca5499078b3dc0975
MD5 8a53d2551129366030ed56ba64691e47
BLAKE2b-256 450a2c5523d0cf8e3a8c8a4d0ee41dbe23e86b916a799237e10200ab48d70576

See more details on using hashes here.

File details

Details for the file passagemath_polyhedra-10.4.50-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.50-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0cf209741dde114a038a2c095aa3cca515592fc756a4854571369eec0f557f52
MD5 9516a34b977566c2542cc876ffab6415
BLAKE2b-256 eb405ec0f14c3aa21783b361403e96256d288c9c0d472d3598d91d001799c011

See more details on using hashes here.

File details

Details for the file passagemath_polyhedra-10.4.50-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.50-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a59e0f176738f443b96a7932c0a4d9dbaa66de3d24560649e005ba5b0bf8cd90
MD5 d80d84f37d2b7f5ef9e124a132e9eaa3
BLAKE2b-256 71f3d488f3765c690fa8d281266c0926beb5c0017cdef97a062fd6cce97c72d2

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