toysolver-0.3.0: Assorted decision procedures for SAT, Max-SAT, PB, MIP, etc
ToySolver.SAT.Integer
newtype 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