BB_init.cpp
Go to the documentation of this file.
1 // Last edit: 5/19/07
2 //
3 // Name: BB_init.cpp
4 // Author: Francois Margot
5 // Tepper School of Business
6 // Carnegie Mellon University, Pittsburgh, PA 15213
7 // email: fmargot@andrew.cmu.edu
8 // Date: 12/28/03
9 //-----------------------------------------------------------------------------
10 // Copyright (C) 2003, Francois Margot, International Business Machines
11 // Corporation and others. All Rights Reserved.
12 
13 #include "BB_init.hpp"
14 #include "BB_lp.hpp"
15 #include "BB_tm.hpp"
16 #include "BB_packer.hpp"
17 
18 using namespace std;
19 
20 /****************************************************************************/
23 {
24  return new BB_lp;
25 }
26 
27 /****************************************************************************/
30  const int argnum, const char * const * arglist)
31 {
32  cout << "Compilation flags: ";
33 
34 #ifdef HEUR_SOL
35  cout << "HEUR_SOL ";
36 #endif
37 
38 #ifdef CUSTOM_BRANCH
39  cout << "CUSTOM_BRANCH ";
40 #endif
41 
42 #ifdef USER_DATA
43  cout << "USER_DATA ";
44 #endif
45 
46  cout << endl << endl;
47 
48  BB_tm* tm = new BB_tm;
49 
50  if(argnum > 1) {
51  tm->readInput(arglist[1]);
52  }
53  else {
54  tm->readInput(NULL);
55  }
56  return tm;
57 }
58 
59 /****************************************************************************/
62 {
63  return new BB_packer;
64 }
65 
Definition: BB_tm.hpp:19
virtual BCP_tm_user * tm_init(BCP_tm_prob &p, const int argnum, const char *const *arglist)
Definition: BB_init.cpp:29
virtual BCP_lp_user * lp_init(BCP_lp_prob &p)
Definition: BB_init.cpp:22
NO OLD DOC.
Definition: BCP_lp.hpp:102
The BCP_lp_user class is the base class from which the user can derive a problem specific class to be...
Definition: BCP_lp_user.hpp:75
Class taking care of packing/unpacking.
Definition: BB_packer.hpp:22
NO OLD DOC.
Definition: BCP_tm.hpp:136
void readInput(const char *filename)
Read input and set up data in class BB_prob.
Definition: BB_tm.cpp:41
The BCP_tm_user class is the base class from which the user can derive a problem specific class to be...
Definition: BCP_tm_user.hpp:58
Class for operations at the node level.
Definition: BB_lp.hpp:23
virtual BCP_user_pack * packer_init(BCP_user_class *p)
Definition: BB_init.cpp:61