-
Notifications
You must be signed in to change notification settings - Fork 18
/
glpk-hs.cabal
62 lines (57 loc) · 2.55 KB
/
glpk-hs.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Name: glpk-hs
Version: 0.8
Author: Louis Wasserman
License: BSD3
License-file: LICENSE
Maintainer: Jean-Philippe Bernardy <[email protected]>
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