OS_init.cpp
Go to the documentation of this file.
1 /* $Id: OS_init.cpp 2698 2009-06-09 04:14:07Z kmartin $ */
2 // Last edit: 12/26/05
3 //
4 // Name: OS_tm.cpp
5 // Author: Francois Margot
6 // Tepper School of Business
7 // Carnegie Mellon University, Pittsburgh, PA 15213
8 // email: fmargot@andrew.cmu.edu
9 // Date: 12/28/03
10 //-----------------------------------------------------------------------------
11 // Copyright (C) 2003, Francois Margot, International Business Machines
12 // Corporation and others. All Rights Reserved.
13 
14 #include "OS_init.hpp"
15 #include "OS_lp.hpp"
16 #include "OS_tm.hpp"
17 #include "OS_packer.hpp"
18 
19 using namespace std;
20 
21 /****************************************************************************/
23  return new OS_lp;
24 }
25 
26 /****************************************************************************/
28  const int argnum, const char * const * arglist)
29 {
30 
31 
32 
33  cout << "Compilation flags: ";
34 
35 #ifdef HEUR_SOL
36  cout << "HEUR_SOL ";
37 #endif
38 
39 #ifdef CUSTOM_BRANCH
40  cout << "CUSTOM_BRANCH ";
41 #endif
42 
43 #ifdef USER_DATA
44  cout << "USER_DATA ";
45 #endif
46 
47  cout << endl << endl;
48 
49 
50  OS_tm* tm = new OS_tm;
51 
52  if(argnum > 1) {
53  //std::cout << "ARGNUM = " << argnum << std::endl;
54  tm->readInput( arglist[1]);
55  }
56  else {
57  tm->readInput(NULL);
58  }
59  return tm;
60 }
61 
63  return new OS_packer;
64 }
NO OLD DOC.
Definition: BCP_lp.hpp:102
void readInput(const char *filename)
Read input and set up data in class OS_prob.
Definition: OS_tm.cpp:64
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: OS_packer.hpp:23
NO OLD DOC.
Definition: BCP_tm.hpp:136
Definition: OS_tm.hpp:29
virtual BCP_tm_user * tm_init(BCP_tm_prob &p, const int argnum, const char *const *arglist)
Definition: OS_init.cpp:27
virtual BCP_lp_user * lp_init(BCP_lp_prob &p)
Definition: OS_init.cpp:22
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: OS_lp.hpp:28
virtual BCP_user_pack * packer_init(BCP_user_class *p)
Definition: OS_init.cpp:62