COIN-OR::LEMON - Graph Library

Ticket #317: 860cdc983618.patch

File 860cdc983618.patch, 681 bytes (added by Alpar Juttner, 15 years ago)
  • test/mip_test.cc

    # HG changeset patch
    # User Alpar Juttner <alpar@cs.elte.hu>
    # Date 1254037640 -7200
    # Node ID 860cdc983618fa9bf8d0fa63cbe4ac171560758f
    # Parent  0977046c60d27196e3b008fe9f65350180ec5362
    Fix (and improve) error message in mip_test.cc
    
    diff --git a/test/mip_test.cc b/test/mip_test.cc
    a b  
    5050
    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)
    5657  }