/home/coin/SVN-release/OS-2.4.2/Bcp/examples/BAC/Member/BB_init.cpp

Go to the documentation of this file.
00001 // Last edit: 5/19/07
00002 //
00003 // Name:     BB_init.cpp
00004 // Author:   Francois Margot
00005 //           Tepper School of Business
00006 //           Carnegie Mellon University, Pittsburgh, PA 15213
00007 //           email: fmargot@andrew.cmu.edu
00008 // Date:     12/28/03
00009 //-----------------------------------------------------------------------------
00010 // Copyright (C) 2003, Francois Margot, International Business Machines
00011 // Corporation and others.  All Rights Reserved.
00012 
00013 #include "BB_init.hpp"
00014 #include "BB_lp.hpp"
00015 #include "BB_tm.hpp"
00016 #include "BB_packer.hpp"
00017 
00018 using namespace std;
00019 
00020 /****************************************************************************/
00021 BCP_lp_user *
00022 BB_init::lp_init(BCP_lp_prob& p)
00023 {
00024   return new BB_lp;
00025 }
00026 
00027 /****************************************************************************/
00028 BCP_tm_user *
00029 BB_init::tm_init(BCP_tm_prob& p,
00030                  const int argnum, const char * const * arglist)
00031 {
00032   cout << "Compilation flags: ";
00033   
00034 #ifdef HEUR_SOL
00035   cout << "HEUR_SOL ";
00036 #endif
00037   
00038 #ifdef CUSTOM_BRANCH
00039   cout << "CUSTOM_BRANCH ";
00040 #endif
00041   
00042 #ifdef USER_DATA
00043   cout << "USER_DATA ";
00044 #endif
00045 
00046   cout << endl << endl;
00047   
00048   BB_tm* tm = new BB_tm;
00049 
00050   if(argnum > 1) {
00051     tm->readInput(arglist[1]);
00052   }
00053   else {
00054     tm->readInput(NULL);
00055   }
00056   return tm;
00057 }
00058 
00059 /****************************************************************************/
00060 BCP_user_pack *
00061 BB_init::packer_init(BCP_user_class* p)
00062 {
00063     return new BB_packer;
00064 }
00065 

Generated on Wed Nov 30 03:03:46 2011 by  doxygen 1.4.7