coin-Bcp
BB_tm.hpp
Go to the documentation of this file.
1 // Last edit: 2/10/05
2 //
3 // Name: BB_tm.hpp
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 #ifndef _BB_TM_H
14 #define _BB_TM_H
15 
16 #include "BCP_tm_user.hpp"
17 #include "BB.hpp"
18 
19 class BB_tm : public BCP_tm_user {
20 
21 private:
22 
25  BB_prob desc;
28 
29 public:
30 
33  BB_tm() {}
35 
37  virtual ~BB_tm() {}
39 
41  void readInput(const char* filename);
42 
45  virtual void pack_module_data(BCP_buffer& buf, BCP_process_t ptype);
46 
48  virtual void initialize_core(BCP_vec<BCP_var_core*>& vars,
50  BCP_lp_relax*& matrix);
51 
53  virtual void create_root(BCP_vec<BCP_var*>& added_vars,
54  BCP_vec<BCP_cut*>& added_cuts,
55  BCP_user_data*& user_data);
56 
58  virtual void display_feasible_solution(const BCP_solution* sol);
59 
60 };
61 #endif
Definition: BB_tm.hpp:19
BCP_process_t
This enumerative constant describes the various process types.
virtual void pack_module_data(BCP_buffer &buf, BCP_process_t ptype)
Pack data into a buffer; will not work in parallel environment as it uses pointer.
virtual void display_feasible_solution(const BCP_solution *sol)
Print a feasible solution.
Class holding data for describing the problem.
Definition: BB.hpp:21
virtual void initialize_core(BCP_vec< BCP_var_core * > &vars, BCP_vec< BCP_cut_core * > &cuts, BCP_lp_relax *&matrix)
Pass the core constraints and core variables to bcp.
BB_tm()
Default constructor.
Definition: BB_tm.hpp:34
virtual ~BB_tm()
Default destructor.
Definition: BB_tm.hpp:37
virtual void create_root(BCP_vec< BCP_var * > &added_vars, BCP_vec< BCP_cut * > &added_cuts, BCP_user_data *&user_data)
Create the root node of the enumeration.
void readInput(const char *filename)
Read input and set up data in class BB_prob.
This class describes the message buffer used for all processes of BCP.
Definition: BCP_buffer.hpp:39
BB_prob desc
Pointer to the description of the problem.
Definition: BB_tm.hpp:26
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
An object of type BCP_lp_relax holds the description of an lp relaxation.
Definition: BCP_matrix.hpp:267
This is the abstract base class for a solution to a Mixed Integer Programming problem.