Changeset 195 for trunk/CbcTreeLocal.cpp


Ignore:
Timestamp:
Oct 13, 2005 3:29:40 PM (14 years ago)
Author:
forrest
Message:

stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CbcTreeLocal.cpp

    r190 r195  
    77#include "CoinPackedMatrix.hpp"
    88#include "CoinTime.hpp"
     9#include "OsiRowCutDebugger.hpp"
    910#include <cassert>
    1011#if 0
     
    594595    } else {
    595596      // special case when using as heuristic
     597      // Reverse cut weakly if lb -infinity
     598      reverseCut(4,rhs_);
    596599      // This will be last try (may hit max time0
    597600      lastTry=true;
     
    615618      printf("inserting cut - now %d cuts, rhs %g %g, cutspace %g, diversification %d\n",
    616619             n,rowCut->lb(),rowCut->ub(),rhs_,diversification_);
     620      const OsiRowCutDebugger *debugger = model_->solver()->getRowCutDebuggerAlways() ;
     621      if (debugger) {
     622        if(debugger->invalidCut(*rowCut))
     623          printf("ZZZZTree Global cut - cuts off optimal solution!\n");
     624      }
    617625      for (int i=0;i<n;i++) {
    618626        rowCut = global->rowCutPtr(i);
     
    775783    return;
    776784  }
     785  if (rowCut->lb()>-1.0e10)
     786    return;
    777787  // get smallest element
    778788  double smallest=COIN_DBL_MAX;
     
    792802  printf("new rhs %g %g, bias %g smallest %g ",
    793803         rowCut->lb(),rowCut->ub(),bias,smallest);
     804  const OsiRowCutDebugger *debugger = model_->solver()->getRowCutDebuggerAlways() ;
     805  if (debugger) {
     806    if(debugger->invalidCut(*rowCut))
     807      printf("ZZZZTree Global cut - cuts off optimal solution!\n");
     808  }
    794809}
    795810// Delete last cut branch
Note: See TracChangeset for help on using the changeset viewer.