DecompStats.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef DECOMP_STATS_INCLUDED
00015 #define DECOMP_STATS_INCLUDED
00016
00017 #include "CoinTime.hpp"
00018 #include "DecompPortable.h"
00019
00020 class DecompStats {
00021
00022 public:
00023 CoinTimer timerOverall;
00024 CoinTimer timerDecomp;
00025 CoinTimer timerOther1;
00026 CoinTimer timerOther2;
00027
00028 public:
00029 double totalOverall;
00030
00031 double totalDecomp;
00032 double totalSolveRelax;
00033 double totalSolveRelaxApp;
00034 double totalSolUpdate;
00035 double totalGenCuts;
00036 double totalGenVars;
00037
00038 double maxDecomp;
00039 double maxSolveRelax;
00040 double maxSolveRelaxApp;
00041 double maxSolUpdate;
00042 double maxGenCuts;
00043 double maxGenVars;
00044
00045 public:
00046 vector<double> thisDecomp;
00047 vector<double> thisSolveRelax;
00048 vector<double> thisSolveRelaxApp;
00049 vector<double> thisSolUpdate;
00050 vector<double> thisGenCuts;
00051 vector<double> thisGenVars;
00052
00053 public:
00054 void calculateStats();
00055 void printOverallStats (ostream* os = &cout);
00056 void printDetailedStats(ostream* os = &cout);
00057
00058 public:
00059 DecompStats() :
00060
00061 timerOverall (0),
00062 timerDecomp (0),
00063 timerOther1 (0),
00064 timerOther2 (0),
00065
00066 totalOverall (0.0),
00067
00068 totalDecomp (0.0),
00069 totalSolveRelax (0.0),
00070 totalSolveRelaxApp(0.0),
00071 totalSolUpdate (0.0),
00072 totalGenCuts (0.0),
00073 totalGenVars (0.0),
00074
00075 maxDecomp (0.0),
00076 maxSolveRelax (0.0),
00077 maxSolveRelaxApp (0.0),
00078 maxSolUpdate (0.0),
00079 maxGenCuts (0.0),
00080 maxGenVars (0.0)
00081
00082 {
00083 }
00084
00085 ~DecompStats() {}
00086
00087 };
00088
00089
00090 #endif