COIN-OR::LEMON - Graph Library

Changeset 748:4792459983d0 in lemon-main for test


Ignore:
Timestamp:
09/27/09 09:47:20 (15 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Fix (and improve) error message in mip_test.cc (#317)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mip_test.cc

    r631 r748  
    5151  if (stat ==  MipSolver::OPTIMAL) {
    5252    std::ostringstream sbuf;
    53     buf << "Wrong optimal value: the right optimum is " << exp_opt;
     53    sbuf << "Wrong optimal value ("<< mip.solValue()
     54         <<" instead of " << exp_opt << ")";
    5455    check(std::abs(mip.solValue()-exp_opt) < 1e-3, sbuf.str());
    5556    //+ecvt(exp_opt,2)
Note: See TracChangeset for help on using the changeset viewer.