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

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

ToySolver.Data.MIP

Contents

Description

Mixed-Integer Programming Problems with some commmonly used extensions

Synopsis

Documentation

type Expr = [Term] Source

expressions

data Term Source

terms

Constructors

Term Rational [Var] 

data OptDir :: *

The OptDir type represents optimization directions.

Constructors

OptMin

minimization

OptMax

maximization

type ObjectiveFunction = (Maybe Label, Expr) Source

objective function

type Bounds = (BoundExpr, BoundExpr) Source

type for representing lower/upper bound of variables

type Label = String Source

label

type Var = InternedString Source

variable

data VarInfo Source

Constructors

VarInfo 

data BoundExpr Source

type for representing lower/upper bound of variables

Constructors

NegInf 
Finite Rational 
PosInf 

data RelOp Source

relational operators

Constructors

Le 
Ge 
Eql 

data SOSType Source

types of SOS (special ordered sets) constraints

Constructors

S1

Type 1 SOS constraint

S2

Type 2 SOS constraint

data SOSConstraint Source

SOS (special ordered sets) constraints

Constructors

SOSConstraint 

defaultBounds :: Bounds Source

default bounds

defaultLB :: BoundExpr Source

default lower bound (0)

defaultUB :: BoundExpr Source

default upper bound (+∞)

toVar :: String -> Var Source

convert a string into a variable

fromVar :: Var -> String Source

convert a variable into a string

getVarInfo :: Problem -> Var -> VarInfo Source

looking up attributes for a variable

getVarType :: Problem -> Var -> VarType Source

looking up bounds for a variable

getBounds :: Problem -> Var -> Bounds Source

looking up bounds for a variable

Utilities