Changeset 492


Ignore:
Timestamp:
Apr 24, 2007 3:56:28 PM (12 years ago)
Author:
pbonami
Message:

Fix bug when BabInfo? is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Couenne/Couenne/src/convex/generateCuts.cpp

    r490 r492  
    2626 
    2727  Bonmin::BabInfo * babInfo = dynamic_cast<Bonmin::BabInfo *> (si.getAuxiliaryInfo());
    28   babInfo->setFeasibleNode();
     28  if(babInfo)
     29    babInfo->setFeasibleNode();
    2930  // lift bound on objective auxiliary to avoid overly strict implied
    3031  // bounds
     
    215216
    216217          infeasNode () = true; // make this node infeasible
    217     babInfo->setInfeasibleNode();
     218    if(babInfo)
     219      babInfo->setInfeasibleNode();
    218220          goto end_genCuts;
    219221        }
Note: See TracChangeset for help on using the changeset viewer.