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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

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

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.44-cp311-cp311-macosx_13_0_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

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

Uploaded CPython 3.10 macOS 14.0+ ARM64

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

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.44-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.44.tar.gz.

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.44.tar.gz
Algorithm Hash digest
SHA256 c349376125bd94629a8a9481c3871c9e809ada256c2d1a3fc44c46169337e341
MD5 1ab244d87bec0f594f3cecb11056dbc0
BLAKE2b-256 61acc6b8e6b9383fc03f411c253da104b2cec6627fe64f546adcd562b92dad61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.44-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b6c511a7689224a6242d525d75bd6e65f63ce903415e425b9fa24dc3b72a7e5
MD5 f0d15b6a9f8dc5b468cbd8c303d20d7b
BLAKE2b-256 c25bb396fe8ecfe4677d0e6350cd3fbaec352fafad2e5671b5156ed9297ff53b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.44-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4920e9826cd68080ee6aace71f8e46725ef6fa60038b93c81e7e22f974542a30
MD5 fde4db0d6f63b61b952f007e67cf824d
BLAKE2b-256 b8c4df3ef17b32bf3473f0a8a5fa7058a549c60579cf4336a5229c438b228250

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.44-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 698d06a4a838db7c2c978f98638ae7f6c97919d7615080da3afb04ee17a07c60
MD5 3abd129a83e372f874d63c2007fb618e
BLAKE2b-256 1c5e80161d6c99e04d01c620c16b35620c29a8afd8cdc9ae9c8500924822d188

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.44-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0ec081b4ed5354116c0371d0815e00d10c2f9b2e09f2ab5c944bec1d910d7b02
MD5 4c6e14e7951eb112ec374583e996d837
BLAKE2b-256 344aeda554e163b5bb52c3b12b818eb2120ff495acba423f9a7054b6c56a70b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.44-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 8519c8efb83a4c365f540028e12b3debf90ab3862a643932cb2fe291aa612810
MD5 92e96575ed261501559af7d518dfcb34
BLAKE2b-256 6eb2a0d3d4d3e71a4a711dc82f8ad166d59a145f69be5a381a39ac70a8a275b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.44-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ed5474e566d9c14cbe45d4a6881381dbc39e748a2e4d9ecc4b5358310a028902
MD5 7ccf972e0c65ce5f79b72e76d84dab28
BLAKE2b-256 f22817d79c8dc68a7c3ffab3f2db8dc752b110ae818b10cae3abd8fbf611ab4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.44-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9358a982c1d5a9201d92db4ce316544a1cd312a59de4c35d0262dd6e8637d109
MD5 f7232422ee6087b210d637c4f5dae789
BLAKE2b-256 23e1ba1542fe422dc716403b27c4058cb7ef999d14c7f1a96de9f5e3289554de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.44-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 385d29dd70b14d42ff554f5a6609b310b49977af8880faca580d38bb57e31557
MD5 b84e48d3294f183d0d1e4ea3cac1a541
BLAKE2b-256 c5e7143bbdcb1b9e4e14585935d29d41e513f0ad94d059d464c7ad18f7b3cabe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.44-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 1f6b5b8a26961c960f314fead06cd189782ac191619d94214b46157d2d710242
MD5 bad4a41cca3e717e2ca31c7a4eda1795
BLAKE2b-256 9c8f626cf1ea41c155b6e4824539d3cbc14efd238bfd528f84522f741fd72005

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.44-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 951f1500868349d5da8e566f8d66157b7ea829e734aa32f7d4b692ad5118a702
MD5 895f1184544721480e2312e28cfe2b69
BLAKE2b-256 fbeb9d9ba4b9965bd96d8ef0cb5f4669ec7dbbbc9155259e713be428713f80dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.44-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 178ee6defe117d570dd2250138f5f73423796bf32cf234424bcee3ed1b662580
MD5 92f75903fbf556a0c0386a5493e03a5f
BLAKE2b-256 b05330752ced2a15ecd9cd32827c805c3bf089ea29f8fd4f3ae86f3879ceffee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.44-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 24306590ce9e099dc2eb1a9bdd1228f4c6771f993ac75a03304d93afe3327635
MD5 3f095d21cc2f40f09397f1d6a702b69c
BLAKE2b-256 368fa001c2da75587b2c55259b317014abd56b7017901267e455654fb4fe14e3

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