Ignore:
Timestamp:
Jul 15, 2006 4:14:39 PM (14 years ago)
Author:
forrest
Message:

for allCuts

File:
1 edited

Legend:

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

    r310 r416  
    33253325  }
    33263326}
     3327
     3328// Default Constructor
     3329CbcDummyBranchingObject::CbcDummyBranchingObject(CbcModel * model)
     3330  :CbcBranchingObject(model,0,0,0.5)
     3331{
     3332  numberBranchesLeft_=1;
     3333}
     3334
     3335
     3336// Copy constructor
     3337CbcDummyBranchingObject::CbcDummyBranchingObject ( const CbcDummyBranchingObject & rhs) :CbcBranchingObject(rhs)
     3338{
     3339}
     3340
     3341// Assignment operator
     3342CbcDummyBranchingObject &
     3343CbcDummyBranchingObject::operator=( const CbcDummyBranchingObject& rhs)
     3344{
     3345  if (this != &rhs) {
     3346    CbcBranchingObject::operator=(rhs);
     3347  }
     3348  return *this;
     3349}
     3350CbcBranchingObject *
     3351CbcDummyBranchingObject::clone() const
     3352{
     3353  return (new CbcDummyBranchingObject(*this));
     3354}
     3355
     3356
     3357// Destructor
     3358CbcDummyBranchingObject::~CbcDummyBranchingObject ()
     3359{
     3360}
     3361
     3362/*
     3363  Perform a dummy branch
     3364*/
     3365double
     3366CbcDummyBranchingObject::branch(bool normalBranch)
     3367{
     3368  if (model_->messageHandler()->logLevel()>2&&normalBranch)
     3369    print(normalBranch);
     3370  numberBranchesLeft_=0;
     3371  return 0.0;
     3372}
     3373// Print what would happen 
     3374void
     3375CbcDummyBranchingObject::print(bool normalBranch)
     3376{
     3377  printf("Dummy branch\n");
     3378}
Note: See TracChangeset for help on using the changeset viewer.