equal
deleted
inserted
replaced
20 |
20 |
21 #ifdef HAVE_CONFIG_H |
21 #ifdef HAVE_CONFIG_H |
22 #include <lemon/config.h> |
22 #include <lemon/config.h> |
23 #endif |
23 #endif |
24 |
24 |
25 #ifdef HAVE_CPLEX |
25 #ifdef LEMON_HAVE_CPLEX |
26 #include <lemon/cplex.h> |
26 #include <lemon/cplex.h> |
27 #endif |
27 #endif |
28 |
28 |
29 #ifdef HAVE_GLPK |
29 #ifdef LEMON_HAVE_GLPK |
30 #include <lemon/glpk.h> |
30 #include <lemon/glpk.h> |
31 #endif |
31 #endif |
32 |
32 |
33 #ifdef HAVE_CBC |
33 #ifdef LEMON_HAVE_CBC |
34 #include <lemon/cbc.h> |
34 #include <lemon/cbc.h> |
35 #endif |
35 #endif |
36 |
36 |
37 |
37 |
38 using namespace lemon; |
38 using namespace lemon; |
127 } |
127 } |
128 |
128 |
129 int main() |
129 int main() |
130 { |
130 { |
131 |
131 |
132 #ifdef HAVE_GLPK |
132 #ifdef LEMON_HAVE_GLPK |
133 { |
133 { |
134 GlpkMip mip1; |
134 GlpkMip mip1; |
135 aTest(mip1); |
135 aTest(mip1); |
136 cloneTest<GlpkMip>(); |
136 cloneTest<GlpkMip>(); |
137 } |
137 } |
138 #endif |
138 #endif |
139 |
139 |
140 #ifdef HAVE_CPLEX |
140 #ifdef LEMON_HAVE_CPLEX |
141 try { |
141 try { |
142 CplexMip mip2; |
142 CplexMip mip2; |
143 aTest(mip2); |
143 aTest(mip2); |
144 cloneTest<CplexMip>(); |
144 cloneTest<CplexMip>(); |
145 } catch (CplexEnv::LicenseError& error) { |
145 } catch (CplexEnv::LicenseError& error) { |
146 check(false, error.what()); |
146 check(false, error.what()); |
147 } |
147 } |
148 #endif |
148 #endif |
149 |
149 |
150 #ifdef HAVE_CBC |
150 #ifdef LEMON_HAVE_CBC |
151 { |
151 { |
152 CbcMip mip1; |
152 CbcMip mip1; |
153 aTest(mip1); |
153 aTest(mip1); |
154 cloneTest<CbcMip>(); |
154 cloneTest<CbcMip>(); |
155 } |
155 } |