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

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

Built distribution (wheel)

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

Total release size: 22.4 kB

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

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

Download URL flamapy_dnnf-2.9.0.dev1-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91098319af53aa1d56ae52e4783973762405af864cb25a4543d966a116c5e8de
BLAKE2b-256 checksum
How to use checksums
f3b1f514a7936ea55df2911fd40adf09b03245b02c1eb571f1a5f625b8ac0540
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.dev1

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