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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_lrslib-10.4.58-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.58-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.58-cp311-cp311-macosx_14_0_arm64.whl (610.4 kB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

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

Uploaded CPython 3.10 macOS 14.0+ ARM64

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

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_lrslib-10.4.58-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.58.tar.gz.

File metadata

  • Download URL: passagemath_lrslib-10.4.58.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.58.tar.gz
Algorithm Hash digest
SHA256 0ad314fdd0f15c169a708215a6ec414671d078513262c7567b54f7c817bbe079
MD5 2e1badfb31aebc97a51e3714badc3510
BLAKE2b-256 523ef38a4fc4d92a3540f71592c121c5f83cc6786ca8879a078da435495e696d

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.58-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.58-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 109f6bf0ed7bc6d05aa6aa39d69e62b172eec831f5fda78d058153f1b5a5475e
MD5 410477761a6487a9af2abe5c345eb934
BLAKE2b-256 b1e2ddb6268db3725e6b0e2a4c23fe657e676b33404bd103abb8c6b31f524d81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.58-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4fdd385e6880327b2d540cec75b1f37ba088244914304c731edd2ba050463b8f
MD5 b78adb1935761fdc288caa23c1740fa6
BLAKE2b-256 40d9f0a257854b252b8fde1a6ec612c4aaf4e6ab4b0b3a53b6f44a0fb9243437

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.58-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 1688f2501bb458e647f390c3166021adb7dc0139a37a1cd72856dbb919beb42d
MD5 9439d7ca0cbd793786bf762280541883
BLAKE2b-256 ca5c3ee9ccf9249903ce0013a0c6682b65fef0c45afc72c9d83c8abfe62a57cd

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.58-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.58-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cb9b5e2875885021c782b828e4f5574665837d531b16a01522973ba2e0c83aa3
MD5 fccf1fb51beb67d5c90fdca41bdf5dab
BLAKE2b-256 f1216c17bc5d5c2ac20fce4e3e600abea5482aa96c6e65ed24d1d19290cd0112

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.58-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 73024a4da95345f9cfdaf5b209c1674eb47e31cdee06e19abca6f570433a0dde
MD5 e81e691ad6878f30854d30c8a8d0d5bf
BLAKE2b-256 3058fd5186e88da820c40f7649fa6dd436c18c1cd606b5cc72b20af36dadec26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.58-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 c4f8ffbb948739b9dc45455b27b3aa3d7e1da1b4a281ee5580b3c5da26d9467b
MD5 6b0f95f1a532c1c2e4c36dd68d24aaa4
BLAKE2b-256 347aa462ce3ad75d4b9c9ba872bce603fa6e36c33501ee45850b45fc4f2a6f42

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.58-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.58-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 de483c9803575e61c4e63480eaab091c531faf0dea718ac08c1e5835320c1b24
MD5 d31d0b5820118f9d501b9d62541c08a4
BLAKE2b-256 7b3f6845ed45e666a87d6f4cfc044420f4f9d5c85cf2ca75ec7382ec046a1b76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.58-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 8602d934982f9d80b08dcf8e3ef4da0bf14999578f81cf5f53925cf34e19ceb8
MD5 632ddaab620535cec440a345cb1094af
BLAKE2b-256 4f1a8b23bdf62bb83a3b8e7bd80ad85155bbeab86de8e7a08e35e1234dfa5309

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.58-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0db83e8632a32d542ff00270748975a2108ed29d5608c7df93576f1d7b8f7c27
MD5 97c9d899e08c345543c1df44c3b692cf
BLAKE2b-256 14644b490b0574714046f25816b9c02eea8b00bea3779000d714c293442c1f2c

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.58-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.58-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b929747f18d837b1a7a892e3fe6a3f1216fb4a30696764f203033941a8a48f6
MD5 2cf8dc59666d6e07f9c6fb1ae241f16c
BLAKE2b-256 0633aabb74575814e51cf30d7e9e6b32ea8947787d05537bf85174c5db86cdb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.58-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 20821d7e860521b5136cf9c7ba132ecdf77ac66b872b391628f23f7842182974
MD5 016287aca14729f8a20e3f37180a386f
BLAKE2b-256 d0ae31f2962e84f97f6c24c90bacb3556aa2c0df8660c563fdefbe8d0dcaa899

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.58-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4606dab5f6d91d87dde4def087af850d48a1ac9002bcb333f63db5de2fbfa71a
MD5 ec047aa7b8a329122fb87ad327bbad24
BLAKE2b-256 17b2d8d1bbd5511d01390c0bec17b99fe96eda03073738d1ae2fe18faa77dcc3

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