glpk-headers-0.4.1: Low-level Haskell bindings to GLPK.

Safe HaskellNone
LanguageHaskell2010

Math.Programming.Glpk.Header

Contents

Description

Low-level bindings to the GLPK library.

Functions and enums wrapped directly from glpk.h are undocumented; refer to the official documentation distributed with GLPK for details.

Synopsis

Helper types

Control parameters

These structures wrap the low-level control structures used to change the behavior of various solver functions. You will likely want to utilize these.

data BasisFactorizationControlParameters Source #

Instances
Eq BasisFactorizationControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show BasisFactorizationControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Generic BasisFactorizationControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable BasisFactorizationControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

type Rep BasisFactorizationControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

type Rep BasisFactorizationControlParameters = D1 (MetaData "BasisFactorizationControlParameters" "Math.Programming.Glpk.Header" "glpk-headers-0.4.1-inplace" False) (C1 (MetaCons "BasisFactorizationControlParameters" PrefixI True) (((S1 (MetaSel (Just "bfcpMessageLevel") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused GlpkMessageLevel)) :*: (S1 (MetaSel (Just "bfcpType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkFactorizationType) :*: S1 (MetaSel (Just "bfcpLUSize") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused CInt)))) :*: (S1 (MetaSel (Just "bfcpPivotTolerance") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CDouble) :*: (S1 (MetaSel (Just "bfcpPivotLimit") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CInt) :*: S1 (MetaSel (Just "bfcpSuhl") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkControl)))) :*: ((S1 (MetaSel (Just "bfcpEpsilonTolerance") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CDouble) :*: (S1 (MetaSel (Just "bfcpMaxGro") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused CDouble)) :*: S1 (MetaSel (Just "bfcpNfsMax") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CInt))) :*: ((S1 (MetaSel (Just "bfcpUpdateTolerance") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused CDouble)) :*: S1 (MetaSel (Just "bfcpNrsMax") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CInt)) :*: (S1 (MetaSel (Just "bfcpRsSize") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused CInt)) :*: S1 (MetaSel (Just "bfcpFooBar") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused (FixedLengthArray BfcpFooBar CDouble))))))))

data SimplexMethodControlParameters Source #

Instances
Eq SimplexMethodControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show SimplexMethodControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Generic SimplexMethodControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Associated Types

type Rep SimplexMethodControlParameters :: Type -> Type #

GStorable SimplexMethodControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

type Rep SimplexMethodControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

type Rep SimplexMethodControlParameters = D1 (MetaData "SimplexMethodControlParameters" "Math.Programming.Glpk.Header" "glpk-headers-0.4.1-inplace" False) (C1 (MetaCons "SimplexMethodControlParameters" PrefixI True) ((((S1 (MetaSel (Just "smcpMessageLevel") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkMessageLevel) :*: S1 (MetaSel (Just "smcpMethod") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkSimplexMethod)) :*: (S1 (MetaSel (Just "smcpPricing") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkPricing) :*: S1 (MetaSel (Just "smcpRatioTest") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkRatioTest))) :*: ((S1 (MetaSel (Just "smcpPrimalFeasibilityTolerance") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double) :*: S1 (MetaSel (Just "smcpDualFeasibilityTolerance") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double)) :*: (S1 (MetaSel (Just "smcpPivotTolerance") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double) :*: (S1 (MetaSel (Just "smcpLowerObjectiveLimit") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double) :*: S1 (MetaSel (Just "smcpUpperObjectiveLimit") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double))))) :*: (((S1 (MetaSel (Just "smcpIterationLimit") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CInt) :*: S1 (MetaSel (Just "smcpTimeLimitMillis") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CInt)) :*: (S1 (MetaSel (Just "smcpOutputFrequencyMillis") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CInt) :*: S1 (MetaSel (Just "smcpOutputDelayMillis") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CInt))) :*: ((S1 (MetaSel (Just "smcpPresolve") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkPresolve) :*: S1 (MetaSel (Just "smcpExcl") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused CInt))) :*: (S1 (MetaSel (Just "smcpShift") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused CInt)) :*: (S1 (MetaSel (Just "smcpAOrN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused CInt)) :*: S1 (MetaSel (Just "smcpFooBar") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused (FixedLengthArray SmcpFooBar CDouble)))))))))

data InteriorPointControlParameters Source #

Instances
Eq InteriorPointControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show InteriorPointControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Generic InteriorPointControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Associated Types

type Rep InteriorPointControlParameters :: Type -> Type #

GStorable InteriorPointControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

type Rep InteriorPointControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

type Rep InteriorPointControlParameters = D1 (MetaData "InteriorPointControlParameters" "Math.Programming.Glpk.Header" "glpk-headers-0.4.1-inplace" False) (C1 (MetaCons "InteriorPointControlParameters" PrefixI True) (S1 (MetaSel (Just "iptcpMessageLevel") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkMessageLevel) :*: (S1 (MetaSel (Just "iptcpOrderingAlgorithm") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkPreCholeskyOrdering) :*: S1 (MetaSel (Just "iptcpFooBar") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused (FixedLengthArray IptcpFooBar CDouble))))))

data MIPControlParameters a Source #

Instances
Eq (MIPControlParameters a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show (MIPControlParameters a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Generic (MIPControlParameters a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Associated Types

type Rep (MIPControlParameters a) :: Type -> Type #

GStorable (MIPControlParameters a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

type Rep (MIPControlParameters a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

type Rep (MIPControlParameters a) = D1 (MetaData "MIPControlParameters" "Math.Programming.Glpk.Header" "glpk-headers-0.4.1-inplace" False) (C1 (MetaCons "MIPControlParameters" PrefixI True) ((((S1 (MetaSel (Just "iocpMessageLevel") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkMessageLevel) :*: (S1 (MetaSel (Just "iocpBranchingTechnique") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkBranchingTechnique) :*: S1 (MetaSel (Just "iocpBacktrackingTechnique") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkBacktrackingTechnique))) :*: ((S1 (MetaSel (Just "iocpAbsoluteFeasibilityTolerance") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CDouble) :*: S1 (MetaSel (Just "iocpRelativeObjectiveTolerance") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CDouble)) :*: (S1 (MetaSel (Just "iocpTimeLimitMillis") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CInt) :*: S1 (MetaSel (Just "iocpOutputFrequencyMillis") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CInt)))) :*: ((S1 (MetaSel (Just "iocpOutputDelayMillis") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CInt) :*: (S1 (MetaSel (Just "iocpCallback") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (FunPtr (Ptr (GlpkTree a) -> Ptr a -> IO ()))) :*: S1 (MetaSel (Just "iocpNodeData") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Ptr a)))) :*: ((S1 (MetaSel (Just "iocpNodeDataSize") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CInt) :*: S1 (MetaSel (Just "iocpPreprocessingTechnique") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkPreProcessingTechnique)) :*: (S1 (MetaSel (Just "iocpRelativeMIPGap") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CDouble) :*: S1 (MetaSel (Just "iocpMIRCuts") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkMIRCuts))))) :*: (((S1 (MetaSel (Just "iocpGormoryCuts") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkGomoryCuts) :*: (S1 (MetaSel (Just "iocpCoverCuts") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkCoverCuts) :*: S1 (MetaSel (Just "iocpCliqueCuts") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkCliqueCuts))) :*: ((S1 (MetaSel (Just "iocpPresolve") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkPresolve) :*: S1 (MetaSel (Just "iocpBinarization") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkBinarization)) :*: (S1 (MetaSel (Just "iocpFeasibilityPump") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkFeasibilityPump) :*: S1 (MetaSel (Just "iocpProximitySearch") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkProximitySearch)))) :*: ((S1 (MetaSel (Just "iocpProximityTimeLimitMillis") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CInt) :*: (S1 (MetaSel (Just "iocpSimpleRounding") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GlpkSimpleRounding) :*: S1 (MetaSel (Just "iocpUseExistingSolution") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused CInt)))) :*: ((S1 (MetaSel (Just "iocpNewSolutionFileName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused (Ptr CChar))) :*: S1 (MetaSel (Just "iocpUseAlienSolver") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused CInt))) :*: (S1 (MetaSel (Just "iocpUseLongStepDual") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused CInt)) :*: S1 (MetaSel (Just "iocpFooBar") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused (FixedLengthArray IocpFooBar CDouble)))))))))

data MPSControlParameters Source #

Instances
Eq MPSControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show MPSControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Generic MPSControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Associated Types

type Rep MPSControlParameters :: Type -> Type #

GStorable MPSControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

type Rep MPSControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

type Rep MPSControlParameters = D1 (MetaData "MPSControlParameters" "Math.Programming.Glpk.Header" "glpk-headers-0.4.1-inplace" False) (C1 (MetaCons "MPSControlParameters" PrefixI True) ((S1 (MetaSel (Just "mpscpBlank") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CInt) :*: S1 (MetaSel (Just "mpscpObjectiveName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CString)) :*: (S1 (MetaSel (Just "mpscpZeroTolerance") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CDouble) :*: S1 (MetaSel (Just "mpscpFooBar") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused (FixedLengthArray MpscpFooBar CDouble))))))

data CplexLPFormatControlParameters Source #

Instances
Eq CplexLPFormatControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show CplexLPFormatControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Generic CplexLPFormatControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Associated Types

type Rep CplexLPFormatControlParameters :: Type -> Type #

GStorable CplexLPFormatControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

type Rep CplexLPFormatControlParameters Source # 
Instance details

Defined in Math.Programming.Glpk.Header

type Rep CplexLPFormatControlParameters = D1 (MetaData "CplexLPFormatControlParameters" "Math.Programming.Glpk.Header" "glpk-headers-0.4.1-inplace" False) (C1 (MetaCons "CplexLPFormatControlParameters" PrefixI True) (S1 (MetaSel (Just "cpxcpFooBar") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Unused (FixedLengthArray CpxcpFooBar CDouble)))))

data GlpkCutAttribute Source #

Instances
Eq GlpkCutAttribute Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkCutAttribute Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Generic GlpkCutAttribute Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Associated Types

type Rep GlpkCutAttribute :: Type -> Type #

GStorable GlpkCutAttribute Source # 
Instance details

Defined in Math.Programming.Glpk.Header

type Rep GlpkCutAttribute Source # 
Instance details

Defined in Math.Programming.Glpk.Header

newtype GlpkUserCutType Source #

Constructors

GlpkUserCutType 
Instances
Enum GlpkUserCutType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Eq GlpkUserCutType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkUserCutType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkUserCutType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkUserCutType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkUserCutType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GLPK arrays

GLPK uses a 1-based indexing for arrays. This is accomplished by ignoring the 0th entry.

newtype GlpkArray a Source #

An array whose data begins at index 1

Constructors

GlpkArray 

Fields

Instances
Eq (GlpkArray a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

(==) :: GlpkArray a -> GlpkArray a -> Bool #

(/=) :: GlpkArray a -> GlpkArray a -> Bool #

Ord (GlpkArray a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show (GlpkArray a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable (GlpkArray a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

sizeOf :: GlpkArray a -> Int #

alignment :: GlpkArray a -> Int #

peekElemOff :: Ptr (GlpkArray a) -> Int -> IO (GlpkArray a) #

pokeElemOff :: Ptr (GlpkArray a) -> Int -> GlpkArray a -> IO () #

peekByteOff :: Ptr b -> Int -> IO (GlpkArray a) #

pokeByteOff :: Ptr b -> Int -> GlpkArray a -> IO () #

peek :: Ptr (GlpkArray a) -> IO (GlpkArray a) #

poke :: Ptr (GlpkArray a) -> GlpkArray a -> IO () #

mallocGlpkArray :: Storable a => [a] -> IO (GlpkArray a) Source #

Create a new GlpkArray.

allocaGlpkArray :: Storable a => [a] -> (GlpkArray a -> IO b) -> IO b Source #

Run a computation with a temporary GlpkArray.

initGlpkArray :: Storable a => [a] -> Ptr a -> IO (GlpkArray a) Source #

Set the contents of a GlpkArray from a list.

class FixedLength a where Source #

The class of arrays of fixed length.

Methods

fixedLength :: a -> Int Source #

newtype FixedLengthArray a b Source #

A type representing fixed-length array members of structs.

Constructors

FixedLengthArray 

Fields

Instances
Eq b => Eq (FixedLengthArray a b) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord b => Ord (FixedLengthArray a b) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read b => Read (FixedLengthArray a b) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show b => Show (FixedLengthArray a b) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

(FixedLength a, Storable b) => GStorable (FixedLengthArray a b) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Low-level and phantom types

newtype GlpkInt a Source #

Wrapper around CInt values, tagged with a phantom type to help track what it refers to.

Constructors

GlpkInt 

Fields

Instances
Enum (GlpkInt a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

succ :: GlpkInt a -> GlpkInt a #

pred :: GlpkInt a -> GlpkInt a #

toEnum :: Int -> GlpkInt a #

fromEnum :: GlpkInt a -> Int #

enumFrom :: GlpkInt a -> [GlpkInt a] #

enumFromThen :: GlpkInt a -> GlpkInt a -> [GlpkInt a] #

enumFromTo :: GlpkInt a -> GlpkInt a -> [GlpkInt a] #

enumFromThenTo :: GlpkInt a -> GlpkInt a -> GlpkInt a -> [GlpkInt a] #

Eq (GlpkInt a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

(==) :: GlpkInt a -> GlpkInt a -> Bool #

(/=) :: GlpkInt a -> GlpkInt a -> Bool #

Integral (GlpkInt a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

quot :: GlpkInt a -> GlpkInt a -> GlpkInt a #

rem :: GlpkInt a -> GlpkInt a -> GlpkInt a #

div :: GlpkInt a -> GlpkInt a -> GlpkInt a #

mod :: GlpkInt a -> GlpkInt a -> GlpkInt a #

quotRem :: GlpkInt a -> GlpkInt a -> (GlpkInt a, GlpkInt a) #

divMod :: GlpkInt a -> GlpkInt a -> (GlpkInt a, GlpkInt a) #

toInteger :: GlpkInt a -> Integer #

Num (GlpkInt a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

(+) :: GlpkInt a -> GlpkInt a -> GlpkInt a #

(-) :: GlpkInt a -> GlpkInt a -> GlpkInt a #

(*) :: GlpkInt a -> GlpkInt a -> GlpkInt a #

negate :: GlpkInt a -> GlpkInt a #

abs :: GlpkInt a -> GlpkInt a #

signum :: GlpkInt a -> GlpkInt a #

fromInteger :: Integer -> GlpkInt a #

Ord (GlpkInt a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

compare :: GlpkInt a -> GlpkInt a -> Ordering #

(<) :: GlpkInt a -> GlpkInt a -> Bool #

(<=) :: GlpkInt a -> GlpkInt a -> Bool #

(>) :: GlpkInt a -> GlpkInt a -> Bool #

(>=) :: GlpkInt a -> GlpkInt a -> Bool #

max :: GlpkInt a -> GlpkInt a -> GlpkInt a #

min :: GlpkInt a -> GlpkInt a -> GlpkInt a #

Read (GlpkInt a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Real (GlpkInt a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

toRational :: GlpkInt a -> Rational #

Show (GlpkInt a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

showsPrec :: Int -> GlpkInt a -> ShowS #

show :: GlpkInt a -> String #

showList :: [GlpkInt a] -> ShowS #

Storable (GlpkInt a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

sizeOf :: GlpkInt a -> Int #

alignment :: GlpkInt a -> Int #

peekElemOff :: Ptr (GlpkInt a) -> Int -> IO (GlpkInt a) #

pokeElemOff :: Ptr (GlpkInt a) -> Int -> GlpkInt a -> IO () #

peekByteOff :: Ptr b -> Int -> IO (GlpkInt a) #

pokeByteOff :: Ptr b -> Int -> GlpkInt a -> IO () #

peek :: Ptr (GlpkInt a) -> IO (GlpkInt a) #

poke :: Ptr (GlpkInt a) -> GlpkInt a -> IO () #

data Problem Source #

A phantom type representing a problem in GLPK.

data GlpkColumn Source #

Phantom type used to denote data as being a column.

data GlpkRow Source #

Phantom type used to denote data as being a row.

data GlpkNodeIndex Source #

Phantom type used to denote data as being a node index.

data GlpkTree a Source #

Phantom type indicating the data stored in MIP callbacks.

data MathProgWorkspace Source #

Phantom type used to denote pointers to workspaces.

type Row = GlpkInt GlpkRow Source #

Convenient alias for rows.

type Column = GlpkInt GlpkColumn Source #

Convenient alias for columns.

newtype MathProgResult Source #

Constructors

MathProgResult 
Instances
Enum MathProgResult Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Eq MathProgResult Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord MathProgResult Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read MathProgResult Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show MathProgResult Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable MathProgResult Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Undocumented and unused structures

newtype Unused a Source #

A type used to represent an unused or undocumented struct member.

Constructors

Unused 

Fields

Instances
Enum a => Enum (Unused a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

succ :: Unused a -> Unused a #

pred :: Unused a -> Unused a #

toEnum :: Int -> Unused a #

fromEnum :: Unused a -> Int #

enumFrom :: Unused a -> [Unused a] #

enumFromThen :: Unused a -> Unused a -> [Unused a] #

enumFromTo :: Unused a -> Unused a -> [Unused a] #

enumFromThenTo :: Unused a -> Unused a -> Unused a -> [Unused a] #

Eq a => Eq (Unused a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

(==) :: Unused a -> Unused a -> Bool #

(/=) :: Unused a -> Unused a -> Bool #

Ord a => Ord (Unused a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

compare :: Unused a -> Unused a -> Ordering #

(<) :: Unused a -> Unused a -> Bool #

(<=) :: Unused a -> Unused a -> Bool #

(>) :: Unused a -> Unused a -> Bool #

(>=) :: Unused a -> Unused a -> Bool #

max :: Unused a -> Unused a -> Unused a #

min :: Unused a -> Unused a -> Unused a #

Read a => Read (Unused a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show a => Show (Unused a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

showsPrec :: Int -> Unused a -> ShowS #

show :: Unused a -> String #

showList :: [Unused a] -> ShowS #

Storable a => Storable (Unused a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

sizeOf :: Unused a -> Int #

alignment :: Unused a -> Int #

peekElemOff :: Ptr (Unused a) -> Int -> IO (Unused a) #

pokeElemOff :: Ptr (Unused a) -> Int -> Unused a -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Unused a) #

pokeByteOff :: Ptr b -> Int -> Unused a -> IO () #

peek :: Ptr (Unused a) -> IO (Unused a) #

poke :: Ptr (Unused a) -> Unused a -> IO () #

GStorable a => GStorable (Unused a) Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Methods

gsizeOf :: Unused a -> Int #

galignment :: Unused a -> Int #

gpeekByteOff :: Ptr b -> Int -> IO (Unused a) #

gpokeByteOff :: Ptr b -> Int -> Unused a -> IO () #

GLPK API

Enums

data GlpkMajorVersion Source #

Instances
Eq GlpkMajorVersion Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkMajorVersion Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkMajorVersion Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkMajorVersion Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkMajorVersion Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkMinorVersion Source #

Instances
Eq GlpkMinorVersion Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkMinorVersion Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkMinorVersion Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkMinorVersion Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkMinorVersion Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkDirection Source #

Instances
Eq GlpkDirection Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkDirection Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkDirection Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkDirection Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkDirection Source # 
Instance details

Defined in Math.Programming.Glpk.Header

newtype GlpkVariableType Source #

Instances
Eq GlpkVariableType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkVariableType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkVariableType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkVariableType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkVariableType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkVariableType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkConstraintType Source #

Instances
Eq GlpkConstraintType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkConstraintType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkConstraintType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkConstraintType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkConstraintType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkVariableStatus Source #

Instances
Eq GlpkVariableStatus Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkVariableStatus Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkVariableStatus Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkVariableStatus Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkVariableStatus Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkScaling Source #

Instances
Eq GlpkScaling Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkScaling Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkScaling Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkScaling Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkScaling Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkSolutionType Source #

Instances
Eq GlpkSolutionType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkSolutionType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkSolutionType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkSolutionType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkSolutionType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkSolutionStatus Source #

Instances
Eq GlpkSolutionStatus Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkSolutionStatus Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkSolutionStatus Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkSolutionStatus Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkSolutionStatus Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkMessageLevel Source #

Instances
Eq GlpkMessageLevel Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkMessageLevel Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkMessageLevel Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkMessageLevel Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkMessageLevel Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkMessageLevel Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkSimplexMethod Source #

Instances
Eq GlpkSimplexMethod Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkSimplexMethod Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkSimplexMethod Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkSimplexMethod Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkSimplexMethod Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkSimplexMethod Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkPricing Source #

Instances
Eq GlpkPricing Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkPricing Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkPricing Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkPricing Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkPricing Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkPricing Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkRatioTest Source #

Instances
Eq GlpkRatioTest Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkRatioTest Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkRatioTest Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkRatioTest Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkRatioTest Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkRatioTest Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkPreCholeskyOrdering Source #

Instances
Eq GlpkPreCholeskyOrdering Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkPreCholeskyOrdering Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkPreCholeskyOrdering Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkPreCholeskyOrdering Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkPreCholeskyOrdering Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkPreCholeskyOrdering Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkBranchingTechnique Source #

Instances
Eq GlpkBranchingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkBranchingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkBranchingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkBranchingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkBranchingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkBranchingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkBacktrackingTechnique Source #

Instances
Eq GlpkBacktrackingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkBacktrackingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkBacktrackingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkBacktrackingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkBacktrackingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkBacktrackingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkPreProcessingTechnique Source #

Instances
Eq GlpkPreProcessingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkPreProcessingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkPreProcessingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkPreProcessingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkPreProcessingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkPreProcessingTechnique Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkFeasibilityPump Source #

Instances
Eq GlpkFeasibilityPump Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkFeasibilityPump Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkFeasibilityPump Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkFeasibilityPump Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkFeasibilityPump Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkFeasibilityPump Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkProximitySearch Source #

Instances
Eq GlpkProximitySearch Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkProximitySearch Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkProximitySearch Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkProximitySearch Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkProximitySearch Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkProximitySearch Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkGomoryCuts Source #

Instances
Eq GlpkGomoryCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkGomoryCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkGomoryCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkGomoryCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkGomoryCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkGomoryCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkMIRCuts Source #

Instances
Eq GlpkMIRCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkMIRCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkMIRCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkMIRCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkMIRCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkMIRCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkCoverCuts Source #

Instances
Eq GlpkCoverCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkCoverCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkCoverCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkCoverCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkCoverCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkCoverCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkCliqueCuts Source #

Instances
Eq GlpkCliqueCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkCliqueCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkCliqueCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkCliqueCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkCliqueCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkCliqueCuts Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkPresolve Source #

Instances
Eq GlpkPresolve Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkPresolve Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkPresolve Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkPresolve Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkPresolve Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkPresolve Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkBinarization Source #

Instances
Eq GlpkBinarization Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkBinarization Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkBinarization Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkBinarization Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkBinarization Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkBinarization Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkSimpleRounding Source #

Instances
Eq GlpkSimpleRounding Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkSimpleRounding Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkSimpleRounding Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkSimpleRounding Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkSimpleRounding Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkSimpleRounding Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkConstraintOrigin Source #

Instances
Eq GlpkConstraintOrigin Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkConstraintOrigin Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkConstraintOrigin Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkConstraintOrigin Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkConstraintOrigin Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkConstraintOrigin Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkCutType Source #

Instances
Eq GlpkCutType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkCutType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkCutType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkCutType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkCutType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkCutType Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkControl Source #

Instances
Eq GlpkControl Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkControl Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkControl Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkControl Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkControl Source # 
Instance details

Defined in Math.Programming.Glpk.Header

GStorable GlpkControl Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkCallbackReason Source #

Instances
Eq GlpkCallbackReason Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkCallbackReason Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkCallbackReason Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkCallbackReason Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkCallbackReason Source # 
Instance details

Defined in Math.Programming.Glpk.Header

data GlpkBranchOption Source #

Instances
Eq GlpkBranchOption Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Ord GlpkBranchOption Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Read GlpkBranchOption Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Show GlpkBranchOption Source # 
Instance details

Defined in Math.Programming.Glpk.Header

Storable GlpkBranchOption Source # 
Instance details

Defined in Math.Programming.Glpk.Header