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.47.tar.gz (985.8 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.47-cp312-cp312-macosx_13_0_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

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

Uploaded CPython 3.11 macOS 14.0+ ARM64

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

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.47-cp310-cp310-macosx_13_0_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

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

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_polyhedra-10.4.47-cp39-cp39-macosx_13_0_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.9 macOS 13.0+ x86-64

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.47.tar.gz
Algorithm Hash digest
SHA256 b69fb490861465ea065df9f74aabfef39c6f3b83e820738a2144dbc213ec3efc
MD5 1d219d3f86a30d54db2be5d583aad4c1
BLAKE2b-256 9fae6b7aa0ab30074fb2606ed50dd139f4207f97f02b9ba53508e57d30d034a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.47-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8696725db2968eac236ead705d14e7e933fd5f3bfa1f1423176b71349a93da90
MD5 0429e3cf1a7713f8efa534959d6d2046
BLAKE2b-256 98d26aa900c75fa08e28b2abf78fafb112f550427bf9ab14af91ebe34e8c97a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.47-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 00384cbc5f29a4cdcb80230b36e19768ca2a1786da8e1d92a65956073e4be8cd
MD5 61d46c45a35371ed9524362827ba5a96
BLAKE2b-256 df0db6ded3f14a21dd6cad5bdaea841e0b031372047de87575c151dc237ddb75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.47-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a7d714e5ecffe842e537f3aaa2048228d0ec847f57c9e822ebe614df14f3b10b
MD5 5591aabd0b5f1c89f57a4e900de1c139
BLAKE2b-256 3b387855cfa4f30c95a13cc2201949ae36225503495df2ea75f93c2bd3477861

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.47-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 287bba6e3d5bf2a46d1eb49f8ae9df515de985987f88efe04158f818f8b4cb19
MD5 3c1a22cdb7ace83365a10dce9ec4cabc
BLAKE2b-256 9e0ecbd70b8cdc442f3656c2dec01b45c016db6e5b0a955be43aa0528d19fae3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.47-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 58473dc901f1def7d7876eaa9ef52ee325587023ec7076ccbab4a946b891037a
MD5 7c1062d1524327c4356af0a5d9f84e70
BLAKE2b-256 7c19404c72affa3d8ad483b10fa82612c6577544dbe45422e567f04ab0cbe62e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.47-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 74af2c45b42e93a0fde62ad682f4d5f17f7d3cc8900aa3afa5dacd2153d8af66
MD5 c70bea698f2e00e872af3fc4907c3f24
BLAKE2b-256 69f585c153f541829f1ce02e3baeaa65ca798c1a0ea1a765269bca60b9919d16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.47-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0cb10350f65a51d0c4ade82aa763e62b1d4d29382c0b7b0ec4de19d9a58c0a88
MD5 22bec81ad918060fe1ef9c4c88018e81
BLAKE2b-256 bf623f34670b8010e31b736e97e65cdbb811b5f7b0cc6ce67537608c1c23ca42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.47-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1405996a71152e8fe61489fc16b4e1532133cfcd3058db56d4130f801ffb17ed
MD5 b5122691596d472fb68483e4622536d4
BLAKE2b-256 7275d421d38a543413bf17d30fe6e46de91ae65fe930b7e38eb88d4952345a09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.47-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0167a054756af742d231417912c62e2a0580a9dcfdb60c06faf34365d16f81e8
MD5 2fbecc6f691b3017fecdb76de8610345
BLAKE2b-256 dcff8f514785398ea82a115cfa27213ea66cd4068ff6823104c6c47abe970a7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.47-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a6d06111e236ab40bdcc464762692be9cfa0d8deb0bacddc3153f2b9a0c19a3d
MD5 a1cdfbec56dbb882c7de282e8325578f
BLAKE2b-256 03590fe598bda833023aa6ed6492e2c93affdb04e56371c3e462ca2e52eaf281

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.47-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 63578c79ef3efbd091436ebcd072c69382ec6ff251824b986b46f21d20687841
MD5 13f3ca2a86290c3fa788debb971fc265
BLAKE2b-256 3f469d55d45d9e164c3ee6155ea99c328d687f8ffc19d3f4337e1f81b1e5c910

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_polyhedra-10.4.47-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 84cc1a530414011c385a3340a787b2d565766ae5ca3524f835d486a9138434b1
MD5 1c7c4cfe50d8a4d362482e39e037d8e9
BLAKE2b-256 53a6c2a0e4bb27a835fd75fe6695a1c4ab15ebedbeb72930dc8fca4c1200769b

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