DecompStats.h

Go to the documentation of this file.
00001 //===========================================================================//
00002 // This file is part of the Decomp Solver Framework.                         //
00003 //                                                                           //
00004 // Decomp is distributed under the Common Public License as part of the      //
00005 // COIN-OR repository (http://www.coin-or.org).                              //
00006 //                                                                           //
00007 // Author: Matthew Galati, Lehigh University                                 //
00008 //                                                                           //
00009 // Copyright (C) 2002-2007, Lehigh University, Matthew Galati, and Ted Ralphs//
00010 // All Rights Reserved.                                                      //
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); //ostream?
00056    void printDetailedStats(ostream* os = &cout); //ostream?
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

Generated on 12 Mar 2015 for Dip-All by  doxygen 1.6.1