Cbc  2.10.5
 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 2465 2019-01-03 19:26:52Z unxusr $
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:
23 
26 
29 
31  virtual CbcBranchingObject *clone() const;
32 
34  virtual ~CbcDummyBranchingObject();
35 
39  virtual double branch();
40 
41 #ifdef JJF_ZERO
42  // No need to override. Default works fine.
46  virtual void previousBranch();
47 #endif
48 
52  virtual void print();
53 
55  virtual CbcBranchObjType type() const
56  {
57  return DummyBranchObj;
58  }
59 
67  virtual int compareOriginalObject(const CbcBranchingObject *brObj) const;
68 
77  virtual CbcRangeCompare compareBranchingObject(const CbcBranchingObject *brObj, const bool replaceIfOverlap = false);
78 };
79 
80 #endif
81 
82 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
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:100