test/lp_test.cc
changeset 2389 df6a32249b46
parent 2369 6ae1a97055a2
child 2391 14a343be7a5a
equal deleted inserted replaced
20:456cbe034c85 21:68e73714d857
   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)