Ignore:
Timestamp:
Nov 8, 2006 2:10:36 PM (13 years ago)
Author:
forrest
Message:

fix compare

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcCompareBase.hpp

    r356 r485  
    4141  virtual bool every1000Nodes(CbcModel * model,int numberNodes) {return false;};
    4242
    43   /// Returns true if wants code to do scan with alternate criterion
     43  /** Returns true if wants code to do scan with alternate criterion
     44      NOTE - this is temporarily disabled
     45  */
    4446  virtual bool fullScan() const { return false;};
    4547
     
    7072    return test(x,y);
    7173  }
     74  /// Further test if everything else equal
     75  inline bool equalityTest (CbcNode * x, CbcNode * y) const
     76  {
     77    assert (x);
     78    CbcNodeInfo * infoX = x->nodeInfo();
     79    assert (infoX);
     80    int nodeNumberX = infoX->nodeNumber();
     81    assert (y);
     82    CbcNodeInfo * infoY = y->nodeInfo();
     83    assert (infoY);
     84    int nodeNumberY = infoY->nodeNumber();
     85    assert (nodeNumberX!=nodeNumberY);
     86    return (nodeNumberX>nodeNumberY);
     87  };
    7288protected:
    7389  CbcCompareBase * test_;
Note: See TracChangeset for help on using the changeset viewer.