COIN-OR::LEMON - Graph Library

Changeset 795:4792459983d0 in lemon


Ignore:
Timestamp:
09/27/09 09:47:20 (14 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

    r678 r795  
    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.