equal
deleted
inserted
replaced
28 |
28 |
29 // itoa(stat,buf1, 10); |
29 // itoa(stat,buf1, 10); |
30 check(lp.mipStatus()==stat, buf.str()); |
30 check(lp.mipStatus()==stat, buf.str()); |
31 |
31 |
32 if (stat == MipSolverBase::OPTIMAL) { |
32 if (stat == MipSolverBase::OPTIMAL) { |
33 std::ostringstream buf; |
33 std::ostringstream sbuf; |
34 buf << "Wrong optimal value: the right optimum is " << exp_opt; |
34 buf << "Wrong optimal value: the right optimum is " << exp_opt; |
35 check(std::abs(lp.primalValue()-exp_opt) < 1e-3, buf.str()); |
35 check(std::abs(lp.primalValue()-exp_opt) < 1e-3, sbuf.str()); |
36 //+ecvt(exp_opt,2) |
36 //+ecvt(exp_opt,2) |
37 } |
37 } |
38 } |
38 } |
39 |
39 |
40 void aTest(MipSolverBase& mip) |
40 void aTest(MipSolverBase& mip) |