Ignore:
Timestamp:
May 10, 2011 6:00:24 AM (9 years ago)
Author:
fmargot
Message:

Fix bugs related to CouenneRecordBestSol?, add flags FM_UP_BND and FM_PRINT_INFO

File:
1 edited

Legend:

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

    r573 r574  
    115115    if (!couenne.InitializeCouenne (argv, p, NULL, ci, &bb))
    116116      throw infeasible;
     117
     118#ifdef FM_PRINT_INFO
     119    // This assumes that first cut generator is CouenneCutGenerator
     120    CouenneCutGenerator *ccg = dynamic_cast<CouenneCutGenerator *>
     121      (couenne.cutGenerators().begin()->cgl);
     122    if(ccg) {
     123      ccg->setBabPtr(&bb);
     124    }
     125    else {
     126      printf("main(): ### ERROR: Can not get CouenneCutGenerator\n");
     127      exit(1);
     128    }
     129#endif
    117130
    118131    // initial printout
Note: See TracChangeset for help on using the changeset viewer.