Ignore:
Timestamp:
Nov 3, 2006 3:48:00 PM (13 years ago)
Author:
forrest
Message:

for nonlinear and start moving to OsiTree?
afor n

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Cbc/src/CbcBranchActual.cpp

    r471 r477  
    985985  int iColumn = originalCbcObject_->columnNumber();
    986986  assert (variable_==iColumn);
     987  double olb,oub ;
     988  olb = model_->solver()->getColLower()[iColumn] ;
     989  oub = model_->solver()->getColUpper()[iColumn] ;
    987990  if (way_<0) {
    988991#ifdef CBC_DEBUG
     
    10081011    way_=-1;      // Swap direction
    10091012  }
     1013  double nlb = model_->solver()->getColLower()[iColumn];
     1014  if (nlb<olb) {
     1015#ifndef NDEBUG
     1016    printf("bad lb change for column %d from %g to %g\n",iColumn,olb,nlb);
     1017#endif
     1018    model_->solver()->setColLower(iColumn,olb);
     1019  }
     1020  double nub = model_->solver()->getColUpper()[iColumn];
     1021  if (nub>oub) {
     1022#ifndef NDEBUG
     1023    printf("bad ub change for column %d from %g to %g\n",iColumn,oub,nub);
     1024#endif
     1025    model_->solver()->setColUpper(iColumn,oub);
     1026  }
     1027#ifndef NDEBUG
     1028  if (nlb<olb+1.0e-8&&nub>oub-1.0e-8)
     1029    printf("bad null change for column %d - bounds %g,%g\n",iColumn,olb,oub);
     1030#endif
    10101031  return 0.0;
    10111032}
Note: See TracChangeset for help on using the changeset viewer.