Ignore:
Timestamp:
Nov 4, 2010 11:06:24 AM (9 years ago)
Author:
lou
Message:

Track modifications to CbcCompareBase::newSolution and fix Makefile.in so
examples will build again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/examples/CbcCompareUser.cpp

    r640 r1519  
    133133  if (numberSolutions_>5)
    134134    weight_ =0.0; // this searches on objective
     135  return (true) ;
    135136}
    136137// This allows method to change behavior
     
    216217// This allows method to change behavior as it is called
    217218// after each solution
    218 void
     219bool
    219220CbcCompareUser::newSolution(CbcModel * model,
    220221                               double objectiveAtContinuous,
     
    223224  if (model->getSolutionCount()==model->getNumberHeuristicSolutions()&&
    224225      model->getSolutionCount()<5&&model->getNodeCount()<500)
    225     return; // solution was got by rounding
     226    return (false) ; // solution was got by rounding
    226227  // set to get close to this solution
    227228  double costPerInteger =
     
    233234  if (numberSolutions_>5)
    234235    weight_ =0.0; // this searches on objective
     236  return (true) ;
    235237}
    236238// This allows method to change behavior
Note: See TracChangeset for help on using the changeset viewer.