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

Uploaded Source

Built Distributions

passagemath_lrslib-10.4.61-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.61-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.61-cp312-cp312-macosx_14_0_arm64.whl (610.6 kB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

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

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_lrslib-10.4.61-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.61-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.61-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.61-cp310-cp310-macosx_14_0_arm64.whl (610.7 kB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_lrslib-10.4.61-cp310-cp310-macosx_13_0_x86_64.whl (693.9 kB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

passagemath_lrslib-10.4.61-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.61-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.61-cp39-cp39-macosx_14_0_arm64.whl (610.7 kB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_lrslib-10.4.61-cp39-cp39-macosx_13_0_x86_64.whl (693.9 kB view details)

Uploaded CPython 3.9 macOS 13.0+ x86-64

File details

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

File metadata

  • Download URL: passagemath_lrslib-10.4.61.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.61.tar.gz
Algorithm Hash digest
SHA256 63ff7d019d57fceed4b3e89cf20389e0ae7540ff3bac6a561beeae2748a4db93
MD5 f5f788a1d3749155f15c7ff600bf61f0
BLAKE2b-256 3b11cef45126bb80103ba11504b1df7d13b0dd48ac4b831450f38b304dae0ca0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.61-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c50fbf3c3b1bafe27e024ab9f046a720e4278bb2b610c3f61a966fabd1f20bd1
MD5 58511220f22f26586fa291b86bf063c0
BLAKE2b-256 dbabc3077610609a7dccc22f1915fc283e9eab1fd83d483506f2b8035e88b031

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.61-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.61-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b42c0ef09db46bbc8667c200d50bf9e140e6c1ae1b06cf8fb1397fce5aedb69b
MD5 c8445f3f7975076a68d1e93588129f70
BLAKE2b-256 87bfc78d2d7900e02a28d9f45a85be20594dcf37df5dfd9f70b927cab0aaa81c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.61-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 3fa7209ab40f60b7adebb9faf6df95efe0be752be9de5ef6c7953177c8bd5983
MD5 6b6daeff534ecf94776f8002caaaa783
BLAKE2b-256 f85786e0e92c6d9fcf01231b608dc6411cef5f15dba84aa157ebcdc52e8197a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.61-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3a27053746376a41e2244e795aca0b2f2b07a0ab89539e05d865ef9c46e984f4
MD5 3dddd4bae2a3157a72323b3baa1a39a0
BLAKE2b-256 de3c1e9573600c3ecc3a50f02336e3b27a1f87c6625b7859b6be666462143c8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.61-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 980146bbb378956b543371d77bd072071fe6e774fea5274a2e740976e577945e
MD5 2b1e5981f05f600550914de9abba744c
BLAKE2b-256 ae5f1d24d0461e1d0781e5c639a9fe3abc22a86d8e2f65d4aeed2cc2c493fb03

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.61-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.61-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0edfdc0a7780db7b82a078657963873a98b45a9430fe8a7ad173aa8b3858c7db
MD5 de4a85d87cca170b51cb10ae6d84622c
BLAKE2b-256 f520c75018ae5a763ef97d3f04b25dbe6ca5be369c35206f8dd2836ba63d6cd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.61-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 98ce115b8abcec26772ea9290ec7130bf2aecea70edd6f49e16190b1b3e1582e
MD5 f8c0a5cc5ce298974c167320309ca368
BLAKE2b-256 5cbd8dd30e2cff58052ca8f1109d08e33c4d7ea71dd5c55647703a6ebb95a781

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.61-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3b5979629f2ecd260689d9c560caa5ec5dab0f5ff7495ab0e8a4532ad543d2a2
MD5 50d7ff84929d95e04b3a2ee25627a024
BLAKE2b-256 1982237538446bbd17e385222396c4b66090e07f0fc1361ccda62ec0893d9a8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.61-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1c8271265ca062cf16551eb99e8abc685b503f4a5d66b3cc1d3d0929b8bab392
MD5 026a212922ecdda7a1e1db1144a61ded
BLAKE2b-256 39f56251314b4e7fb9b97e20b521c43287b200cf5d1b94fc61f64ef4eb93db55

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.61-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.61-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7fc172dd4bec097f7c481bd4952dad7c9480c51ba454ac60ab57f54771a21427
MD5 20d5b1b26c9a61f75b2e7eb4b8e2ae29
BLAKE2b-256 b9651227e59a9ea545db86ff5ff7ab8ca1f0c4419f763c0ee2f031568187d702

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.61-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1a8f228fc298485fc032b381ff0ea93e4d59544c53942b6227a380262b2aaae8
MD5 ba824bfa07aef456fdac32d9e0fc0fd7
BLAKE2b-256 c26f87bf927f090acaca48377bf939c048941824a03789751aef290e5f12ea10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.61-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3f931b86a8ece36199ace742a7538309e7afaf2f31ddc4ff3caa7629a2b6ef4b
MD5 457ded9f5d03da5162def50b3119a05d
BLAKE2b-256 27189065189da8158cf9a73eda24be94387bd068eadab56fbe57c2851137b02e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.61-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 743569a89dee8530f01a7693f42b18c1791ff9d9a73a6a4ece8bed6aeb68f1e3
MD5 4c22f0c2e3621ab3de8ce38f0770b06b
BLAKE2b-256 07003c394f1cfa42bf53056bf3863494185811a0796f7bf5bdbedbf3b6327a72

See more details on using hashes here.

File details

Details for the file passagemath_lrslib-10.4.61-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.61-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4b19347c20ee3e4572506c97faec80df5927bd80d892d80e06abc3f984924c81
MD5 25d9e6c6d509575f3bcbef3ac978f8cb
BLAKE2b-256 d9d9e63d0076ba395b5e6ad6aa0d24365bae5313873e68f8a5e030cfd3563a6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.61-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b8b2a51070436e0c7dea3fa98656dad47e7cdb58950d8f6fa950654b491c2c1b
MD5 0694aa9e548d3b92e4386f09264cdbb2
BLAKE2b-256 a2ce63ee4e0be8bb57c6c1d7914d8101fb4173b3a72e862d228bcc2a4f8651ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_lrslib-10.4.61-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 cf7f5e63b1d34d15affd9afdfc08b6627dab05182b460f68f627e2494e8f1104
MD5 e3d31ae2b88bdff2e2c07d54dc850477
BLAKE2b-256 c76067a4c75d1c437afbf68b12818041f3d2ab18c26603838b194aedb9770069

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