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.41.tar.gz (1.0 MB view details)

Uploaded Source

Built Distributions

passagemath_polyhedra-10.4.41-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.41-cp312-cp312-macosx_14_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.41-cp312-cp312-macosx_13_0_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

passagemath_polyhedra-10.4.41-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.6 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.41-cp311-cp311-macosx_13_0_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

passagemath_polyhedra-10.4.41-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.9 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.41-cp310-cp310-macosx_13_0_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

passagemath_polyhedra-10.4.41-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.9 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.41-cp39-cp39-macosx_13_0_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.9 macOS 13.0+ x86-64

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.41.tar.gz
Algorithm Hash digest
SHA256 bdaf3cf22125b43d2318f90e303a38691f2eca1cfa03c8024848200f0254d623
MD5 c9a82b06efc42da52bda9673b4a9eb8d
BLAKE2b-256 2abe679626c367d47326a55a451b034550701cb97c233b4268cb7a7437a8ebab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.41-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9adefcea9a6709a780f3afbbdf6427e7beb0178d664f12529ffb49cdae59a255
MD5 42c65c1ca24821ec2eabdc189cc0f40d
BLAKE2b-256 ddd7cc516c0fce3c8f4f84b467ee325bea8ae3def7a40f251bb5da945e8d5d7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.41-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 54b01fce2ac147b54c6290bf9c0cf73c94ef9c577e7916e7ffb93d71110ab219
MD5 07d86f2687272c60702f2cd294ffd63a
BLAKE2b-256 5232484a55fc885e366e65ee262f3058f55e3a9f75a4774adacb82955e08e38a

See more details on using hashes here.

File details

Details for the file passagemath_polyhedra-10.4.41-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.41-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 78ff2cb09e3da7d14507e9c2cd1f4b9441f2219fcd1f57f69a6fff92b1ea145a
MD5 0598f40dd0c22c00de83349d1dd32641
BLAKE2b-256 8dedf210076154c6c8fa7423b2a1c8e70efdbd572d92446bf38096e307c07160

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.41-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dfd4f3acda506fc90af7cfbda8b2ff1f7aa6f6c2c3f732ad1af86dd954ee8874
MD5 1b992c2511967935dde53ef1fceefd2b
BLAKE2b-256 14c5a7c12bbff16bb0cfb0233eb36ee48edbef3b5cfdc704ddfad743e4caa4f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.41-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b056187c9384e307ac5455de96f1076bb1df08e838ed7cb68f65fa6f7a57fb71
MD5 d786bdd1a29d118610453f15e060b06c
BLAKE2b-256 ea97bb5bf1f9bd69e4c6e8149759785c340223e4dcd069ca2c9fb73cb80d3218

See more details on using hashes here.

File details

Details for the file passagemath_polyhedra-10.4.41-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.41-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 c1ed4bede9c25b0c3354f2209647ae5d931b1aeb89f5c6b104bcd7bada58375c
MD5 9343c505fafbef114ab871d054376738
BLAKE2b-256 24e17d297da23b30493fe0587d40a0a079eae5cacd6e398dfc7c8feb15d68631

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.41-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cfdc3e2a898dea012cff698d1ef4448246d312bd165f433ed0d5d69890da2499
MD5 08e1ef83de0abbc1adefc10f9c9521fd
BLAKE2b-256 42a458af30653e4de9ec0cc821ce5480ed44d719d32a9de54bd0ca6cd6b02ad0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.41-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 7c9fb3d4dfb308767d484968bc5dd588ffab8e3f0ccb833a58ef7106e33e365d
MD5 4cffd9794484a1ddaa645da77de260ee
BLAKE2b-256 7172e15c3a1bf295f757fa0c6858954ea25db57bb5383987608afbaf39fc649c

See more details on using hashes here.

File details

Details for the file passagemath_polyhedra-10.4.41-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.41-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 383e5cd979eef27628a42d007d9732030f1fc54361ab8f159afe812d821cdb02
MD5 2c0bad22ab14b6d1e632ac5e1023aedd
BLAKE2b-256 0a27930bde7537dfaacae94bf2000a6bb4ea3eed2be2ec49b8fda575385494eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.41-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 655399a2f7ba6e544f39f619965881dbe50e9cb4492f3fa34eca7ab393241475
MD5 b5d954eda81d874d08d55688c5ab0fd7
BLAKE2b-256 80fe8814da0021140e5619e5cf4268c8932f8766dec73954d056a9d2d5156c89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.41-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 2a634dada8a596112c39b6e8ebc282215ce9a915912d644128342cf84ac905b0
MD5 3c79fa4cdf4e2b0dd15c65d33ad73bc8
BLAKE2b-256 a3bf7669f5b8ef6b206acc2ef80a63643379d467d87b157e41317d15d4568909

See more details on using hashes here.

File details

Details for the file passagemath_polyhedra-10.4.41-cp39-cp39-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.41-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 f8aad47e0b84c6c402f06c19299abe4f4e3c3450c87589d0e2023995e37cc2c2
MD5 e4e984f41720b36734532e54db3a3bf7
BLAKE2b-256 bb3991dcefd3df5dc71e13b6e4bc566fef7de60694c3318b8ff571a9a15210d8

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