glpk-hs-0.3.4: Comprehensive GLPK linear programming bindings

Safe HaskellNone

Data.LinearProgram.LinExpr

Documentation

data LinExpr v c Source

Constructors

LinExpr (LinFunc v c) c 

Instances

(Ring r, Group (LinExpr v c), Ord v, Module r c) => Module r (LinExpr v c) 
(Eq v, Eq c) => Eq (LinExpr v c) 
(Ord v, Read v, Read c) => Read (LinExpr v c) 
(Show v, Show c) => Show (LinExpr v c) 
(Ord v, Group c) => Group (LinExpr v c) 

solve :: (Ord v, Eq c, VectorSpace c c) => [(LinFunc v c, c)] -> Maybe (Map v (LinExpr v c))Source

substituteExpr :: (Ord v, Module c c) => v -> LinExpr v c -> LinExpr v c -> LinExpr v cSource

simplifyExpr :: (Ord v, Module c c) => LinExpr v c -> Map v (LinExpr v c) -> LinExpr v cSource