Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A GLPK backend to the Programming
library.
This package allows both linear and mixed-integer programs to be solved.
Synopsis
- type Glpk = GlpkT IO
- type GlpkVariable = GlpkPtr Column
- type GlpkConstraint = GlpkPtr Row
- data GlpkObjective
- runGlpk :: Glpk a -> IO a
- writeFormulation :: MonadGlpk m => FilePath -> m ()
- data GlpkT m a
- class (MonadLP GlpkVariable GlpkConstraint GlpkObjective m, MonadIP GlpkVariable GlpkConstraint GlpkObjective m) => MonadGlpk m
- data GlpkEnv
- data GlpkException
Documentation
type GlpkVariable = GlpkPtr Column Source #
A reference to a GLPK variable.
type GlpkConstraint = GlpkPtr Row Source #
A reference to a GLPK constraint.
data GlpkObjective Source #
A placeholder for an objective.
GLPK supports only single-objective problems, and so no indices need to be stored.
Instances
writeFormulation :: MonadGlpk m => FilePath -> m () Source #
An environment to solve math programs using GLPK.
Instances
class (MonadLP GlpkVariable GlpkConstraint GlpkObjective m, MonadIP GlpkVariable GlpkConstraint GlpkObjective m) => MonadGlpk m Source #
Instances
MonadGlpk Glpk Source # | |
Defined in Math.Programming.Glpk.Internal writeFormulation :: FilePath -> Glpk () Source # | |
MonadGlpk m => MonadGlpk (ReaderT r m) Source # | |
Defined in Math.Programming.Glpk.Internal writeFormulation :: FilePath -> ReaderT r m () Source # | |
MonadGlpk m => MonadGlpk (StateT s m) Source # | |
Defined in Math.Programming.Glpk.Internal writeFormulation :: FilePath -> StateT s m () Source # |
Controlling GLPK behavior
See the Header
package for Haskell wrappers
for all low-level GLPK operations.
An interface to the low-level GLPK API.
High-level solver settings can be modified by altering the
SimplexMethodControlParameters
and MIPControlParameters
values
for LP and IP solves, respectively.
data GlpkException Source #
An error that GLPK can encounter.
Instances
Exception GlpkException Source # | |
Defined in Math.Programming.Glpk.Internal | |
Show GlpkException Source # | |
Defined in Math.Programming.Glpk.Internal showsPrec :: Int -> GlpkException -> ShowS # show :: GlpkException -> String # showList :: [GlpkException] -> ShowS # |