| Copyright | (c) Masahiro Sakai 2012 |
|---|---|
| License | BSD-style |
| Maintainer | masahiro.sakai@gmail.com |
| Stability | provisional |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
| Extensions |
|
ToySolver.SAT.Encoder.Integer
Description
Synopsis
- newtype Expr = Expr PBSum
- newVar :: AddPBNL m enc => enc -> Integer -> Integer -> m Expr
- newVarPBLinSum :: AddPBNL m enc => enc -> Integer -> m PBLinSum
- linearize :: PrimMonad m => Encoder m -> Expr -> m (PBLinSum, Integer)
- addConstraint :: AddPBNL m enc => enc -> OrdRel Expr -> m ()
- addConstraintSoft :: AddPBNL m enc => enc -> Lit -> OrdRel Expr -> m ()
- eval :: IModel m => m -> Expr -> Integer