Skip to main content

passagemath: Reverse search for vertex enumeration and convex hulls with lrslib

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 distribution package

This pip-installable distribution passagemath-lrslib provides an interface to lrslib by David Avis, an implementation of the reverse search algorithm for vertex enumeration and convex hull problems.

What is included

  • Binary wheels on PyPI contain prebuilt copies of lrslib executables.

Examples

Using lrslib programs on the command line:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-lrslib" sage -sh -c lrs
*lrs:lrslib v.7.1 2021.6.2(64bit,lrslong.h,hybrid arithmetic)

Finding the installation location of an lrslib program:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-lrslib[test]" ipython

In [1]: from sage.features.lrs import LrsNash

In [2]: LrsNash().absolute_filename()
Out[2]: '/Users/mkoeppe/.local/pipx/.cache/db3f5a0e2996f81/lib/python3.11/site-packages/sage_wheels/bin/lrsnash'

Use with sage.game_theory:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-lrslib[test]" ipython

In [1]: from sage.all__sagemath_lrslib import *

In [2]: A = matrix([[1, -1], [-1, 1]]); B = matrix([[-1, 1], [1, -1]])

In [3]: matching_pennies = NormalFormGame([A, B])

In [4]: matching_pennies.obtain_nash(algorithm='lrs')
Out[4]: [[(1/2, 1/2), (1/2, 1/2)]]

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_lrslib-10.4.64.tar.gz (3.8 kB view details)

Uploaded Source

Built Distributions

passagemath_lrslib-10.4.64-cp312-cp312-musllinux_1_2_x86_64.whl (30.2 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

passagemath_lrslib-10.4.64-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (631.1 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

passagemath_lrslib-10.4.64-cp312-cp312-macosx_14_0_arm64.whl (610.5 kB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_lrslib-10.4.64-cp312-cp312-macosx_13_0_x86_64.whl (693.9 kB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

passagemath_lrslib-10.4.64-cp311-cp311-musllinux_1_2_x86_64.whl (30.2 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

passagemath_lrslib-10.4.64-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (630.9 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

passagemath_lrslib-10.4.64-cp311-cp311-macosx_14_0_arm64.whl (610.5 kB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_lrslib-10.4.64-cp311-cp311-macosx_13_0_x86_64.whl (693.9 kB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

passagemath_lrslib-10.4.64-cp310-cp310-musllinux_1_2_x86_64.whl (29.4 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

passagemath_lrslib-10.4.64-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (630.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

passagemath_lrslib-10.4.64-cp310-cp310-macosx_14_0_arm64.whl (610.6 kB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_lrslib-10.4.64-cp310-cp310-macosx_13_0_x86_64.whl (694.1 kB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

passagemath_lrslib-10.4.64-cp39-cp39-musllinux_1_2_x86_64.whl (29.1 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.2+ x86-64

passagemath_lrslib-10.4.64-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (629.8 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

passagemath_lrslib-10.4.64-cp39-cp39-macosx_14_0_arm64.whl (610.6 kB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_lrslib-10.4.64-cp39-cp39-macosx_13_0_x86_64.whl (694.1 kB view details)

Uploaded CPython 3.9 macOS 13.0+ x86-64

File details

Details for the file passagemath_lrslib-10.4.64.tar.gz.

File metadata

  • Download URL: passagemath_lrslib-10.4.64.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for passagemath_lrslib-10.4.64.tar.gz
Algorithm Hash digest
SHA256 5a0c67eb720e05c948ca366ffa288a9c76857ce66818d0f4ebbf3894d36017d3
MD5 edb49f39585aacd29b1bba4d0449f2f7
BLAKE2b-256 85d12f59dd8c6a091440f3ba6b8d30500ef3722de99f55ab8b1df71939e6fa7a

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8e38e184a236e795194f9bda54bf59410ffa4b21a3671b8d030dc82d13324b5d
MD5 94ca60eb44fe5065c9806e5bb66e687e
BLAKE2b-256 bc8bb2a6d3419dee495cce422e06c464c8f71da1f10331f90565055a7766ece4

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 696a254ce72d0c8bf11618f76a2621e9d9492a77e571b7e5a287315dc5f5d43a
MD5 b6a81a43fa9cc936b866d46165582819
BLAKE2b-256 ad1ec1bca7432e7258c27840548b3d2e3bd82e9a667b0450089188504c660d97

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1e08bc21f8ba5374506a8b6ef5d3f25b9247b18701e6866967614cab7eecad14
MD5 b3e83964d8d993f5048085e431ee9caa
BLAKE2b-256 ff25aa9c8ec2dce41a75ba2ba52e94edd15d297ce14b0e681746121c24530fd7

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 1e12c433c16a920e46ee0c6aeab34dd86ef377ad2ea3f53f7ffc53d24313cb57
MD5 7952f80fd4e0575f05f9a89ef45af303
BLAKE2b-256 136d131de5f5278f961364cdb12816e59c2123d26892c9da1baab6a1c1b7c842

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2f2e10027f71640e3d41aac95922b3c1246bfa82670e408c40e667fa489c2bba
MD5 17a36fe29bc162fe6f4b4347755d7f40
BLAKE2b-256 95d2860b95fb1f8f235f53a48b86e3e5e0888da53385a269abdce5be5b7fea05

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 33fd69ec03a96c38624635be46b2c87ce1aab5dd142b118d63652aa4f46fcfef
MD5 a1538113350cb9e6758b5cadda32708c
BLAKE2b-256 486043e0f9f73055f91181c9cbfee13167ded30dd70daec96665f91dcef88daa

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 86e5a4b6d0f47a4d7b706e5dcae69840939e44f28b2f9de25f65aaf66d2a1d35
MD5 327fa57d1e60e5be0c4b60e1f930dae6
BLAKE2b-256 fa19347f01393662882f0469c452bf38386d05dfd02aaa9c59aa90d54f42a1c7

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4196164d35a4b2780960c8174b593cc745009a8b99b95c499b20ede2b3cdcf31
MD5 4f5dca2f09badfe329a911776e514f74
BLAKE2b-256 cb993370cbde4df17b90c176337f4b3a5ffab062be60454e9e7c58d88244155e

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3004cda56734e38dee67d4bf6c26ba447a37727d0bcc84417719408c242d5c2d
MD5 ed0a82e7074b4170cd8ebe350395a58e
BLAKE2b-256 bf46ab789d2ffd7eee14350e41e1288a893c9be8ac6bf8ce969ea0d3c0ec2f98

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 62bda8f1701cde3fb0d48a5154272843118f6c492be86fbf2196a18799de83c6
MD5 a204462f0bdee0493c0038bd00c6f708
BLAKE2b-256 3b7cec0aeb679844377057527722ee1e3a99adaf5d03d56b471a93e06eb34da6

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4de4fe0971a95cf15a575bdc6583233d6d7dd1bda62fd2b72bdd44f25bc3c3c5
MD5 bda77484ffbd935a4551e144f54ab3e7
BLAKE2b-256 1a5c537bd342fc28a77ba2fe92f5c5ca1c334b96556f6bfed78d076e858add35

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 32465733cf381028b0d27779df993819fb5b2e56ed2bd9012749d3ba4b8df5f3
MD5 bddbc8660bff2b7e707d30e25e2a045a
BLAKE2b-256 6b76102573b842ca704aaa88470a769823fd2223e373d82c12ab7635d67b196a

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d2a954f3cd9b9edf5fb5724d4470a59281e13da4a98f5e5890078d37e47c634c
MD5 19aa418c449f3074f3e53c775ebc4a22
BLAKE2b-256 dbdd20269cc3e44dbc65c75af7d953f1919f3950ea386f099c3bc12f404fcd9b

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a236151df9c56dc0a8a447354b86ff1c826a24220a66164d1865ce556bb9ce04
MD5 c678006e466c58fc157801c93838ba80
BLAKE2b-256 de27369e5e99aacc713564a6e07320617290764e61d80729df9851b93fcfa170

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 10b14c22fc98806aeb4c99807a482122e14796ea127a291f54725832f3f13e94
MD5 b34ca1dab93ff00a4695507f5613c4c6
BLAKE2b-256 6653463b9f1ee58edc9c4489b3b9defaae3fff41f7bfc0042b4229e6765bf802

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.64-cp39-cp39-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.64-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4602fb589a32b52e8d7ca5904b05f8eb9fa3bd15f594ea4ef521cdcda5194d55
MD5 a804f4f7c7fbec6c6d0d4f5ed50f3c2f
BLAKE2b-256 b0231f1d896747d9f89bd5ea300e8f76234375ca6d8847b96ab82d24c406c79d

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