Cbc  2.10.10
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CbcBranchDefaultDecision.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 CbcBranchDefaultDecision_H
9 #define CbcBranchDefaultDecision_H
10 
11 #include "CbcBranchBase.hpp"
19 public:
20  // Default Constructor
22 
23  // Copy constructor
25 
26  virtual ~CbcBranchDefaultDecision();
27 
29  virtual CbcBranchDecision *clone() const;
30 
32  virtual void initialize(CbcModel *model);
33 
53  virtual int betterBranch(CbcBranchingObject *thisOne,
54  CbcBranchingObject *bestSoFar,
55  double changeUp, int numInfUp,
56  double changeDn, int numInfDn);
58  virtual void setBestCriterion(double value);
59  virtual double getBestCriterion() const;
60 
67  virtual int
68  bestBranch(CbcBranchingObject **objects, int numberObjects, int numberUnsatisfied,
69  double *changeUp, int *numberInfeasibilitiesUp,
70  double *changeDown, int *numberInfeasibilitiesDown,
71  double objectiveValue);
72 
73 private:
76 
78 
81 
83  double bestChangeUp_;
84 
87 
90 
93 
96 };
97 
98 #endif
99 
100 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
101 */
CbcBranchDefaultDecision::initialize
virtual void initialize(CbcModel *model)
Initialize, e.g. before the start of branch selection at a node.
CbcBranchDefaultDecision::bestNumberUp_
int bestNumberUp_
Number of infeasibilities for up.
Definition: CbcBranchDefaultDecision.hpp:86
CbcBranchDefaultDecision::operator=
CbcBranchDefaultDecision & operator=(const CbcBranchDefaultDecision &rhs)
Illegal Assignment operator.
CbcBranchDefaultDecision::bestBranch
virtual int bestBranch(CbcBranchingObject **objects, int numberObjects, int numberUnsatisfied, double *changeUp, int *numberInfeasibilitiesUp, double *changeDown, int *numberInfeasibilitiesDown, double objectiveValue)
Compare N branching objects.
CbcBranchDefaultDecision::betterBranch
virtual int betterBranch(CbcBranchingObject *thisOne, CbcBranchingObject *bestSoFar, double changeUp, int numInfUp, double changeDn, int numInfDn)
Compare two branching objects.
CbcBranchDefaultDecision::CbcBranchDefaultDecision
CbcBranchDefaultDecision()
CbcBranchDefaultDecision::setBestCriterion
virtual void setBestCriterion(double value)
Sets or gets best criterion so far.
CbcModel
Simple Branch and bound class.
Definition: CbcModel.hpp:100
CbcBranchDefaultDecision::clone
virtual CbcBranchDecision * clone() const
Clone.
CbcBranchDefaultDecision::~CbcBranchDefaultDecision
virtual ~CbcBranchDefaultDecision()
CbcBranchingObject
Abstract branching object base class Now just difference with OsiBranchingObject.
Definition: CbcBranchingObject.hpp:51
CbcBranchDefaultDecision::bestChangeUp_
double bestChangeUp_
Change up for best.
Definition: CbcBranchDefaultDecision.hpp:83
CbcBranchBase.hpp
CbcBranchDefaultDecision::bestNumberDown_
int bestNumberDown_
Number of infeasibilities for down.
Definition: CbcBranchDefaultDecision.hpp:95
CbcBranchDecision
Definition: CbcBranchDecision.hpp:28
CbcBranchDefaultDecision::getBestCriterion
virtual double getBestCriterion() const
CbcBranchDefaultDecision::bestObject_
CbcBranchingObject * bestObject_
Pointer to best branching object.
Definition: CbcBranchDefaultDecision.hpp:92
CbcBranchDefaultDecision::bestChangeDown_
double bestChangeDown_
Change down for best.
Definition: CbcBranchDefaultDecision.hpp:89
CbcBranchDefaultDecision
Branching decision default class.
Definition: CbcBranchDefaultDecision.hpp:18
CbcBranchDefaultDecision::bestCriterion_
double bestCriterion_
data
Definition: CbcBranchDefaultDecision.hpp:80