-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.yaml
142 lines (129 loc) · 3.45 KB
/
package.yaml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: MIP
version: 0.2.0.0
github: "msakai/haskell-MIP"
license: BSD3
author: "Masahiro Sakai"
maintainer: "masahiro.sakai@gmail.com"
copyright: "2020 Masahiro Sakai"
extra-source-files:
- README.md
- ChangeLog.md
- doc-images/MIP-Status-diagram.tex
extra-doc-files:
- doc-images/MIP-Status-diagram.png
# Metadata used when publishing your package
synopsis: Library for using Mixed Integer Programming (MIP)
category: Math, Algorithms, Optimisation, Optimization
# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description: Please see the README on GitHub at <https://github.com/msakai/haskell-MIP/tree/master/MIP#readme>
flags:
WithZlib:
description: Use zlib package to support gzipped files
default: True
manual: True
TestCBC:
description: run test cases that depend on cbc command
manual: True
default: False
TestCPLEX:
description: run test cases that depend on cplex command
manual: True
default: False
TestGlpsol:
description: run test cases that depend on glpsol command
manual: True
default: False
TestGurobiCl:
description: run test cases that depend on gurobi_cl command
manual: True
default: False
TestLPSolve:
description: run test cases that depend on lp_solve command
manual: True
default: False
TestSCIP:
description: run test cases that depend on scip command
manual: True
default: False
dependencies:
- base >=4.9 && <5
- containers >=0.5.0
- data-default-class
- lattices
library:
source-dirs: src
other-modules:
- Paths_MIP
- Numeric.Optimization.MIP.Internal.ProcessUtil
- Numeric.Optimization.MIP.Internal.Util
other-extensions:
- CPP
dependencies:
- extended-reals >=0.1 && <1.0
- filepath
- intern >=0.9.1.2 && <1.0.0.0
- megaparsec >=5 && <10
- mtl >=2.1.2 && <2.4
- OptDir
- process >=1.1.0.2
- scientific
- stm >=2.3
- temporary >=1.2
- text >=1.1.0.0
- xml-conduit
when:
- condition: flag(WithZlib)
then:
dependencies:
- case-insensitive
- bytestring
- bytestring-encoding
- zlib
cpp-options: "-DWITH_ZLIB"
else:
# dummy for avoiding "'else' branch of 'if' is empty" error on old Cabal
cpp-options: " "
tests:
MIP-test:
main: TestSuite.hs
source-dirs: test
dependencies:
- MIP
- HUnit
- tasty >=0.10.1
- tasty-hunit >=0.9 && <0.11
- tasty-quickcheck >=0.8 && <0.11
- tasty-th
when:
- condition: flag(TestCBC)
then:
cpp-options: "-DTEST_CBC"
else:
cpp-options: " "
- condition: flag(TestCPLEX)
then:
cpp-options: "-DTEST_CPLEX"
else:
cpp-options: " "
- condition: flag(TestGlpsol)
then:
cpp-options: "-DTEST_GLPSOL"
else:
cpp-options: " "
- condition: flag(TestGurobiCl)
then:
cpp-options: "-DTEST_GUROBI_CL"
else:
cpp-options: " "
- condition: flag(TestLPSolve)
then:
cpp-options: "-DTEST_LP_SOLVE"
else:
cpp-options: " "
- condition: flag(TestSCIP)
then:
cpp-options: "-DTEST_SCIP"
else:
cpp-options: " "