packages feed

glpk-hs-0.7: glpk-hs.cabal

Name:           glpk-hs
Version:        0.7
Author:         Louis Wasserman
License:        BSD3
License-file:   LICENSE
Maintainer:     Jean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>
Stability:      experimental
Synopsis:       Comprehensive GLPK linear programming bindings
Description:
    Friendly interface to GLPK's linear programming and mixed integer programming features.  Intended for easy extensibility,
    with a general, pure-Haskell representation of linear programs.  Also includes usefully general algebraic structures.
    
    To design a linear programming problem, 
    use "Control.Monad.LPMonad" to construct the constraints and specifications.  Linear functions are essentially specified
    as @Data.Map@s from variables to their coefficients, and functions for manipulating them are available in "Data.LinearProgram.LinExpr".
    Then "Data.LinearProgram.GLPK" provides facilities for using the GLPK solver system on your problem, with a sizable number
    of options available.

Category:      Math
cabal-version: 1.12
build-type:    Simple

source-repository head
  type: git
  location: https://github.com/jyp/glpk-hs

executable glpk-hs-example
  main-is:          examples/example1.hs
  build-depends:    base >= 4 && < 5, array, containers, mtl, deepseq, gasp, glpk-hs
  ghc-options:      -O2 -Wall
  default-language: Haskell2010

library
  default-language: Haskell2010
  Build-Depends:    base >= 4 && < 5, array, containers, mtl, deepseq, gasp >= 1.2
  Exposed-modules:  Data.LinearProgram,
                    Data.LinearProgram.Common,
                    Data.LinearProgram.LinExpr,
                    Data.LinearProgram.GLPK,
                    Data.LinearProgram.GLPK.Solver,
                    Data.LinearProgram.GLPK.IO,
                    Control.Monad.LPMonad,
                    Control.Monad.LPMonad.Supply,
                    Control.Monad.LPMonad.Supply.Class
  Other-modules:    Data.LinearProgram.GLPK.Internal,	
                    Data.LinearProgram.GLPK.Types,
                    Data.LinearProgram.GLPK.Common,
                    Data.LinearProgram.GLPK.IO.Internal,
                    Control.Monad.LPMonad.Internal,
                    Data.LinearProgram.Spec,
                    Data.LinearProgram.Types
  hs-source-dirs:   src
  c-sources:        glpk/glpk.c
  extra-libraries:  glpk
  if os(OSX)
      extra-lib-dirs: /usr/lib
      extra-lib-dirs: /opt/local/lib/
      include-dirs: /opt/local/include/
      extra-lib-dirs: /usr/local/lib/
      include-dirs: /usr/local/include/
      if arch(i386)
          cc-options: -arch i386