DecompConstants.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef DECOMP_CONSTANTS_INCLUDED
00014 #define DECOMP_CONSTANTS_INCLUDED
00015
00016 #include "DecompTypes.h"
00017
00018 const char DecompVersion[10] = "0.1";
00019 const double DecompEpsilon = 1.0e-6;
00020
00021 #ifdef __DECOMP_LP_CLP__
00022 #include "OsiClpSolverInterface.hpp"
00023 const double DecompInf = OsiClpInfinity;
00024 #endif
00025
00026 #ifdef __DECOMP_LP_CPX__
00027 #include "OsiCpxSolverInterface.hpp"
00028 const double DecompInf = CPX_INFBOUND;
00029 #endif
00030
00031 enum decompAlgoType{CUT,
00032 PRICE_AND_CUT,
00033 RELAX_AND_CUT,
00034 VOL_AND_CUT,
00035 DECOMP};
00036 enum decompPhase{PHASE_INIT,
00037 PHASE_PRICE,
00038 PHASE_CUT,
00039 PHASE_DONE,
00040 PHASE_UNKNOWN};
00041
00042 const char decompPhaseStr[5][20] = {"PHASE_INIT",
00043 "PHASE_PRICE",
00044 "PHASE_CUT",
00045 "PHASE_DONE",
00046 "PHASE_UNKNOWN"};
00047
00048 enum decompStat{STAT_FEASIBLE,
00049 STAT_INFEASIBLE,
00050 STAT_UNKNOWN};
00051
00052 const char decompStatStr[3][20] = {"STAT_FEASIBLE",
00053 "STAT_INFEASIBLE",
00054 "STAT_UNKNOWN"};
00055
00056 #endif