toysolver-0.6.0: Assorted decision procedures for SAT, SMT, Max-SAT, PB, MIP, etc

Safe HaskellNone
LanguageHaskell2010

ToySolver.SAT.Encoder.Integer

Documentation

newtype Expr Source #

Constructors

Expr PBSum 
Instances
Eq Expr Source # 
Instance details

Defined in ToySolver.SAT.Encoder.Integer

Methods

(==) :: Expr -> Expr -> Bool #

(/=) :: Expr -> Expr -> Bool #

Num Expr Source # 
Instance details

Defined in ToySolver.SAT.Encoder.Integer

Methods

(+) :: Expr -> Expr -> Expr #

(-) :: Expr -> Expr -> Expr #

(*) :: Expr -> Expr -> Expr #

negate :: Expr -> Expr #

abs :: Expr -> Expr #

signum :: Expr -> Expr #

fromInteger :: Integer -> Expr #

Read Expr Source # 
Instance details

Defined in ToySolver.SAT.Encoder.Integer

Show Expr Source # 
Instance details

Defined in ToySolver.SAT.Encoder.Integer

Methods

showsPrec :: Int -> Expr -> ShowS #

show :: Expr -> String #

showList :: [Expr] -> ShowS #

VectorSpace Expr Source # 
Instance details

Defined in ToySolver.SAT.Encoder.Integer

Associated Types

type Scalar Expr :: Type #

Methods

(*^) :: Scalar Expr -> Expr -> Expr #

AdditiveGroup Expr Source # 
Instance details

Defined in ToySolver.SAT.Encoder.Integer

Methods

zeroV :: Expr #

(^+^) :: Expr -> Expr -> Expr #

negateV :: Expr -> Expr #

(^-^) :: Expr -> Expr -> Expr #

type Scalar Expr Source # 
Instance details

Defined in ToySolver.SAT.Encoder.Integer

newVar :: AddPBNL m enc => enc -> Integer -> Integer -> m Expr Source #

addConstraint :: AddPBNL m enc => enc -> OrdRel Expr -> m () Source #

addConstraintSoft :: AddPBNL m enc => enc -> Lit -> OrdRel Expr -> m () Source #

eval :: IModel m => m -> Expr -> Integer Source #