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

Uploaded Source

Built Distributions

passagemath_lrslib-10.4.63-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.63-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.63-cp312-cp312-macosx_14_0_arm64.whl (610.5 kB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_lrslib-10.4.63-cp312-cp312-macosx_13_0_x86_64.whl (693.8 kB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

passagemath_lrslib-10.4.63-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.63-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.63-cp311-cp311-macosx_14_0_arm64.whl (610.5 kB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_lrslib-10.4.63-cp311-cp311-macosx_13_0_x86_64.whl (693.8 kB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

passagemath_lrslib-10.4.63-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.63-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.63-cp310-cp310-macosx_14_0_arm64.whl (610.6 kB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_lrslib-10.4.63-cp310-cp310-macosx_13_0_x86_64.whl (694.0 kB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

passagemath_lrslib-10.4.63-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.63-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.63-cp39-cp39-macosx_14_0_arm64.whl (610.6 kB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_lrslib-10.4.63-cp39-cp39-macosx_13_0_x86_64.whl (694.0 kB view details)

Uploaded CPython 3.9 macOS 13.0+ x86-64

File details

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

File metadata

  • Download URL: passagemath_lrslib-10.4.63.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.63.tar.gz
Algorithm Hash digest
SHA256 2ce9cb0efba702f0971c067f65fac38dc82beeba42ab9b2dc16957e05f38b04e
MD5 7c5e5781099fa1ca023920ff5c9d5f3e
BLAKE2b-256 dd2f8a0c1745c7beade2b06ef5e109c747fb8f3479b2be1ec2260891c130cc4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.63-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5311aaa797293ca4061b94aebb0c6f5c0bf27bab3a9db937143f1ecbda262d55
MD5 bee48b0f1c66dccf134895e8048fee13
BLAKE2b-256 84dc1a35d9456c8323f113c5faadf419918fcfc0f64f8a8d7a6ed22090b299f6

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.63-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.63-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 899604370680fb4c1f2a4bae722042bf5db029fa6aa1043da15d752a5fed0457
MD5 5e3045e17fbed74e2697c9c6aff5f744
BLAKE2b-256 c8c02638c6beb341cc8145a82a75db72404f73b029cc1db65f2acd7b2baa4ed7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.63-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 120194617dba9aebb1365aa4d48b82dcfe09ce254e2823c3c38bbf86ceb882e9
MD5 e3a8f7b5e305431895b504c7abefee47
BLAKE2b-256 7384b0ce4a17b325b11173d236e5d9d70fb59892a02ab2a092f49b907e8c027d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.63-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 708391d9790138ba58231fa95851ab5aa7d0ec186de4709188069c7fa55a0084
MD5 3a1c5062e05c0ef566e1dc0fd8688a43
BLAKE2b-256 2ee4aa5fff6ad8c0549121fec2e066386bbcae0a7f1fbea63cc8d1c0db81f1cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.63-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5b91db8974033ad63f249660533b1a46554c435281047968b07db3e04bffd0fa
MD5 9cf1185cef133a490066669b07dfa95e
BLAKE2b-256 7f463daac825e5a6d50b6ebf4da19ea537108917ad641d57281330b025db02ea

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.63-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.63-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5511c0afb76640fb2a505c95f7f4509a777c6e3c72aafdc522d397b33a037b01
MD5 36885a73d1aa0b7443752a19adfcb66f
BLAKE2b-256 46cb246714088f83c679282531602756899fa670a581628f9d333d40b9f3cd86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.63-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 474346728405d75eca9561811704a44807417c16d7d080c97e21067b45c38431
MD5 8c0c23ee95421301e629d721882d3a17
BLAKE2b-256 a8695d64a4b52763f8a3285583811286f228e1fe3b0003125e960ee112a650f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.63-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 f9f9d7bb3ed91430f2a33130a786f2f13ad68e4b1a9fe14171e71c153bcb39e0
MD5 29077e83ac8c474fa77c2ab0bac3295d
BLAKE2b-256 63d98244273c1199114267c3a4a6b16fb3ef054a740ef3dbf10959a398d5f73c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.63-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 83cedb25e7ff258346dadf175d875273688a0e2862ddf4c86c132a092084f9b8
MD5 32a7575516257c0abf8b91f5cf853fbf
BLAKE2b-256 4d1b49961b08c85b45fa15b85cda29230cda139115a2e531d5e95312cc9c77e7

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.63-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.63-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3747a6741605f5674593150b719b7a7c8acc92cbdfed5a7b9739f8b08e9b0f82
MD5 c6305195d92d84bad43bf61947b9ad0f
BLAKE2b-256 b21659a12bacc2ceb90ed77d001bb7a7f92f4d5c6fcb1adfba8290c3180e403e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.63-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0f23efca7c4ebeae4b55df1ba4b5a5a32b964351e630125a3b565d7739253253
MD5 bd86e99bd3245c009702166f7b4bcbc0
BLAKE2b-256 92d992983aba3bb7870f326be899fec78cfa2a751f3321ba6b80b38eaf40d101

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.63-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9cbfd0201e2d757b35cead1e30a916271098fb42159dba111ebe8d0895051376
MD5 067c956a6bb03c7bf8a1e7a66582ee57
BLAKE2b-256 866ff7ad65b5de53676e01698ee89862f3f13f218131f82a5def6435458dda7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.63-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 75edec63dfae160d95e9cdad338a4e20eb692286202fbf43a0797296a1f366d1
MD5 6cabe21fe063133bad2e699faec1b5ab
BLAKE2b-256 394be52c5b62763acb224f1380eca73ea15242cfd453cdf67ca951cdd6ad8eb8

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.63-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.63-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 46f49b21404fa60187be61a9b5b2e62625bb416a40704d94402853ce19e248be
MD5 110b18bb91a73b441488eb8a75c6904f
BLAKE2b-256 c5a0b118be547567afc976d96b2a1318c1058135281fea232e4575318c61c263

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.63-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 10c822057c506f7c2214a69d1e92266a6f973065ed3a2ac471f4eec02fba8195
MD5 86754c7471c68497d46a47a33471d7fa
BLAKE2b-256 e770deb77389b8a12391bd9699603d99b960d8e3d38883581569d61f9a101181

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.63-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b07c04dfa3e785a738f2599e936ca4ac65b490783c6b3c5651d1f1e926cde2d3
MD5 ab7d5fbfe2920ffc24174a7da4fc188b
BLAKE2b-256 59d7ac435d47e99af420bcf4652408650daed0c7ae9e55851f2677aac256ba1d

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