diff -r 8c567e298d7f -r 57abff252556 test/mip_test.cc --- a/test/mip_test.cc Sat Oct 27 13:00:48 2018 +0200 +++ b/test/mip_test.cc Wed Jan 20 16:17:21 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