equal
deleted
inserted
replaced
259 |
259 |
260 // itoa(stat,buf1, 10); |
260 // itoa(stat,buf1, 10); |
261 check(lp.primalStatus()==stat, buf.str()); |
261 check(lp.primalStatus()==stat, buf.str()); |
262 |
262 |
263 if (stat == LpSolverBase::OPTIMAL) { |
263 if (stat == LpSolverBase::OPTIMAL) { |
264 std::ostringstream buf; |
264 std::ostringstream sbuf; |
265 buf << "Wrong optimal value: the right optimum is " << exp_opt; |
265 sbuf << "Wrong optimal value: the right optimum is " << exp_opt; |
266 check(std::abs(lp.primalValue()-exp_opt) < 1e-3, buf.str()); |
266 check(std::abs(lp.primalValue()-exp_opt) < 1e-3, sbuf.str()); |
267 //+ecvt(exp_opt,2) |
267 //+ecvt(exp_opt,2) |
268 } |
268 } |
269 } |
269 } |
270 |
270 |
271 void aTest(LpSolverBase & lp) |
271 void aTest(LpSolverBase & lp) |