Cbc
2.10.13
Toggle main menu visibility
Loading...
Searching...
No Matches
Cbc
src
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
"
17
18
class
CbcBranchDefaultDecision
:
public
CbcBranchDecision
{
19
public
:
20
// Default Constructor
21
CbcBranchDefaultDecision
();
22
23
// Copy constructor
24
CbcBranchDefaultDecision
(
const
CbcBranchDefaultDecision
&);
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
66
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
:
75
CbcBranchDefaultDecision
&
operator=
(
const
CbcBranchDefaultDecision
&rhs);
76
78
80
double
bestCriterion_
;
81
83
double
bestChangeUp_
;
84
86
int
bestNumberUp_
;
87
89
double
bestChangeDown_
;
90
92
CbcBranchingObject
*
bestObject_
;
93
95
int
bestNumberDown_
;
96
};
97
98
#endif
99
100
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
101
*/
CbcBranchBase.hpp
objectiveValue
double objectiveValue() const
Definition
CbcNode.hpp:221
numberUnsatisfied
int numberUnsatisfied() const
Get the number of objects unsatisfied at this node.
Definition
CbcNode.hpp:256
model
CbcModel * model() const
Return model.
Definition
CbcObject.hpp:252
CbcBranchDecision::CbcBranchDecision
CbcBranchDecision()
Default Constructor.
CbcBranchDefaultDecision::setBestCriterion
virtual void setBestCriterion(double value)
Sets or gets best criterion so far.
CbcBranchDefaultDecision::getBestCriterion
virtual double getBestCriterion() const
CbcBranchDefaultDecision::betterBranch
virtual int betterBranch(CbcBranchingObject *thisOne, CbcBranchingObject *bestSoFar, double changeUp, int numInfUp, double changeDn, int numInfDn)
Compare two branching objects.
CbcBranchDefaultDecision::bestNumberUp_
int bestNumberUp_
Number of infeasibilities for up.
Definition
CbcBranchDefaultDecision.hpp:86
CbcBranchDefaultDecision::operator=
CbcBranchDefaultDecision & operator=(const CbcBranchDefaultDecision &rhs)
Illegal Assignment operator.
CbcBranchDefaultDecision::bestCriterion_
double bestCriterion_
data
Definition
CbcBranchDefaultDecision.hpp:80
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::bestChangeDown_
double bestChangeDown_
Change down for best.
Definition
CbcBranchDefaultDecision.hpp:89
CbcBranchDefaultDecision::CbcBranchDefaultDecision
CbcBranchDefaultDecision(const CbcBranchDefaultDecision &)
CbcBranchDefaultDecision::bestChangeUp_
double bestChangeUp_
Change up for best.
Definition
CbcBranchDefaultDecision.hpp:83
CbcBranchDefaultDecision::~CbcBranchDefaultDecision
virtual ~CbcBranchDefaultDecision()
CbcBranchDefaultDecision::clone
virtual CbcBranchDecision * clone() const
Clone.
CbcBranchDefaultDecision::CbcBranchDefaultDecision
CbcBranchDefaultDecision()
CbcBranchDefaultDecision::bestNumberDown_
int bestNumberDown_
Number of infeasibilities for down.
Definition
CbcBranchDefaultDecision.hpp:95
CbcBranchDefaultDecision::bestObject_
CbcBranchingObject * bestObject_
Pointer to best branching object.
Definition
CbcBranchDefaultDecision.hpp:92
CbcBranchDefaultDecision::initialize
virtual void initialize(CbcModel *model)
Initialize, e.g. before the start of branch selection at a node.
CbcBranchingObject
Abstract branching object base class Now just difference with OsiBranchingObject.
Definition
CbcBranchingObject.hpp:51
CbcModel
Simple Branch and bound class.
Definition
CbcModel.hpp:100
Generated by
1.17.0