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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

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

Uploaded CPython 3.11 macOS 14.0+ ARM64

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

Uploaded CPython 3.10 macOS 14.0+ ARM64

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

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_lrslib-10.4.65-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.65.tar.gz.

File metadata

  • Download URL: passagemath_lrslib-10.4.65.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.65.tar.gz
Algorithm Hash digest
SHA256 aca0b4dfd1cdcab7770f01790eb07afcf6e8b6b1c3f175290711e7d91521a663
MD5 a6586d15500c083df854a626c9b1a9c5
BLAKE2b-256 abf1767c82a0e8bda24e48ad3ab7d404163b6d23b80dc661921075f3c681f97b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.65-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ade3bad729e3a162888a39803f49b651f2ce08e3b59ea93b81bbc37f22c48561
MD5 a70bdbc114a69089d3109a8b422e725d
BLAKE2b-256 56c6390306b4a129c58d63100519d7dc91aed20ced01ecec0d3c93ab513b9023

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.65-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e6b7d972702c1bc074de257a37f39a0f6ad15125f1694f7a74a183731376853b
MD5 330e1febfa8f223f3731e7a19f809852
BLAKE2b-256 529bdd1c814d4c7b5c32326dacd45228d1a26ba6de058beb8ec2f20cefa150b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.65-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 099c0b658e3a555885ce7c827a78e41e81e7ed9a3a93243c726a565867a43142
MD5 253626272ceee69dc201bffa39ae1308
BLAKE2b-256 ece50e67f212a1555f38253856ec472d3057b692808713d4b0247c4a87c3b9d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.65-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2869acc60487e81a3e2c5f668f0b57a83f0a336a393abcb7736a719536d84534
MD5 ab9f917296acb196db72b91a0c080abc
BLAKE2b-256 5534de4adb93a6bd3527a47a02c075ce586123f0cbaf80b107edc5409bf07969

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.65-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 edc2c015c9fed58a62e1605b08c449fd4fe233a5b87d984a21c9c84b6b0750d4
MD5 b23a8684c6fcd3cd2a080a031cf5b295
BLAKE2b-256 cc6b8c02c1e397ee4e9979eb990ccc920a298179857b83c0aabef0ef93dae52c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.65-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9085c9cb41b3ed030ca8e02cf3c3c2ee441fc59024bb808bd89515d95e904053
MD5 63c5f51095ecbbcaa3f74c5faea72243
BLAKE2b-256 925e6393ee919e393a38cde72909a952e7084a6d5f69890156de7e7df0e261f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.65-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e08d9c3d624e531eee6beebfa1860a2e9134b81b48993b6eaa4a7d15fd6206e2
MD5 135c1c7e30813f73be3cbb22798e1f9c
BLAKE2b-256 bff9ab1aee83434e3cdcfde66d9c6839747527beb8a7af940eff9d5de76a8013

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.65-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6cf0c1a6fba28fc13e794d0a0fe381cc9d2bc6f6f4c8625e423838c359d93bc9
MD5 c10f345eedde12a4af5a0388d571c522
BLAKE2b-256 d2140a1c388b00e0a66194f5a8dd4654936ca999c60cd8aa07714db186bb3b25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.65-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 390a23aed58ccc7ea3f14dbf530176e176e0320d03cb0c7f3518109152cef7d0
MD5 96bf6c5a30233d8d3c6280155b26561e
BLAKE2b-256 42dbfa13053b9687532162275d477524f1d79583b47675950bb0c1291f6e15e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.65-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 aa088564819238b3371127a7d105d104e57631abeaaa9889e947a5a8f350013f
MD5 c664e92a1f17be0f0a763eae26dc7541
BLAKE2b-256 a68f1df0726a635cb38ff88fce289d9656e6f5690c3a267274fbad2fac2fb0c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.65-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 42b93da32d464a359362a21c0fe68c743b10995284cf20ddb937934412e43ac7
MD5 3fe05f76e1e4dd856c5b3168b78f7f94
BLAKE2b-256 8d02fe15c6df7d4fae689de6d471671bb190b328bc2a2eb0782aca024782cf9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.65-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4ddb84c4c6be5624b13ec48b1dc280530e54d0b494faa72deae51ab5cdbf9752
MD5 98da3efd6e27278c6591548f1354f1be
BLAKE2b-256 ca2352ba5b251609b0c7d16da1746cdd8ecf59ad29fee5d4d7a57101b062c67e

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