toysolver-0.8.1: Assorted decision procedures for SAT, SMT, Max-SAT, PB, MIP, etc
Copyright(c) Masahiro Sakai 2012
LicenseBSD-style
Maintainermasahiro.sakai@gmail.com
Stabilityprovisional
Portabilitynon-portable
Safe HaskellSafe-Inferred
LanguageHaskell2010
Extensions
  • MonoLocalBinds
  • TypeFamilies
  • KindSignatures
  • ExplicitNamespaces

ToySolver.SAT.Encoder.Integer

Description

 

Documentation

newtype Expr Source #

Constructors

Expr PBSum 

Instances

Instances details
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 #

Eq Expr Source # 
Instance details

Defined in ToySolver.SAT.Encoder.Integer

Methods

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

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

AdditiveGroup Expr Source # 
Instance details

Defined in ToySolver.SAT.Encoder.Integer

Methods

zeroV :: Expr #

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

negateV :: Expr -> Expr #

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

VectorSpace Expr Source # 
Instance details

Defined in ToySolver.SAT.Encoder.Integer

Associated Types

type Scalar Expr #

Methods

(*^) :: Scalar 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 #