Dip  0.92.4
DecompStats.h
Go to the documentation of this file.
1 //===========================================================================//
2 // This file is part of the Decomp Solver Framework. //
3 // //
4 // Decomp is distributed under the Common Public License as part of the //
5 // COIN-OR repository (http://www.coin-or.org). //
6 // //
7 // Author: Matthew Galati, Lehigh University //
8 // //
9 // Copyright (C) 2002-2007, Lehigh University, Matthew Galati, and Ted Ralphs//
10 // All Rights Reserved. //
11 //===========================================================================//
12 
13 
14 #ifndef DECOMP_STATS_INCLUDED
15 #define DECOMP_STATS_INCLUDED
16 
17 #include "CoinTime.hpp"
18 #include "DecompPortable.h"
19 
20 class DecompStats {
21 
22 public:
27 
28 public:
29  double totalOverall;
30 
31  double totalDecomp;
32  double totalSolveRelax;
33  double totalSolveRelaxApp;
34  double totalSolUpdate;
35  double totalGenCuts;
36  double totalGenVars;
37 
38  double maxDecomp;
39  double maxSolveRelax;
40  double maxSolveRelaxApp;
41  double maxSolUpdate;
42  double maxGenCuts;
43  double maxGenVars;
44 
45 public:
46  vector<double> thisDecomp;
47  vector<double> thisSolveRelax;
48  vector<double> thisSolveRelaxApp;
49  vector<double> thisSolUpdate;
50  vector<double> thisGenCuts;
51  vector<double> thisGenVars;
52 
53 public:
54  void calculateStats();
55  void printOverallStats (ostream* os = &cout); //ostream?
56  void printDetailedStats(ostream* os = &cout); //ostream?
57 
58 public:
60 
61  timerOverall (0),
62  timerDecomp (0),
63  timerOther1 (0),
64  timerOther2 (0),
65 
66  totalOverall (0.0),
67 
68  totalDecomp (0.0),
69  totalSolveRelax (0.0),
70  totalSolveRelaxApp(0.0),
71  totalSolUpdate (0.0),
72  totalGenCuts (0.0),
73  totalGenVars (0.0),
74 
75  maxDecomp (0.0),
76  maxSolveRelax (0.0),
77  maxSolveRelaxApp (0.0),
78  maxSolUpdate (0.0),
79  maxGenCuts (0.0),
80  maxGenVars (0.0)
81 
82  {
83  }
84 
86 
87 };
88 
89 
90 #endif
CoinTimer timerDecomp
Definition: DecompStats.h:24
double maxSolveRelaxApp
Definition: DecompStats.h:253
UtilTimer timerOverall
Definition: DecompStats.h:234
vector< double > thisSolveRelaxApp
Definition: DecompStats.h:48
double totalSolveRelax
Definition: DecompStats.h:243
CoinTimer timerOther2
Definition: DecompStats.h:26
double totalSolUpdate
Definition: DecompStats.h:245
double maxGenVars
Definition: DecompStats.h:256
vector< double > thisDecomp
Definition: DecompStats.h:46
This class implements a timer that also implements a tracing functionality.
Definition: CoinTime.hpp:199
UtilTimer timerDecomp
Definition: DecompStats.h:235
double totalGenCuts
Definition: DecompStats.h:246
void printDetailedStats(std::ostream *os=&std::cout)
UtilTimer timerOther2
Definition: DecompStats.h:237
vector< double > thisSolUpdate
Definition: DecompStats.h:49
CoinTimer timerOverall
Definition: DecompStats.h:23
double maxGenCuts
Definition: DecompStats.h:255
double maxDecomp
Definition: DecompStats.h:251
UtilTimer timerOther1
Definition: DecompStats.h:236
vector< double > thisGenCuts
Definition: DecompStats.h:50
void printOverallStats(std::ostream *os=&std::cout)
vector< double > thisGenVars
Definition: DecompStats.h:51
CoinTimer timerOther1
Definition: DecompStats.h:25
double maxSolUpdate
Definition: DecompStats.h:254
void calculateStats()
double totalSolveRelaxApp
Definition: DecompStats.h:244
double totalGenVars
Definition: DecompStats.h:248
double maxSolveRelax
Definition: DecompStats.h:252
double totalOverall
Definition: DecompStats.h:240
vector< double > thisSolveRelax
Definition: DecompStats.h:47
double totalDecomp
Definition: DecompStats.h:242