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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

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

Uploaded CPython 3.11 macOS 14.0+ ARM64

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

Uploaded CPython 3.10 macOS 14.0+ ARM64

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

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.39-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.39.tar.gz.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.39.tar.gz
Algorithm Hash digest
SHA256 62197a82447a68ec2f8a5786f823371250a853113403fd66f3f433c209761d22
MD5 41fc45e38e3d32ba80841186e66a8519
BLAKE2b-256 ca9be54547ffc106a3807f9af22f615a71c7328646b85bae3203b174ab41f68b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.39-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 46e8fed9839ac5dfe17299aa78919f1926b5ea81eaa93c39af82c1ab955a328c
MD5 9d35d1e110d7fedb184293ec5d3c627c
BLAKE2b-256 c9977167dad80f8333c68b92d8ee43c92917c14db3e0afcd08b9c966befc9df3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.39-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6b48443c594949fc3a64cb6a22b0bb61eb5ca0caab697c40a764a339263128e9
MD5 0e4bf987efebe46ff13cfda60375606e
BLAKE2b-256 b5135aa5d05204790f98742433996038658bf1f340339e522af78a6a416a167d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.39-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 dddb2541858ef11e0429b8fac1364d64b8adaff48f5a7a2e6191922adc40064a
MD5 2368daa7185b2b601702fdbfaf7b1d81
BLAKE2b-256 c18d3d44cdb7a906533f9592a321d139bc5dbd407f47ba0e1de5925249959a4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.39-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a54f64fcff86bc63903d66641231a5e9bcc3706eac715c449d075179287aee85
MD5 0a45c75353402582b56564435d47f8e5
BLAKE2b-256 ac4a0b9ce720e4d0bad6f885737dc0ddd5c5b65643b2f537d041e3b7df26a66b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.39-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4015e9072b7a2d3c6b474d84a9c10be4970babd1c901b21a0ac9c8d267d1756e
MD5 1d8837c13ebc654c549c4b73cbb544f6
BLAKE2b-256 d50dd0ab873521380097c3a82f607f055c18825815451a8a669e9db9b4d4ecc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.39-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 36274418e01d7ee30c62ab6a2d4aaa2506632186368625304c60467539cfed2c
MD5 2af0a6904e107e1aa9b1057e69c0e15b
BLAKE2b-256 a68efbc4f7113f4b765f706c75ba8cda4ad0b8d9f2056106949e98dedbfce570

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.39-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 73c18475cbe3a5830e0cd668f3e1cdff8e88acc0d51ed8981528cb16781f4d27
MD5 e9b8042c415ba0fcf256e1d9b9d52fdc
BLAKE2b-256 ab71cede45fae0215816537e1e0dc1dba63ccda8532b92d626d10d062e2760d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.39-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 2da6eb17c6e4875b1c2ff0feb27e8143ed6fb4dbaae3940bc0f7c129bf979994
MD5 8a4ba71e142580d681e5fc9a978f9785
BLAKE2b-256 1e9085e9db024aec300ff4fecf3043ec1f777acfeb070c8faf592ac9bc62d293

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.39-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 710a24f44eb6a88f3cccd60a917c5b5650db4f5147f18506ef0269a02bae8a27
MD5 7eac055e4e2ca0f46d90cc108cc77533
BLAKE2b-256 72a5209c1bb1acc3136ed9297e28313e8ca6c14619c9eb2311ea5af467ff7ffd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.39-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5c1ef9bb7ac6a8b03eaec3b0af214a328e97cf15e776e2e25ea1a2f7ec008154
MD5 7380350b89f9f210c6a2d3bf7008da2b
BLAKE2b-256 d5ab672c9effc8024723576c0da9897b5c53a51a87beea5f1b3d47efc684af62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.39-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 235a89361b97c49f98c1c2b90aacaef8213fc0ff63e2cc2897efad5a6316e06a
MD5 b36c4418c2db99c1cc81b5391cf4624b
BLAKE2b-256 c1d9f241904e4320fdfa0eee7c9f2878dd7bc646f7b2227c323f0492c2167f54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.39-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 51aeca4b0cf81243796acbab4ec19d11fda7338f3d7fcaba3736b820030d0c07
MD5 baffc3d6dd3002f7fc7158a12d948172
BLAKE2b-256 da8c46f8f3a717934ad7fed36107449a02ad2fe983cd6fecb9d4f87344d18f86

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