Dip
0.92.4
|
Go to the source code of this file.
Classes | |
struct | AddOffset< T > |
struct | Perturb |
class | UtilIsGreaterThan< S, T > |
class | UtilIsLessThan< S, T > |
Macros | |
#define | UTIL_DELPTR(x) if(x) {delete x; x = 0;} |
#define | UTIL_DELARR(x) if(x) {delete [] x; x = 0;} |
#define | UTIL_DEBUG(param, level, x) if(param > level) {x fflush(stdout);} |
#define | UTIL_DEBUG0(x) {x fflush(stdout);} |
Functions | |
template<class T > | |
void | UtilPrintVector (const vector< T > &v, ostream *os=&cout) |
template<class T > | |
void | UtilPrintList (const list< T > &v, ostream *os=&cout) |
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, ostream *os=&cout, DecompApp *app=0) |
int | UtilNumEdgesU (const int n) |
int | UtilIndexU (const int i, const int j) |
pair< int, int > | UtilBothEndsU (const int index) |
void | UtilPrintEdge (const int index, ostream *os=&cout) |
template<class T > | |
void | UtilFillN (T *to, const int size, const T value) |
template<class T > | |
void | UtilFillN (vector< T > &v, const int size, const T value) |
void | UtilIotaN (int *first, const int size, const int init) |
void | UtilIotaN (vector< int > &first, const int size, const int init) |
double | UtilURand (const double a, const double b) |
int | UtilURand (const int a, const int b) |
double | UtilAve (const vector< double > &x) |
double | UtilAve (const vector< int > &x) |
double | UtilAve (const double *x, const int len) |
double | UtilFracPart (const double x) |
int | UtilScaleDblToIntArr (const int arrLen, const double *arrDbl, int *arrInt, const double oneDbl, int *oneInt, const double epstol=UtilEpsilon) |
int | UtilScaleDblToIntArr (const int arrLen, const double *arrDbl, int *arrInt, const double epstol=UtilEpsilon) |
bool | UtilIsZero (const double x, const double etol=1.0e-8) |
string | UtilIntToStr (const int i) |
template<class T > | |
void | UtilDeleteVectorPtr (vector< T * > &vectorPtr, typename vector< T * >::iterator first, typename vector< T * >::iterator last) |
template<class T > | |
void | UtilDeleteVectorPtr (vector< T * > &vectorPtr) |
template<class T > | |
void | UtilDeleteListPtr (list< T * > &listPtr, typename list< T * >::iterator first, typename list< T * >::iterator last) |
template<class T > | |
void | UtilDeleteListPtr (list< T * > &listPtr) |
bool | UtilIsIntegral (const double x, const double etol=1.0e-10) |
template<class T > | |
void | UtilNegateArr (const int arrLen, T *arr) |
template<class T > | |
void | UtilAddOffsetArr (const int arrLen, T offset, T *arr) |
void | UtilPerturbCost (const int seed, const int arrLen, const double randLB, const double randUB, double *arr) |
void | UtilFlipRowLtoG (const int len, double *els, char &sense, double &rhs) |
void | UtilBoundToSense (const double lb, const double ub, const double inf, char &sense, double &rhs, double &range) |
void | UtilSenseToBound (const char sense, const double rhs, const double range, const double inf, double &lb, double &ub) |
string | UtilDirSlash () |
void | UtilOpenFile (ifstream &fs, const char *fileName) throw (CoinError) |
string & | UtilStrTrim (string &s, const string &t=UtilSpaces) |
string & | UtilStrToLower (string &s) |
string & | UtilStrToUpper (string &s) |
Variables | |
const string | UtilSpaces = " \t\r\n" |
const double | UtilEpsilon = 1.0e-6 |
#define UTIL_DELPTR | ( | x | ) | if(x) {delete x; x = 0;} |
Definition at line 28 of file UtilMacros.h.
Referenced by DecompWaitingCol::deleteCol(), DecompWaitingRow::deleteCut(), DecompWaitingRow::deleteRow(), DecompWaitingRow::deleteRowReform(), DecompWaitingCol::deleteVar(), MAD_Qualex::setUpForSolve(), AP3_DecompApp::~AP3_DecompApp(), DecompAlgo::~DecompAlgo(), DecompAlgoCGL::~DecompAlgoCGL(), DecompApp::~DecompApp(), DecompConstraintSet::~DecompConstraintSet(), MAD_DecompApp::~MAD_DecompApp(), MAD_Qualex::~MAD_Qualex(), MCF_DecompApp::~MCF_DecompApp(), and MILPBlock_DecompApp::~MILPBlock_DecompApp().
#define UTIL_DELARR | ( | x | ) | if(x) {delete [] x; x = 0;} |
Definition at line 29 of file UtilMacros.h.
Referenced by CVRPsep_LPSol::clear(), ConcordeGraph::clear(), AlpsDecompSolution::~AlpsDecompSolution(), AP3_DecompApp::~AP3_DecompApp(), AP3_Instance::~AP3_Instance(), ATM_Instance::~ATM_Instance(), DecompAlgo::~DecompAlgo(), DecompAlgoRC::~DecompAlgoRC(), DecompApp::~DecompApp(), DecompMemPool::~DecompMemPool(), DecompModel::~DecompModel(), DecompSolution::~DecompSolution(), GAP_DecompApp::~GAP_DecompApp(), GAP_Instance::~GAP_Instance(), GAP_KnapPisinger::~GAP_KnapPisinger(), GAP_Knapsack::~GAP_Knapsack(), MAD_MemPool::~MAD_MemPool(), MAD_Qualex::~MAD_Qualex(), MCF_DecompApp::~MCF_DecompApp(), MCF_Instance::~MCF_Instance(), MILP_DecompApp::~MILP_DecompApp(), MILPBlock_DecompApp::~MILPBlock_DecompApp(), MMKP_DecompApp::~MMKP_DecompApp(), MMKP_Instance::~MMKP_Instance(), MMKP_MCKnap::~MMKP_MCKnap(), MMKP_MemPool::~MMKP_MemPool(), MMKP_Model::~MMKP_Model(), SDPUC_DecompApp::~SDPUC_DecompApp(), SDPUC_Instance::~SDPUC_Instance(), SmallIP_DecompApp::~SmallIP_DecompApp(), TSP_DecompApp::~TSP_DecompApp(), UtilGraphLib::~UtilGraphLib(), VRP_Concorde::~VRP_Concorde(), and VRP_DecompApp::~VRP_DecompApp().
#define UTIL_DEBUG | ( | param, | |
level, | |||
x | |||
) | if(param > level) {x fflush(stdout);} |
Definition at line 34 of file UtilMacros.h.
Referenced by VRP_CVRPsep::buildLpSol().
#define UTIL_DEBUG0 | ( | x | ) | {x fflush(stdout);} |
Definition at line 35 of file UtilMacros.h.
|
inline |
Definition at line 39 of file UtilMacros.h.
|
inline |
Definition at line 52 of file UtilMacros.h.
CoinPackedVector* UtilPackedVectorFromDense | ( | const int | len, |
const double * | dense, | ||
const double | etol | ||
) |
Referenced by DecompVar::DecompVar().
void UtilPackedVectorFromDense | ( | const int | len, |
const double * | dense, | ||
const double | etol, | ||
CoinPackedVector & | v | ||
) |
void UtilPrintPackedVector | ( | const CoinPackedVector & | v, |
ostream * | os = &cout , |
||
DecompApp * | app = 0 |
||
) |
|
inline |
Definition at line 128 of file UtilMacros.h.
Referenced by VRP_Concorde::buildExpandedCompleteGraph().
|
inline |
Definition at line 134 of file UtilMacros.h.
Referenced by VRP_Concorde::createVrpRouteFromTspEdgeList(), VRP_Concorde::createVrpRouteFromTspRoute(), VRP_Concorde::setExpandedCost(), and VRP_Concorde::solveTSP().
pair<int, int> UtilBothEndsU | ( | const int | index | ) |
|
inline |
Definition at line 143 of file UtilMacros.h.
References UtilBothEndsU().
|
inline |
Definition at line 158 of file UtilMacros.h.
References CoinFillN().
Referenced by VRP_Concorde::createVrpRouteFromTspEdgeList(), and VRP_Concorde::createVrpRouteFromTspRoute().
|
inline |
Definition at line 165 of file UtilMacros.h.
|
inline |
Definition at line 171 of file UtilMacros.h.
Referenced by DecompSubModel::setOsi().
|
inline |
Definition at line 185 of file UtilMacros.h.
|
inline |
Definition at line 202 of file UtilMacros.h.
Referenced by Perturb::operator()().
|
inline |
Definition at line 209 of file UtilMacros.h.
|
inline |
Definition at line 220 of file UtilMacros.h.
|
inline |
Definition at line 226 of file UtilMacros.h.
|
inline |
Definition at line 232 of file UtilMacros.h.
|
inline |
Definition at line 243 of file UtilMacros.h.
References UtilEpsilon.
Referenced by GAP_KnapPisinger::calcScaleFactor().
int UtilScaleDblToIntArr | ( | const int | arrLen, |
const double * | arrDbl, | ||
int * | arrInt, | ||
const double | oneDbl, | ||
int * | oneInt, | ||
const double | epstol = UtilEpsilon |
||
) |
Referenced by VRP_Concorde::setExpandedCost().
int UtilScaleDblToIntArr | ( | const int | arrLen, |
const double * | arrDbl, | ||
int * | arrInt, | ||
const double | epstol = UtilEpsilon |
||
) |
|
inline |
Definition at line 272 of file UtilMacros.h.
Referenced by GAP_KnapPisinger::calcScaleFactor(), VRP_CVRPsep::createVrpCuts(), DecompSolution::print(), UtilBoundToSense(), and UtilIsIntegral().
|
inline |
Definition at line 279 of file UtilMacros.h.
Referenced by MAD_Cliquer::cliqueFindOneQualex(), MAD_Cliquer::printGraphDimacs(), MAD_Cliquer::printWeightDimacs(), and MAD_Cliquer::readDimacsSolution().
void UtilDeleteVectorPtr | ( | vector< T * > & | vectorPtr, |
typename vector< T * >::iterator | first, | ||
typename vector< T * >::iterator | last | ||
) |
Definition at line 288 of file UtilMacros.h.
Referenced by UtilDeleteMapVecPtr(), UtilDeleteVectorPtr(), ATM_DecompApp::~ATM_DecompApp(), DecompAlgo::~DecompAlgo(), GAP_DecompApp::~GAP_DecompApp(), MCF_DecompApp::~MCF_DecompApp(), MMKP_DecompApp::~MMKP_DecompApp(), SDPUC_DecompApp::~SDPUC_DecompApp(), TSP_DecompApp::~TSP_DecompApp(), and VRP_DecompApp::~VRP_DecompApp().
void UtilDeleteVectorPtr | ( | vector< T * > & | vectorPtr | ) |
Definition at line 302 of file UtilMacros.h.
References UtilDeleteVectorPtr().
void UtilDeleteListPtr | ( | list< T * > & | listPtr, |
typename list< T * >::iterator | first, | ||
typename list< T * >::iterator | last | ||
) |
Definition at line 308 of file UtilMacros.h.
Referenced by UtilDeleteListPtr(), and DecompAlgo::~DecompAlgo().
void UtilDeleteListPtr | ( | list< T * > & | listPtr | ) |
Definition at line 322 of file UtilMacros.h.
References UtilDeleteListPtr().
|
inline |
Definition at line 328 of file UtilMacros.h.
References UtilIsZero().
Referenced by MAD_DecompSolution::print(), and UtilIsIntegral().
|
inline |
Definition at line 335 of file UtilMacros.h.
|
inline |
Definition at line 352 of file UtilMacros.h.
Referenced by VRP_Concorde::setExpandedCost().
|
inline |
Definition at line 371 of file UtilMacros.h.
References srand.
|
inline |
Definition at line 382 of file UtilMacros.h.
|
inline |
Definition at line 405 of file UtilMacros.h.
References UtilIsZero().
Referenced by DecompCut::setStringHash().
|
inline |
Definition at line 440 of file UtilMacros.h.
|
inline |
Definition at line 514 of file UtilMacros.h.
|
inline |
Definition at line 526 of file UtilMacros.h.
References CoinAssertHint.
Referenced by VRP_Concorde::createTSPLIBFile(), VRP_Boost::printDotFile(), AP3_Instance::readInstance(), AP3_Instance::readOptimalBound(), and UtilOpenFile().
|
inline |
Definition at line 545 of file UtilMacros.h.
|
inline |
Definition at line 570 of file UtilMacros.h.
|
inline |
Definition at line 590 of file UtilMacros.h.
const string UtilSpaces = " \t\r\n" |
Definition at line 21 of file UtilMacros.h.
const double UtilEpsilon = 1.0e-6 |
Definition at line 22 of file UtilMacros.h.
Referenced by UtilFracPart().