00001 // Copyright (C) 2000, International Business Machines 00002 // Corporation and others. All Rights Reserved. 00003 #include "MC_tm_param.hpp" 00004 #include "BCP_parameters.hpp" 00005 00006 using std::make_pair; 00007 00008 template <> 00009 void BCP_parameter_set<MC_tm_par>::create_keyword_list() { 00010 // Create the list of keywords for parameter file reading 00011 //-------------------------------------------------------------------------- 00012 // CharPar 00013 keys.push_back(make_pair(BCP_string("MC_DisplaySolutionSignature"), 00014 BCP_parameter(BCP_CharPar, 00015 DisplaySolutionSignature))); 00016 // keys.push_back(make_pair(BCP_string("MC_"), 00017 // BCP_parameter(BCP_CharPar, 00018 // ))); 00019 //-------------------------------------------------------------------------- 00020 // IntPar 00021 keys.push_back(make_pair(BCP_string("MC_DigitsToLose"), 00022 BCP_parameter(BCP_IntPar, 00023 DigitsToLose))); 00024 // keys.push_back(make_pair(BCP_string("MC_"), 00025 // BCP_parameter(BCP_IntPar, 00026 // ))); 00027 //-------------------------------------------------------------------------- 00028 // DoublePar 00029 // keys.push_back(make_pair(BCP_string("MC_"), 00030 // BCP_parameter(BCP_DoublePar, 00031 // ))); 00032 00033 //-------------------------------------------------------------------------- 00034 // StringPar 00035 keys.push_back(make_pair(BCP_string("MC_FeasSolFile"), 00036 BCP_parameter(BCP_StringPar, 00037 FeasSolFile))); 00038 keys.push_back(make_pair(BCP_string("MC_InputFile"), 00039 BCP_parameter(BCP_StringPar, 00040 InputFile))); 00041 keys.push_back(make_pair(BCP_string("MC_SolutionFile"), 00042 BCP_parameter(BCP_StringPar, 00043 SolutionFile))); 00044 // keys.push_back(make_pair(BCP_string("MC_"), 00045 // BCP_parameter(BCP_StringPar, 00046 // ))); 00047 //-------------------------------------------------------------------------- 00048 // StringArrayPar 00049 // keys.push_back(make_pair(BCP_string("MC_"), 00050 // BCP_parameter(BCP_StringArrayPar, 00051 // ))); 00052 //-------------------------------------------------------------------------- 00053 // BooleanListPar 00054 // keys.push_back(make_pair(BCP_string("MC_TmVerbosity_PrunedNodeInfo"), 00055 // BCP_parameter(BCP_BooleanListPar, 00056 // Verbosity, 00057 // BCP_TmVerb_PrunedNodeInfo))); 00058 } 00059 00060 //############################################################################# 00061 00062 template <> 00063 void BCP_parameter_set<MC_tm_par>::set_default_entries(){ 00064 //-------------------------------------------------------------------------- 00065 // CharPar 00066 set_entry(DisplaySolutionSignature, false); 00067 //-------------------------------------------------------------------------- 00068 // IntPar 00069 set_entry(DigitsToLose, 0); 00070 //-------------------------------------------------------------------------- 00071 // DoublePar 00072 //-------------------------------------------------------------------------- 00073 // StringPar 00074 set_entry(FeasSolFile, ""); 00075 set_entry(InputFile, "graph.in"); 00076 set_entry(SolutionFile, ""); 00077 //-------------------------------------------------------------------------- 00078 // StringArrayPar 00079 //-------------------------------------------------------------------------- 00080 // BooleanListPar 00081 }