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

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

ToySolver.Arith.LPSolverHL

Description

High-Level API for LPSolver.hs

Synopsis

Documentation

data OptResult r Source

results of optimization

Constructors

OptUnsat 
Unbounded 
Optimum r (Model r) 

Instances

Eq r => Eq (OptResult r) 
Ord r => Ord (OptResult r) 
Show r => Show (OptResult r) 

minimize :: RealFrac r => Expr r -> [Atom r] -> OptResult r Source

maximize :: RealFrac r => Expr r -> [Atom r] -> OptResult r Source

optimize :: RealFrac r => OptDir -> Expr r -> [Atom r] -> OptResult r Source

solve :: RealFrac r => [Atom r] -> Maybe (Model r) Source