Skip to main content

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

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
File Size Uploaded Provenance Actions
flamapy_dnnf-2.9.0.tar.gz 11.0 kB Without provenance Details for flamapy_dnnf-2.9.0.tar.gz

Built distribution (wheel)

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

Total release size: 22.4 kB

Release files / flamapy_dnnf-2.9.0.tar.gz

Download URL flamapy_dnnf-2.9.0.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3a53ae5cd8be8941d08a69504250e6c74767d89416cc1863bda654bea88845f0
BLAKE2b-256 checksum
How to use checksums
825a774a125732408d0c78737bc5b57343aad17d14adae44e0e7e4be484267e7
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-py3-none-any.whl

Download URL flamapy_dnnf-2.9.0-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db8c57cf9f7f03e5f2642e64573286f12987d596efaa9ab02c117e3654d1fb0f
BLAKE2b-256 checksum
How to use checksums
591cef1f7f72ccd2a9e6b10160f488d4c62e98c4975ed278e7369256106adffd
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

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