/home/coin/SVN-release/OS-2.2.0/OS/examples/branchCutPrice/Member/OS_init.cpp

Go to the documentation of this file.
00001 /* $Id: OS_init.cpp 2698 2009-06-09 04:14:07Z kmartin $ */
00002 // Last edit: 12/26/05
00003 //
00004 // Name:     OS_tm.cpp
00005 // Author:   Francois Margot
00006 //           Tepper School of Business
00007 //           Carnegie Mellon University, Pittsburgh, PA 15213
00008 //           email: fmargot@andrew.cmu.edu
00009 // Date:     12/28/03
00010 //-----------------------------------------------------------------------------
00011 // Copyright (C) 2003, Francois Margot, International Business Machines
00012 // Corporation and others.  All Rights Reserved.
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           //std::cout << "ARGNUM = " << argnum << std::endl;
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 }

Generated on Thu Aug 5 03:02:58 2010 by  doxygen 1.4.7