pymdd.ixmdd module¶
-
class
pymdd.ixmdd.
IxInfo
(node, min_suffix=None, max_suffix=None, min_prefix=None, max_prefix=None)[source]¶ Bases:
object
IxInfo represents -ix information about a single MDDNode.
IxInfo reprsents prefix and suffix information about a single MDDNode.
Parameters:
-
class
pymdd.ixmdd.
IxMDD
(name='ixmdd', nodes=None)[source]¶ Bases:
pymdd.mdd.MDD
IxMDD is an MDD that maintains the optimal -ix at every node.
IxMDD is an extension of the MDD class that maintains the minimum and maximum prefix and suffix at every node.
Parameters: - name (str) – name of IxMDD (default: ‘ixmdd’)
- nodes (List[Dict[MDDNode, MDDNodeInfo]]) – nodes of MDD; if None (default), set to empty list
-
opt_ixpath
(ixType, node)[source]¶ Return optimal ix associate with node.
NOTE: This function returns an error if the total weight of the traversed path does not match the optimal ix weight of node. It also does not verify that the ixes are checked.
Parameters: Returns: optimal weight and ix path
Return type: Tuple[float, List[object]]
-
class
pymdd.ixmdd.
IxParam
(ixType, numNodeLayers)[source]¶ Bases:
object
IxParam stores parameters specific to each IxInfo.
IxParam stores parameters specific to each IxInfo.
Parameters: - ixType (str) – type of ixinfo
- numNodeLayers – current number of node layers in MDD
-
all_ix_types
= ('min_suffix', 'max_suffix', 'min_prefix', 'max_prefix')¶