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.5.10.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.5.10-cp312-cp312-macosx_14_0_arm64.whl (175.7 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

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

Uploaded CPython 3.12macOS 13.0+ x86-64

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

Uploaded CPython 3.11macOS 14.0+ ARM64

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

Uploaded CPython 3.11macOS 13.0+ x86-64

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

Uploaded CPython 3.10macOS 14.0+ ARM64

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

Uploaded CPython 3.10macOS 13.0+ x86-64

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

Uploaded CPython 3.9macOS 14.0+ ARM64

passagemath_glucose-10.5.10-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.5.10.tar.gz.

File metadata

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

File hashes

Hashes for passagemath_glucose-10.5.10.tar.gz
Algorithm Hash digest
SHA256 f98f24797f305a52ae2767f7026b77919625f024a5489b5f4c5423f8643be410
MD5 282c2d6551fa732cc01bb01477a37970
BLAKE2b-256 b3aabea4a5a3f7651ac38878f6b773c4805691a742fe9db2c0127fc9f093fdfc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_glucose-10.5.10-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b06d518c31f91d752243c15c967bc22fcc696f8597b16398717a77fe3967dcc9
MD5 b3d443f6adfc80be023e9b3990d50070
BLAKE2b-256 8d54d8d4b62eaa3b6a0560176cf6cbadd1bf994af13eab4580233eb4890ccadd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_glucose-10.5.10-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3966bc0f579268bf098e7fbaf32f2ac82c1817a7cbb6c7f498e2e61b7f41b26d
MD5 0c2521a8875c1025c07073ee9472bf80
BLAKE2b-256 6ebdfa638026e205db26bdb43d880e1dc2d80a74a0eab61d1e5930ca5b5bbedf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_glucose-10.5.10-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 17cb6d18c6b8bd5df1c64fd47f146fab8f348444d0054a8d47683769abd3ec1d
MD5 459bbeb1cc218e229135b9d6ec904b67
BLAKE2b-256 7eb2bb569a8caf38a2d4778e39b5167217808f0e77fd4c42d295a3cc5d1b2be9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_glucose-10.5.10-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3f9b2cb4398feb63749a08d889c21ce7872b4305ada18316170155a5d23b0a07
MD5 ccb0f25dba2a9b08de6e7fa750f823e9
BLAKE2b-256 544594e0347e5d1de7db6f37754c29e227eec79047cd13432c3ef6141bf099bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_glucose-10.5.10-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 94445c68d7995cc1030d73d3cde1b9fe3974ecfaa8abdcff0977825afeda6a18
MD5 ba7c196ed6d5ad6846df20a0186f8489
BLAKE2b-256 3369f5a49e0ad0df2431724ffe2bca706d374640f6cc0ef14e8c9a651adb3f1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_glucose-10.5.10-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 47c2d36f33a117c2cbc5918a89b6873686b80a52da19fa3204cf819404d439da
MD5 547db2729c12aceb8561eb966ae216ae
BLAKE2b-256 03e68eaeac3bbefbfc2aeab431aaa3c93cdf83b47739f5a6aed96cb9803cac94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_glucose-10.5.10-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 2418c4e3d661c2fcaa8fc0b7a38208588cf9bb1e7207d827523265d70d9d4676
MD5 5cf84e805f689c9e661f8ce130e4c6e8
BLAKE2b-256 443d134658b7165fbd8a567786ce03be26541612ee959660b9e58c6bf13f68cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_glucose-10.5.10-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 c717c27bd8d2e4647aee9b5c3cce64a3bb2e39349dca065d87772275f28ad35f
MD5 a71d4163166d66386b7c9a9b52476ca2
BLAKE2b-256 15e9a5fa0d8631f58c45561555af488eefd7453076e0d5324e6adbdde761f4eb

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