00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef OSDIPPARAM_H
00014 #define OSDIPPARAM_H
00015
00016
00017 #include "UtilParameters.h"
00018
00019
00030
00031 class OSDipParam {
00032
00033
00034
00035 public:
00036 int LogLevel;
00037 std::string DataDir;
00038 std::string OSiLFile;
00039 std::string OSoLFile;
00040 std::string solverFactory;
00041 int UseNames;
00042 int UseSparse;
00043 int FullModel;
00044 double BestKnownLB;
00045 double BestKnownUB;
00046 double ColumnUB;
00047 double ColumnLB;
00048
00049
00050
00051
00052 public:
00053 void getSettings(UtilParameters & utilParam){
00054 static const char * common ="OSDip";
00055 LogLevel = utilParam.GetSetting("LogLevel", 3, common);
00056 DataDir = utilParam.GetSetting("DataDir", "", common);
00057 OSiLFile = utilParam.GetSetting("OSiLFile", "", common);
00058 OSoLFile = utilParam.GetSetting("OSoLFile", "", common);
00059 solverFactory = utilParam.GetSetting("solverFactory", "", common);
00060 UseNames = utilParam.GetSetting("UseNames", 0, common);
00061 UseSparse = utilParam.GetSetting("UseSparse", 0, common);
00062 FullModel = utilParam.GetSetting("FullModel", 0, common);
00063 BestKnownLB = utilParam.GetSetting("BestKnownLB", -1.e100, common);
00064 BestKnownUB = utilParam.GetSetting("BestKnownUB", 1.e100, common);
00065 ColumnUB = utilParam.GetSetting("ColumnUB", 1.0, common);
00066 ColumnLB = utilParam.GetSetting("ColumnLB", 0.0, common);
00067
00068 }
00069
00070 void dumpSettings(std::ostream * os = &std::cout){
00071 static const char * common = "OSDip";
00072 (*os) << "\n=====================================================\n"
00073 << "OSDipParam PARAMETER SETTINGS \n";
00074 (*os) << common << ": LogLevel : " << LogLevel << std::endl;
00075 (*os) << common << ": DataDir : " << DataDir << std::endl;
00076 (*os) << common << ": OSiLFile : " << OSiLFile << std::endl;
00077 (*os) << common << ": OSoLFile : " << OSoLFile << std::endl;
00078 (*os) << common << ": solverFactory : " << solverFactory << std::endl;
00079 (*os) << common << ": UseNames : " << UseNames << std::endl;
00080 (*os) << common << ": UseSparse : " << UseSparse << std::endl;
00081 (*os) << common << ": FullModel : " << FullModel << std::endl;
00082 (*os) << common << ": BestKnownLB : " << BestKnownLB << std::endl;
00083 (*os) << common << ": BestKnownUB : " << BestKnownUB << std::endl;
00084 (*os) << common << ": ColumnUB : " << ColumnUB << std::endl;
00085 (*os) << common << ": ColumnLB : " << ColumnLB << std::endl;
00086
00087 (*os) << "\n=====================================================\n";
00088 }
00089
00090 public:
00091 OSDipParam():
00092 LogLevel (3 ),
00093 DataDir (""),
00094 OSiLFile (""),
00095 OSoLFile (""),
00096 solverFactory (""),
00097 UseNames (0),
00098 UseSparse (1),
00099 FullModel (0),
00100 BestKnownLB (-1.e100),
00101 BestKnownUB ( 1.e100),
00102 ColumnUB ( 1.0),
00103 ColumnLB (0.0)
00104
00105 {};
00106 ~OSDipParam() {};
00107
00108 };
00109
00110 #endif