obdd-0.5.0: Ordered Reduced Binary Decision Diagrams
OBDD.Linopt
Synopsis
type Item v w = (w, [(v, Bool)]) Source #
linopt :: (Ord v, Num w, Ord w) => OBDD v -> Map v w -> Maybe (w, Map v Bool) Source #
solve the constrained linear optimisation problem: returns an assignment that is a model of the BDD and maximises the sum of weights of variables.
fill :: (Ord v, Num w) => Map v w -> v -> Item v w -> Item v w Source #
noadd :: (Ord v, Num w) => Map v w -> v -> Item v w -> Item v w Source #
add :: (Ord v, Num w) => Map v w -> v -> Item v w -> Item v w Source #