diff -r 736a341e604b -r eba5aa390aca test/mip_test.cc --- a/test/mip_test.cc Thu Jan 21 08:36:53 2021 +0100 +++ b/test/mip_test.cc Thu Jan 21 18:58:37 2021 +0100 @@ -61,7 +61,7 @@ } } -void aTest(MipSolver& mip) +void aTest(MipSolver& mip, bool solve_empty=true) { //The following example is very simple @@ -80,7 +80,8 @@ mip.max(); //Unconstrained optimization - mip.solve(); + if(solve_empty) + mip.solve(); //Check it out! //Constraints @@ -135,7 +136,11 @@ #ifdef LEMON_HAVE_MIP { Mip mip1; +#if LEMON_DEFAULT_MIP==LEMON_CBC_ + aTest(mip1, false); +#else aTest(mip1); +#endif cloneTest(); } #endif @@ -161,7 +166,7 @@ #ifdef LEMON_HAVE_CBC { CbcMip mip1; - aTest(mip1); + aTest(mip1, false); cloneTest(); } #endif