sat-toolkit 0.5.0

Creator: bradpython12

Last updated:

0 purchases

sat-toolkit 0.5.0 Image
sat-toolkit 0.5.0 Images
Add to Cart

Description:

sattoolkit 0.5.0

SAT-toolkit
A tool for efficiently handling CNF and DNF formulas in Python
Installation
To install from pypi use:
pip install sat-toolkit

To simplify CNFs and convert DNFs to CNFs, you need to compile
espresso and make it
available on inside your $PATH.
Usage Example
The following example shows how to create a minified CNF for a boolean function that is true at values 0, 6, 9, and 15.
from sat_toolkit.formula import CNF, Truthtable
import numpy as np

table = np.zeros(16, int)
table[[0, 6, 9, 15]] = 1

tt = Truthtable.from_lut(table)
cnf = tt.to_cnf()
print(cnf)

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator