toysolver-0.2.0: Assorted decision procedures for SAT, Max-SAT, PB, MIP, etc
ToySolver.SAT.Integer
data Expr Source
Constructors
Instances
newVar :: Solver -> Integer -> Integer -> IO Expr Source
linearize :: Encoder -> Expr -> IO (PBLinSum, Integer) Source
addConstraint :: Encoder -> ArithRel Expr -> IO () Source
addConstraintSoft :: Encoder -> Lit -> ArithRel Expr -> IO () Source
eval :: IModel m => m -> Expr -> Integer Source