Cbc  2.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbcDummyBranchingObject.hpp
Go to the documentation of this file.
1 // $Id: CbcDummyBranchingObject.hpp 1899 2013-04-09 18:12:08Z stefan $
2 // Copyright (C) 2002, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 // This code is licensed under the terms of the Eclipse Public License (EPL).
5 
6 // Edwin 11/10/2009-- carved out of CbcBranchActual
7 
8 #ifndef CbcDummyBranchingObject_H
9 #define CbcDummyBranchingObject_H
10 
11 #include "CbcBranchBase.hpp"
19 
20 public:
21 
24 
27 
30 
32  virtual CbcBranchingObject * clone() const;
33 
35  virtual ~CbcDummyBranchingObject ();
36 
40  virtual double branch();
41 
42 #ifdef JJF_ZERO
43  // No need to override. Default works fine.
47  virtual void previousBranch();
48 #endif
49 
53  virtual void print();
54 
56  virtual CbcBranchObjType type() const {
57  return DummyBranchObj;
58  }
59 
67  virtual int compareOriginalObject(const CbcBranchingObject* brObj) const;
68 
78  (const CbcBranchingObject* brObj, const bool replaceIfOverlap = false);
79 
80 };
81 
82 #endif
83 
CbcDummyBranchingObject(CbcModel *model=NULL)
Default constructor.
virtual CbcBranchObjType type() const
Return the type (an integer identifier) of this.
CbcRangeCompare
virtual CbcBranchingObject * clone() const
Clone.
virtual void print()
Print something about branch - only if log level high.
CbcDummyBranchingObject & operator=(const CbcDummyBranchingObject &rhs)
Assignment operator.
virtual ~CbcDummyBranchingObject()
Destructor.
Dummy branching object.
Abstract branching object base class Now just difference with OsiBranchingObject. ...
virtual void previousBranch()
Reset every information so that the branching object appears to point to the previous child...
virtual double branch()
Dummy branch.
CbcBranchObjType
CbcModel * model() const
Return model.
virtual double branch()=0
Execute the actions required to branch, as specified by the current state of the branching object...
virtual void print() const
Print something about branch - only if log level high.
virtual CbcRangeCompare compareBranchingObject(const CbcBranchingObject *brObj, const bool replaceIfOverlap=false)
Compare the this with brObj.
virtual int compareOriginalObject(const CbcBranchingObject *brObj) const
Compare the original object of this with the original object of brObj.
Simple Branch and bound class.
Definition: CbcModel.hpp:101