Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

flamapy-dnnf

flamapy-dnnf is a flamapy plugin for exact analysis of feature models via d-DNNF knowledge compilation, using the d4 compiler.

d-DNNF (deterministic Decomposable Negation Normal Form) is a highly succinct compilation target that supports exact, polytime model counting. It complements the ecosystem:

  • flamapy-bdd — OBDD; exact, but can blow up on large models.
  • flamapy-sdd — SDD; exact, more succinct than OBDD, pure-Python (PySDD).
  • flamapy-sharpsat — ApproxMC; approximate count for very large models.
  • flamapy-dnnf — d4/d-DNNF; exact count that scales to large industrial models.

Requirements

d4 is a native C++ binary with no PyPI package. Install it from https://github.com/crillab/d4 and either put it on your PATH as d4 or point FLAMAPY_D4_PATH at the binary.

pip install flamapy-dnnf
export FLAMAPY_D4_PATH=/path/to/d4   # or have `d4` on PATH

Operations

Operation Class
Exact number of configurations DDNNFConfigurationsNumber
Satisfiable (non-void) DDNNFSatisfiable

Usage

from flamapy.metamodels.fm_metamodel.transformations import UVLReader
from flamapy.metamodels.dnnf_metamodel.transformations import FmToDDNNF
from flamapy.metamodels.dnnf_metamodel.operations import DDNNFConfigurationsNumber

fm = UVLReader('model.uvl').transform()
dnnf_model = FmToDDNNF(fm).transform()          # add compile=True to also dump the d-DNNF file
count = DDNNFConfigurationsNumber().execute(dnnf_model).get_result()

License

GPL-3.0-or-later.

Metadata

Release files for flamapy-dnnf 2.9.0.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flamapy-dnnf 2.9.0.dev0
File Size Uploaded Provenance Actions
flamapy_dnnf-2.9.0.dev0.tar.gz 11.0 kB Without provenance Details for flamapy_dnnf-2.9.0.dev0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flamapy-dnnf 2.9.0.dev0
File Interpreter ABI Platform Actions
flamapy_dnnf-2.9.0.dev0-py3-none-any.whl Python 3 none any Details for flamapy_dnnf-2.9.0.dev0-py3-none-any.whl

Total release size: 22.4 kB

Release files / flamapy_dnnf-2.9.0.dev0.tar.gz

Download URL flamapy_dnnf-2.9.0.dev0.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
60221aa34e48e0576e8ed5fe13b59928af266469096b99bab660e06dbcd767ee
BLAKE2b-256 checksum
How to use checksums
fe5065da92f88f9bec00cec3c1f9917b9c855b19c1a0c7281d6902b20ee32032
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / flamapy_dnnf-2.9.0.dev0-py3-none-any.whl

Download URL flamapy_dnnf-2.9.0.dev0-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af0de55d4b3837a6f171a454b7fd1c3b1e6a7357f9fe73d0052a693429ed9d0d
BLAKE2b-256 checksum
How to use checksums
894b9689b10aab9c9ea030687a50f4ee0e94aa680a1d5df96ed2c105b5a45063
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for flamapy-dnnf 2.9.0.dev0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page