Changeset 932


Ignore:
Timestamp:
Apr 28, 2008 11:55:33 AM (11 years ago)
Author:
forrest
Message:

allow Compare

Location:
trunk/Cbc/examples
Files:
2 edited

Legend:

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

    r640 r932  
    692692         numberOther/numberLinks);
    693693}
     694/** Compare the \c this with \c brObj. \c this and \c brObj must be os the
     695    same type and must have the same original object, but they may have
     696    different feasible regions.
     697    Return the appropriate CbcRangeCompare value (first argument being the
     698    sub/superset if that's the case). In case of overlap (and if \c
     699    replaceIfOverlap is true) replace the current branching object with one
     700    whose feasible region is the overlap.
     701*/
     702CbcRangeCompare
     703CbcLinkBranchingObject::compareBranchingObject
     704(const CbcBranchingObject* brObj, const bool replaceIfOverlap)
     705{
     706  throw("must implement");
     707}
  • trunk/Cbc/examples/CbcBranchLink.hpp

    r706 r932  
    123123  */
    124124  virtual void print();
     125  /** Return the type (an integer identifier) of \c this */
     126  virtual int type() const
     127  { return -1;}
     128
     129  /** Compare the \c this with \c brObj. \c this and \c brObj must be os the
     130      same type and must have the same original object, but they may have
     131      different feasible regions.
     132      Return the appropriate CbcRangeCompare value (first argument being the
     133      sub/superset if that's the case). In case of overlap (and if \c
     134      replaceIfOverlap is true) replace the current branching object with one
     135      whose feasible region is the overlap.
     136   */
     137  virtual CbcRangeCompare compareBranchingObject
     138  (const CbcBranchingObject* brObj, const bool replaceIfOverlap = false);
    125139private:
    126140  /// data
Note: See TracChangeset for help on using the changeset viewer.