Infrared
|
Cluster tree base class. More...
Public Member Functions | |
__init__ (self, model, td, EvaluationAlgebra) | |
evaluate (self) | |
is_consistent (self) | |
construct_cluster_tree (self, domains, td) | |
Construct the cluster tree object of the C++ engine. | |
get_bag_assignments (self) | |
Get assignments of functions and constraints to the bags. | |
find_all_bags (self, bvars) | |
Get the indices of all bags that contain a set of variables. | |
find_bag (self, bvars) | |
Find a bag that contains a set of variables. | |
assign_to_bags (self, constraints) | |
assign constraints or functions to bags | |
assign_to_all_bags (self, constraints) | |
assign constraints or functions to all possible bags | |
Protected Attributes | |
_model | |
_td | |
_EA | |
_bagsets | |
Cluster tree base class.
This class provides functionality to construct and populate C++ cluster trees with constraints and functions.
It is used as base of the specialized cluster tree classes, which wrap interface the C++/libinfrared cluster tree classes.
infrared.infrared.ClusterTreeBase.__init__ | ( | self, | |
model, | |||
td, | |||
EvaluationAlgebra | |||
) |
Reimplemented in infrared.infrared.PFClusterTree, and infrared.infrared.ArcticClusterTree.
infrared.infrared.ClusterTreeBase.assign_to_all_bags | ( | self, | |
constraints | |||
) |
assign constraints or functions to all possible bags
Assigns constraint/function is to each bags that contains its dependencies.
constraints | list of constraints |
infrared.infrared.ClusterTreeBase.assign_to_bags | ( | self, | |
constraints | |||
) |
assign constraints or functions to bags
Assigns such that each constraint/function is assigned to exactly one bag that contains its dependencies
constraints | list of constraints |
infrared.infrared.ClusterTreeBase.construct_cluster_tree | ( | self, | |
domains, | |||
td | |||
) |
Construct the cluster tree object of the C++ engine.
domains | description of the domains |
td | tree decomposition |
infrared.infrared.ClusterTreeBase.evaluate | ( | self | ) |
infrared.infrared.ClusterTreeBase.find_all_bags | ( | self, | |
bvars | |||
) |
Get the indices of all bags that contain a set of variables.
bvars | the set of variables |
infrared.infrared.ClusterTreeBase.find_bag | ( | self, | |
bvars | |||
) |
Find a bag that contains a set of variables.
bvars | the set of variables |
infrared.infrared.ClusterTreeBase.get_bag_assignments | ( | self | ) |
Get assignments of functions and constraints to the bags.
straightforward non-redundant assignment of constraints and functions, each to some bag that contains all of their variables assumes constraints and functions specified in self._model
infrared.infrared.ClusterTreeBase.is_consistent | ( | self | ) |
|
protected |
|
protected |
|
protected |
|
protected |