Cbc  2.9.9
CbcStatistics.hpp
Go to the documentation of this file.
1 /* $Id: CbcStatistics.hpp 1573 2011-01-05 01:12:36Z lou $ */
2 // Copyright (C) 2005, 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 #ifndef CbcStatistics_H
7 #define CbcStatistics_H
8 
9 #include "CbcModel.hpp"
10 
14 public:
15  // Default Constructor
17  // Branch
19 
21  // Copy
23  // Assignment
25  // Update at end of branch
26  void endOfBranch(int numberIterations, double objectiveValue);
27  // Update number of infeasibilities
28  void updateInfeasibility(int numberInfeasibilities);
29  // Branch found to be infeasible by chooseBranch
30  void sayInfeasible();
31  // Just prints
32  void print(const int * sequenceLookup = NULL) const;
33  // Node number
34  inline int node() const {
35  return id_;
36  }
37  // Parent node number
38  inline int parentNode() const {
39  return parentId_;
40  }
41  // depth
42  inline int depth() const {
43  return depth_;
44  }
45  // way
46  inline int way() const {
47  return way_;
48  }
49  // value
50  inline double value() const {
51  return value_;
52  }
53  // starting objective
54  inline double startingObjective() const {
55  return startingObjective_;
56  }
57  // Unsatisfied at beginning
58  inline int startingInfeasibility() const {
60  }
61  // starting objective
62  inline double endingObjective() const {
63  return endingObjective_;
64  }
65  // Unsatisfied at end
66  inline int endingInfeasibility() const {
67  return endingInfeasibility_;
68  }
69  // Number iterations
70  inline int numberIterations() const {
71  return numberIterations_;
72  }
73 
74 protected:
75  // Data
77  double value_;
83  int id_;
85  int parentId_;
87  int way_;
89  int sequence_;
91  int depth_;
98 };
99 
100 #endif
101 
CbcStatistics::updateInfeasibility
void updateInfeasibility(int numberInfeasibilities)
CbcStatistics::endOfBranch
void endOfBranch(int numberIterations, double objectiveValue)
CbcStatistics::startingInfeasibility
int startingInfeasibility() const
Definition: CbcStatistics.hpp:58
CbcStatistics::sayInfeasible
void sayInfeasible()
CbcStatistics::endingInfeasibility
int endingInfeasibility() const
Definition: CbcStatistics.hpp:66
CbcStatistics::numberIterations
int numberIterations() const
Definition: CbcStatistics.hpp:70
CbcStatistics::way_
int way_
way -1 or +1 is first branch -10 or +10 is second branch
Definition: CbcStatistics.hpp:87
CbcStatistics::numberIterations_
int numberIterations_
number of iterations
Definition: CbcStatistics.hpp:97
CbcModel.hpp
CbcStatistics::parentNode
int parentNode() const
Definition: CbcStatistics.hpp:38
CbcStatistics::CbcStatistics
CbcStatistics()
CbcStatistics::way
int way() const
Definition: CbcStatistics.hpp:46
CbcStatistics::node
int node() const
Definition: CbcStatistics.hpp:34
CbcStatistics::depth
int depth() const
Definition: CbcStatistics.hpp:42
CbcStatistics::operator=
CbcStatistics & operator=(const CbcStatistics &rhs)
CbcStatistics::endingInfeasibility_
int endingInfeasibility_
ending number of integer infeasibilities
Definition: CbcStatistics.hpp:95
CbcStatistics::CbcStatistics
CbcStatistics(const CbcStatistics &rhs)
CbcStatistics::startingInfeasibility_
int startingInfeasibility_
starting number of integer infeasibilities
Definition: CbcStatistics.hpp:93
CbcModel
Simple Branch and bound class.
Definition: CbcModel.hpp:101
CbcStatistics::value_
double value_
Value.
Definition: CbcStatistics.hpp:77
CbcStatistics::value
double value() const
Definition: CbcStatistics.hpp:50
CbcStatistics::endingObjective_
double endingObjective_
Ending objective.
Definition: CbcStatistics.hpp:81
CbcStatistics::~CbcStatistics
~CbcStatistics()
CbcStatistics::id_
int id_
id
Definition: CbcStatistics.hpp:83
CbcStatistics::endingObjective
double endingObjective() const
Definition: CbcStatistics.hpp:62
CbcNode
Information required while the node is live.
Definition: CbcNode.hpp:49
CbcStatistics
For gathering statistics.
Definition: CbcStatistics.hpp:13
CbcStatistics::sequence_
int sequence_
sequence number branched on
Definition: CbcStatistics.hpp:89
CbcStatistics::CbcStatistics
CbcStatistics(CbcNode *node, CbcModel *model)
CbcStatistics::parentId_
int parentId_
parent id
Definition: CbcStatistics.hpp:85
CbcStatistics::depth_
int depth_
depth
Definition: CbcStatistics.hpp:91
CbcStatistics::print
void print(const int *sequenceLookup=NULL) const
CbcStatistics::startingObjective_
double startingObjective_
Starting objective.
Definition: CbcStatistics.hpp:79
CbcStatistics::startingObjective
double startingObjective() const
Definition: CbcStatistics.hpp:54