glpk-hs-0.5: Comprehensive GLPK linear programming bindings

Safe HaskellNone
LanguageHaskell98

Data.LinearProgram.GLPK.IO

Description

Bindings to the file I/O functions from GLPK, on the CPLEX LP file format.

Synopsis

Documentation

readLP :: (Ord v, Read v, Fractional c) => FilePath -> IO (LP v c) Source #

Read a linear program from a file in CPLEX LP format. Warning: this will not necessarily succeed on all files generated by writeLP, as variable names may be changed.

readLP' :: FilePath -> IO (LP String Double) Source #

Read a linear program from a file in CPLEX LP format.

writeLP :: (Ord v, Show v, Real c) => FilePath -> LP v c -> IO () Source #

Write a linear program to a file in CPLEX LP format.