00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #include "OS_init.hpp"
00015 #include "OS_lp.hpp"
00016 #include "OS_tm.hpp"
00017 #include "OS_packer.hpp"
00018
00019 using namespace std;
00020
00021
00022 BCP_lp_user *OS_init::lp_init(BCP_lp_prob& p) {
00023 return new OS_lp;
00024 }
00025
00026
00027 BCP_tm_user* OS_init::tm_init(BCP_tm_prob& p,
00028 const int argnum, const char * const * arglist)
00029 {
00030
00031
00032
00033 cout << "Compilation flags: ";
00034
00035 #ifdef HEUR_SOL
00036 cout << "HEUR_SOL ";
00037 #endif
00038
00039 #ifdef CUSTOM_BRANCH
00040 cout << "CUSTOM_BRANCH ";
00041 #endif
00042
00043 #ifdef USER_DATA
00044 cout << "USER_DATA ";
00045 #endif
00046
00047 cout << endl << endl;
00048
00049
00050 OS_tm* tm = new OS_tm;
00051
00052 if(argnum > 1) {
00053
00054 tm->readInput( arglist[1]);
00055 }
00056 else {
00057 tm->readInput(NULL);
00058 }
00059 return tm;
00060 }
00061
00062 BCP_user_pack * OS_init::packer_init(BCP_user_class* p) {
00063 return new OS_packer;
00064 }