test/mip_test.cc
changeset 2390 8450951a8e2d
parent 2369 6ae1a97055a2
child 2391 14a343be7a5a
equal deleted inserted replaced
8:4324f81f392d 9:afda28a7e376
    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)