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

Uploaded Source

Built Distribution

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

nucs-12.4.9-py3-none-any.whl (212.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nucs-12.4.9.tar.gz
Algorithm Hash digest
SHA256 f892f1a4126402b9234571c1826ac6405f63e0ecb091d44f5d2e39399d1cabcb
MD5 d6b5473cc3701ffc030dade3af8874f1
BLAKE2b-256 5b892504b7b2a45f50e34ee0bd7fea684d4c84bc23748dfd09ede43bb9228531

See more details on using hashes here.

Provenance

The following attestation bundles were made for nucs-12.4.9.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-12.4.9-py3-none-any.whl.

File metadata

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

File hashes

Hashes for nucs-12.4.9-py3-none-any.whl
Algorithm Hash digest
SHA256 0d47c93b30b544aa0dae77b3f7b0652f058f69f47245d388f8073dda36fc70c4
MD5 3f35a2f371ecd04963ed77d1e70ae56c
BLAKE2b-256 6b2d3107c38f8b1ea160a3307565a2e581d8af5964dc96a664aed1e808e091e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for nucs-12.4.9-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