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.dev3

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

Built distribution (wheel)

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

Total release size: 22.4 kB

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

Download URL flamapy_dnnf-2.9.0.dev3.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9a0154b72ae3f5b7271fcc1429090e4ed46cbccf27711d2fcd7245cd0348070b
BLAKE2b-256 checksum
How to use checksums
00717929634bf30c4f00e12710ecdd3ef86130376335c1155d75700e9c71932a
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.dev3-py3-none-any.whl

Download URL flamapy_dnnf-2.9.0.dev3-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
990def76ad61628973d8f963b75800b199ebaaba9f61e717ddd6b2e96c89b4ce
BLAKE2b-256 checksum
How to use checksums
7573f0a7820f837f19f768920325d05dfa52a5756f2f54533e3e83710e146a18
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.dev3

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