| ... | ... |
@@ -386,30 +386,25 @@ |
| 386 | 386 |
aTest(lp_glpk2); |
| 387 | 387 |
cloneTest<GlpkLp>(); |
| 388 | 388 |
} |
| 389 | 389 |
#endif |
| 390 | 390 |
|
| 391 | 391 |
#ifdef HAVE_CPLEX |
| 392 | 392 |
try {
|
| 393 | 393 |
CplexLp lp_cplex1,lp_cplex2; |
| 394 | 394 |
lpTest(lp_cplex1); |
| 395 | 395 |
aTest(lp_cplex2); |
| 396 | 396 |
cloneTest<CplexLp>(); |
| 397 | 397 |
} catch (CplexEnv::LicenseError& error) {
|
| 398 |
#ifdef LEMON_FORCE_CPLEX_CHECK |
|
| 399 | 398 |
check(false, error.what()); |
| 400 |
#else |
|
| 401 |
std::cerr << error.what() << std::endl; |
|
| 402 |
std::cerr << "Cplex license check failed, lp check skipped" << std::endl; |
|
| 403 |
#endif |
|
| 404 | 399 |
} |
| 405 | 400 |
#endif |
| 406 | 401 |
|
| 407 | 402 |
#ifdef HAVE_SOPLEX |
| 408 | 403 |
{
|
| 409 | 404 |
SoplexLp lp_soplex1,lp_soplex2; |
| 410 | 405 |
lpTest(lp_soplex1); |
| 411 | 406 |
aTest(lp_soplex2); |
| 412 | 407 |
cloneTest<SoplexLp>(); |
| 413 | 408 |
} |
| 414 | 409 |
#endif |
| 415 | 410 |
| ... | ... |
@@ -134,30 +134,25 @@ |
| 134 | 134 |
GlpkMip mip1; |
| 135 | 135 |
aTest(mip1); |
| 136 | 136 |
cloneTest<GlpkMip>(); |
| 137 | 137 |
} |
| 138 | 138 |
#endif |
| 139 | 139 |
|
| 140 | 140 |
#ifdef HAVE_CPLEX |
| 141 | 141 |
try {
|
| 142 | 142 |
CplexMip mip2; |
| 143 | 143 |
aTest(mip2); |
| 144 | 144 |
cloneTest<CplexMip>(); |
| 145 | 145 |
} catch (CplexEnv::LicenseError& error) {
|
| 146 |
#ifdef LEMON_FORCE_CPLEX_CHECK |
|
| 147 | 146 |
check(false, error.what()); |
| 148 |
#else |
|
| 149 |
std::cerr << error.what() << std::endl; |
|
| 150 |
std::cerr << "Cplex license check failed, lp check skipped" << std::endl; |
|
| 151 |
#endif |
|
| 152 | 147 |
} |
| 153 | 148 |
#endif |
| 154 | 149 |
|
| 155 | 150 |
#ifdef HAVE_CBC |
| 156 | 151 |
{
|
| 157 | 152 |
CbcMip mip1; |
| 158 | 153 |
aTest(mip1); |
| 159 | 154 |
cloneTest<CbcMip>(); |
| 160 | 155 |
} |
| 161 | 156 |
#endif |
| 162 | 157 |
|
| 163 | 158 |
return 0; |
0 comments (0 inline)