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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.40-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.40-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.40-cp311-cp311-macosx_14_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.40-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.40-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.40-cp310-cp310-macosx_14_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.40-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.40-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.40-cp39-cp39-macosx_14_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.40-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.40.tar.gz.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.40.tar.gz
Algorithm Hash digest
SHA256 e89476d5cbd1d59190d2e470d063aaa54fc529a14fb69389b2a903727466dd5f
MD5 ec88debe0f84f48576e39252ebfd232e
BLAKE2b-256 29b0092276202273d46ef12018854944210f70ef0f835a3f1aa13160fe16e0e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.40-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 096b409ff8b74ae510bf136f7d202ea2cfc4d8017a3a62a20410859bc5d26267
MD5 d62ff614dd1f821d390870d5b8c3e045
BLAKE2b-256 6ce57b7861706471fb6cce9cad294f6a64ede004521b5efa99eb537dd7d057b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.40-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 32572dc3cb945f94f909f8d8550977d0043400183c682c8dae3d321027eb9b78
MD5 953c15eb28d361cf28a92bda84b9fc57
BLAKE2b-256 4060c7d20bec26100fc92e2a044ca45d3fcfe73acf0e19cc17aff9c8294e13fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.40-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 78991bfe21b0106a057d8278bb20da0b29ae3ad1fd05f8511135551f8efd89c2
MD5 2cf836b144e2abfbf8d47c4c89136f87
BLAKE2b-256 d6cf8de78bb66dccccb40988585b2404fbfdc37acfd0a0bbc30cefa44b894bed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.40-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5280b76fa5e24122f4f1a28fa1936dd7cf6f8754a2e1570fcc9df8fbb22471f7
MD5 b0443669994bf4d450a63096ab1c9ea2
BLAKE2b-256 602d2e57bb7353e1f06dae55f4b9eb4cddfa05dddf7e447622c22cc4f9c49aaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.40-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1861f62f912b93f3a4ff3c13df36b37a1ad8a58f78be35c106de3d12756c6841
MD5 24df970616800d2c0e46edbf940be8f1
BLAKE2b-256 9da7b1f458206a948461bc8a64fd36b2846941680b56561507aa1d11bbf953ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.40-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4f2a9e9aa8b9de6dc3c65a15f287081db4fba77656eb74cdaaceed7a758ff972
MD5 1a69117fe92db723098f3d1993198a06
BLAKE2b-256 1117e41f04379ce5e548e1b06662e3830ee59c093e1da91c8a1e37fed9b52b29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.40-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2b1e7b2d7376191b4436788751062549080bf8e01dca68c41d74473887cafff4
MD5 cc2b3e09302e636c8a2480054586f8f1
BLAKE2b-256 eeaf5019d1c3c71dc09645abde402dd4ed6ba88a98b924a593c8cc57ea87bb70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.40-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f7e17ab9ed1e6742b56e36425a016a3531112a7dd53e46982502f695d75c230e
MD5 a5019745fb87ffa7b6837ae10bdfce8b
BLAKE2b-256 2ae6b5101461773fbd70420454883b871844a8b368bd4756cd01e4a9cc472a2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.40-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a86ab45c49e70d347e4730536f56d20ad6cd43d244116580723e27d1b30afe26
MD5 9aaabd5462fbdd75f35e282dedd2bc05
BLAKE2b-256 58c0afcb375ba3a0c08f2df5e53958a959c2bb753d107fcf047a8a506c8f01d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.40-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 95883eef0e0ac523372e7e78eec29d9e46568035999914a617359778b3e44529
MD5 343155f6656085a34db85925ae882aea
BLAKE2b-256 60190d6efbdc7bd110aa047a42335deb646a312f43c9c93e492d2911b78c5c44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.40-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b5164e681d9efa2bf0bd80a18a61add7b4b8ff766e88cb99d26efdf9eea0eff0
MD5 446a8d07ba6a2fdbc95e959321f57960
BLAKE2b-256 8e3f3b1faebca77cdccb1c85b755517f35ddff66d8c85fc9edb906124fe7670a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.40-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 db7b74f39960c67130139098cb53e019819b3d78d891ff652851b0aabe634916
MD5 160476274ce1c9b2a5734f26a672856f
BLAKE2b-256 7d43942ff265de0ed13817b7fd6c44c2c9b58870ea5137784df8fa4979987cfd

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