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

Copyright(c) Masahiro Sakai 2011-2013
LicenseBSD-style
Maintainermasahiro.sakai@gmail.com
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

ToySolver.FourierMotzkin.Core

Description

Naïve implementation of Fourier-Motzkin Variable Elimination

Reference:

Synopsis

Documentation

type Rat = (ExprZ, Integer) Source

(t,c) represents t/c, and c must be >0.

data Lit Source

Literal

Constructors

Nonneg ExprZ 
Pos ExprZ 

leR :: Rat -> Rat -> Lit Source

ltR :: Rat -> Rat -> Lit Source

geR :: Rat -> Rat -> Lit Source

gtR :: Rat -> Rat -> Lit Source

type BoundsR = ([Rat], [Rat], [Rat], [Rat]) Source