Skip to main content

passagemath: Interface to the SAT solver glucose

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-glucose provides an interface to the SAT solver glucose.

What is included

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

Examples

Using glucose programs on the command line:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-glucose" sage -sh -c glucose

Finding the installation location of a glucose program:

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

In [1]: from sage.features.sat import Glucose

In [2]: Glucose().absolute_filename()
Out[2]: '.../bin/glucose'

Use with sage.sat:

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

In [1]: from sage.all__sagemath_glucose import *

In [2]: from sage.sat.solvers.dimacs import Glucose

In [3]: solver = Glucose(); solver.add_clause((1,2)); solver.add_clause((-1,2)); solver.add_clause((1,-2))

In [4]: solver()
Out[4]: (None, True, True)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

passagemath_glucose-10.4.68.tar.gz (3.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

passagemath_glucose-10.4.68-cp312-cp312-macosx_14_0_arm64.whl (175.8 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

passagemath_glucose-10.4.68-cp312-cp312-macosx_13_0_x86_64.whl (186.6 kB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

passagemath_glucose-10.4.68-cp311-cp311-macosx_14_0_arm64.whl (175.7 kB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

passagemath_glucose-10.4.68-cp311-cp311-macosx_13_0_x86_64.whl (186.6 kB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

passagemath_glucose-10.4.68-cp310-cp310-macosx_14_0_arm64.whl (175.9 kB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

passagemath_glucose-10.4.68-cp310-cp310-macosx_13_0_x86_64.whl (186.7 kB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

passagemath_glucose-10.4.68-cp39-cp39-macosx_14_0_arm64.whl (175.9 kB view details)

Uploaded CPython 3.9macOS 14.0+ ARM64

passagemath_glucose-10.4.68-cp39-cp39-macosx_13_0_x86_64.whl (186.7 kB view details)

Uploaded CPython 3.9macOS 13.0+ x86-64

File details

Details for the file passagemath_glucose-10.4.68.tar.gz.

File metadata

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

File hashes

Hashes for passagemath_glucose-10.4.68.tar.gz
Algorithm Hash digest
SHA256 2b9d7a6b46ee8d0578a89e3f57e53a74376ee3759295db5f8aa5ea4a9c6a1627
MD5 9b654dbb7fceecbf9a1d92a6fc5d92b3
BLAKE2b-256 9bc8576ae4c28705d96556897c474ca087c179c4e41d22437d24b4dc93b6856f

See more details on using hashes here.

File details

Details for the file passagemath_glucose-10.4.68-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_glucose-10.4.68-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e92d1d908cc7ef2a70d8f9c554078cd3243a57f7ef4fea6d0c8685f0e689497b
MD5 5f2a27e3e6822d35c714996f357a7d77
BLAKE2b-256 141fbecd9f2b479a79ad672facb23ca9697c9a8b66f7acd6a217c5ca42c89e19

See more details on using hashes here.

File details

Details for the file passagemath_glucose-10.4.68-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_glucose-10.4.68-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4ae64b7fc0304b95d13c81d64394a5196aed3c3d9f528bc199833cd1b44cc32c
MD5 0fc6e20a16ddc45c63ffbfcad41fef69
BLAKE2b-256 0423afaffcb5ee0cddfcb595037b43ccaf125fac819ad1d61448b59db2e69a5f

See more details on using hashes here.

File details

Details for the file passagemath_glucose-10.4.68-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_glucose-10.4.68-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d885466bca0ca1a3c948b11cab0a1697d43229158a8297d515bfef6b8d63dabb
MD5 eef11fa280a4f5175c43fd2884571974
BLAKE2b-256 e965d621e9404bf50989b202d30706333f5dd157766b2f32ad78dd165d2334d7

See more details on using hashes here.

File details

Details for the file passagemath_glucose-10.4.68-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_glucose-10.4.68-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 283d8a9a1b90085641ec20882f9e6f1eb977be3378e5d3bcb2d6f481ede5bb4a
MD5 f7015bd90fd8a9e831fbc9cca7d8cd8b
BLAKE2b-256 5aa80de87d1b4d0be2b85d47f3791efb496a73e3255b817a975b62f49a4eb42d

See more details on using hashes here.

File details

Details for the file passagemath_glucose-10.4.68-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_glucose-10.4.68-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ad5e2f7bf579cbb73fb032036bc331c2542ab9f2fb3f43ce6f5517112e7315ec
MD5 f68f300bb764a55a421dd69a67a7c7e4
BLAKE2b-256 b932e9ff0554c32773e2d301efaa02c96bc6725537185b5431ae749919d41f61

See more details on using hashes here.

File details

Details for the file passagemath_glucose-10.4.68-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_glucose-10.4.68-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 24b78bd41ab0f5a908198c02287a53a7d78f0cc66749d4129b04d29efa493ecd
MD5 22f601af57aa397b3513b12d39f31a45
BLAKE2b-256 9a38c929746d141905ca5710e26b7ebfdd7b1aabc602042fb502b333385921ce

See more details on using hashes here.

File details

Details for the file passagemath_glucose-10.4.68-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_glucose-10.4.68-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1f752772ebf79dc848c2683e4a9b27e33e06c8cf94bab5e8014ac3a0241f4f65
MD5 b20180b862686e6820e1cd4523325944
BLAKE2b-256 5848da81dd1ffd3b23caf6fde09dd7cce9a7763f119f0c066f91a9251aad969f

See more details on using hashes here.

File details

Details for the file passagemath_glucose-10.4.68-cp39-cp39-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_glucose-10.4.68-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 c3b5cd4c0cd17de0d63d49090ba9144fc9c186ff495050cdd25abbf3ac410e65
MD5 6c7ea0a86fab16fdc986683d55c0c571
BLAKE2b-256 853616e21140cc2c07e32faa2eae970c7c92a1228a37896cad5fd63f534708a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page