Ignore:
Timestamp:
Feb 7, 2012 11:36:07 PM (8 years ago)
Author:
pbelotti
Message:

outputting the right numbers (when infinite)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Couenne/src/main/BonCouenne.cpp

    r816 r820  
    345345
    346346    if (cp -> getRecordBestSol () &&
    347         (ub > cp -> getRecordBestSol () -> getVal ())) ub = cp -> getRecordBestSol () -> getVal ();
    348 
    349     if ((fabs (lb) > COUENNE_INFINITY / 1e4) ||
    350         (lb > ub))                                     lb = ub;
     347        cp       -> getRecordBestSol () -> getHasSol () &&
     348        (ub > cp -> getRecordBestSol () -> getVal    ()))   
     349      ub = cp -> getRecordBestSol () -> getVal ();
     350
     351    if (false || //(fabs (lb) > COUENNE_INFINITY / 1e4) ||
     352        (lb > ub))
     353      lb = ub;
    351354
    352355    char
Note: See TracChangeset for help on using the changeset viewer.