#include "Decomp.h"
#include "CoinError.hpp"
#include "CoinPackedVector.hpp"
#include "CoinHelperFunctions.hpp"
#include "UtilTimer.h"
Go to the source code of this file.
Defines | |
#define | UTIL_USE_TIMERS |
#define | UtilException(msg, methodN, classN) CoinError(msg,methodN,classN,__FILE__,__LINE__) |
#define | UtilExceptionMemory(methodN, classN) UtilException("Out of memory",methodN,classN) |
Functions | |
void | UtilPrintFuncBegin (std::ostream *os, const std::string &classTag, const std::string &funcName, const int logLevel, const int logLimit) |
void | UtilPrintFuncEnd (std::ostream *os, const std::string &classTag, const std::string &funcName, const int logLevel, const int logLimit) |
double | UtilCalculateGap (const double boundLB, const double boundUB) |
Calculate gap: |(ub-lb)|/|lb|. | |
CoinPackedVector * | UtilPackedVectorFromDense (const int len, const double *dense, const double etol) |
void | UtilPackedVectorFromDense (const int len, const double *dense, const double etol, CoinPackedVector &v) |
void | UtilPrintPackedVector (const CoinPackedVector &v, std::ostream *os=&std::cout, DecompApp *app=0) |
void | UtilPrintPackedVector (const CoinPackedVector &v, std::ostream *os, const std::vector< std::string > &colNames, const double *value=NULL) |
Variables | |
static UtilTimer | globalTimer |
static std::map< std::string, UtilTimer > | globalTimerFuncMap |
#define UTIL_USE_TIMERS |
Definition at line 20 of file UtilMacrosDecomp.h.
#define UtilException | ( | msg, | |||
methodN, | |||||
classN | ) | CoinError(msg,methodN,classN,__FILE__,__LINE__) |
Definition at line 40 of file UtilMacrosDecomp.h.
Referenced by AlpsDecompModel::AlpsDecompModel(), SDPUC_Param::getSettings(), MMKP_Param::getSettings(), MCF_Param::getSettings(), and DecompApp::setModelRelax().
#define UtilExceptionMemory | ( | methodN, | |||
classN | ) | UtilException("Out of memory",methodN,classN) |
Definition at line 42 of file UtilMacrosDecomp.h.
Referenced by DecompAlgoModel::setOsi().
void UtilPrintFuncBegin | ( | std::ostream * | os, | |
const std::string & | classTag, | |||
const std::string & | funcName, | |||
const int | logLevel, | |||
const int | logLimit | |||
) | [inline] |
Definition at line 51 of file UtilMacrosDecomp.h.
References UtilTimer::getCpuTime(), UtilTimer::getRealTime(), globalTimerFuncMap, and UtilTimer::reset().
Referenced by DecompAlgoPC::setObjBound(), DecompAlgo::setObjBound(), DecompAlgoD::setObjBoundIP(), and DecompAlgo::setObjBoundIP().
void UtilPrintFuncEnd | ( | std::ostream * | os, | |
const std::string & | classTag, | |||
const std::string & | funcName, | |||
const int | logLevel, | |||
const int | logLimit | |||
) | [inline] |
Definition at line 78 of file UtilMacrosDecomp.h.
References UtilTimer::getCpuTime(), UtilTimer::getRealTime(), and globalTimerFuncMap.
Referenced by DecompAlgoPC::setObjBound(), DecompAlgo::setObjBound(), DecompAlgoD::setObjBoundIP(), and DecompAlgo::setObjBoundIP().
double UtilCalculateGap | ( | const double | boundLB, | |
const double | boundUB | |||
) | [inline] |
Calculate gap: |(ub-lb)|/|lb|.
Definition at line 162 of file UtilMacrosDecomp.h.
References DecompInf.
Referenced by DecompAlgo::getGlobalGap(), DecompAlgo::getNodeIPGap(), and DecompAlgo::getNodeLPGap().
CoinPackedVector* UtilPackedVectorFromDense | ( | const int | len, | |
const double * | dense, | |||
const double | etol | |||
) |
void UtilPackedVectorFromDense | ( | const int | len, | |
const double * | dense, | |||
const double | etol, | |||
CoinPackedVector & | v | |||
) |
void UtilPrintPackedVector | ( | const CoinPackedVector & | v, | |
std::ostream * | os = &std::cout , |
|||
DecompApp * | app = 0 | |||
) |
void UtilPrintPackedVector | ( | const CoinPackedVector & | v, | |
std::ostream * | os, | |||
const std::vector< std::string > & | colNames, | |||
const double * | value = NULL | |||
) |
UtilTimer globalTimer [static] |
Definition at line 29 of file UtilMacrosDecomp.h.
Referenced by DecompAlgo::setObjBound(), and DecompAlgo::setObjBoundIP().
std::map<std::string, UtilTimer> globalTimerFuncMap [static] |
Definition at line 36 of file UtilMacrosDecomp.h.
Referenced by UtilPrintFuncBegin(), and UtilPrintFuncEnd().