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

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

Built distribution (wheel)

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

Total release size: 22.4 kB

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

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

Download URL flamapy_dnnf-2.9.0.dev2-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9674640eeb973a3a85ba36616b3d6243805c5fa35cacff1afca39d272c98bd4b
BLAKE2b-256 checksum
How to use checksums
2b6e74153d666fb5163893641ba2759e4794c80af9903723f1dd086930bfb077
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.dev2

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