Skip to main content

A Numpy and Numba based Python library for solving Constraint Satisfaction Problems over finite domains

Project description

NucS logo

pypi version pypi downloads

python version numba version numpy version

tests coverage doc license

TLDR

NuCS is a Python library for solving Constraint Satisfaction and Optimization Problems. Because it is 100% written in Python, NuCS is easy to install and allows to model complex problems in a few lines of code. The NuCS solver is also very fast because it is powered by Numpy and Numba.

Installation

pip install nucs

Documentation

Check out NuCS documentation.

With NuCS, in a few seconds you can ...

Find all 14200 solutions to the 12-queens problem

NUMBA_CACHE_DIR=.numba/cache python -m nucs.examples.queens -n 12

queens

Compute the 92 solutions to the BIBD(8,14,7,4,3) problem

NUMBA_CACHE_DIR=.numba/cache python -m nucs.examples.bibd -v 8 -b 14 -r 7 -k 4 -l 3

bibd

Demonstrate that the optimal 10-marks Golomb ruler length is 55

NUMBA_CACHE_DIR=.numba/cache python -m nucs.examples.golomb -n 10

golomb

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

nucs-11.2.0.tar.gz (79.8 kB view details)

Uploaded Source

Built Distribution

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

nucs-11.2.0-py3-none-any.whl (197.6 kB view details)

Uploaded Python 3

File details

Details for the file nucs-11.2.0.tar.gz.

File metadata

  • Download URL: nucs-11.2.0.tar.gz
  • Upload date:
  • Size: 79.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nucs-11.2.0.tar.gz
Algorithm Hash digest
SHA256 92aeb03b8d6f244d2ef61bcf68e7445441f03c734503bca3783ac8bc6924d9bb
MD5 5904c518365cb0b6c02993cdc7cb8ef7
BLAKE2b-256 c8a5cf57717b9c233301e8ef5bd65e6227cfa1ba66d3b4e3ceeab42807eb8eae

See more details on using hashes here.

Provenance

The following attestation bundles were made for nucs-11.2.0.tar.gz:

Publisher: publish.yml on yangeorget/nucs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nucs-11.2.0-py3-none-any.whl.

File metadata

  • Download URL: nucs-11.2.0-py3-none-any.whl
  • Upload date:
  • Size: 197.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nucs-11.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11dd8923ba8c742358537cc369015f173029467e10d55d6a639d6bce7c53a0a5
MD5 bba56f49d774c87938bc7a0d20748fbe
BLAKE2b-256 dd9cf45abb5c9923d35157ce8ae38b9160239a7568d78460d74f7ac65dc1a7dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for nucs-11.2.0-py3-none-any.whl:

Publisher: publish.yml on yangeorget/nucs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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