Cbc 2.10.12
Loading...
Searching...
No Matches
CbcDummyBranchingObject.hpp
Go to the documentation of this file.
1// $Id$
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"
17
19
20public:
23
26
29
31 virtual CbcBranchingObject *clone() const;
32
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*/
CbcRangeCompare
@ DummyBranchObj
virtual void previousBranch()
Reset every information so that the branching object appears to point to the previous child.
CbcBranchingObject()
Default Constructor.
virtual double branch()=0
Execute the actions required to branch, as specified by the current state of the branching object,...
CbcModel * model() const
Return model.
virtual void print() const
Print something about branch - only if log level high.
CbcDummyBranchingObject(CbcModel *model=NULL)
Default constructor.
CbcDummyBranchingObject & operator=(const CbcDummyBranchingObject &rhs)
Assignment operator.
virtual CbcBranchObjType type() const
Return the type (an integer identifier) of this.
virtual void print()
Print something about branch - only if log level high.
virtual ~CbcDummyBranchingObject()
Destructor.
virtual CbcRangeCompare compareBranchingObject(const CbcBranchingObject *brObj, const bool replaceIfOverlap=false)
Compare the this with brObj.
virtual CbcBranchingObject * clone() const
Clone.
virtual double branch()
Dummy branch.
CbcDummyBranchingObject(const CbcDummyBranchingObject &)
Copy constructor.
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