#include <BB_tm.hpp>
Inheritance diagram for BB_tm:
Public Member Functions | |
void | readInput (const char *filename) |
Read input and set up data in class BB_prob. | |
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 | 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. | |
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. | |
virtual void | display_feasible_solution (const BCP_solution *sol) |
Print a feasible solution. | |
Constructors and destructors | |
BB_tm () | |
Default constructor. | |
virtual | ~BB_tm () |
Default destructor. | |
Private Attributes | |
Private data member | |
BB_prob | desc |
Pointer to the description of the problem. |
Definition at line 19 of file BB_tm.hpp.
virtual BB_tm::~BB_tm | ( | ) | [inline, virtual] |
void BB_tm::readInput | ( | const char * | filename | ) |
Read input and set up data in class BB_prob.
Definition at line 41 of file BB_tm.cpp.
References BCP_DBL_MAX, BB_prob::clb, BB_prob::colnum, BB_prob::core, BB_prob::cub, desc, BB_prob::indexed, BB_prob::integer, BB_prob::obj, BB_prob::rlb_core, BB_prob::rlb_indexed, BB_prob::rownum, BB_prob::rub_core, and BB_prob::rub_indexed.
Referenced by BB_init::tm_init().
void BB_tm::pack_module_data | ( | BCP_buffer & | buf, | |
BCP_process_t | ptype | |||
) | [virtual] |
Pack data into a buffer; will not work in parallel environment as it uses pointer.
Reimplemented from BCP_tm_user.
Definition at line 260 of file BB_tm.cpp.
References BCP_ProcessType_LP, desc, and BCP_buffer::pack().
void BB_tm::initialize_core | ( | BCP_vec< BCP_var_core * > & | vars, | |
BCP_vec< BCP_cut_core * > & | cuts, | |||
BCP_lp_relax *& | matrix | |||
) | [virtual] |
Pass the core constraints and core variables to bcp.
Reimplemented from BCP_tm_user.
Definition at line 279 of file BB_tm.cpp.
References BCP_BinaryVar, BCP_IntegerVar, BB_prob::clb, BB_prob::colnum, BB_prob::cub, desc, BB_prob::integer, BB_prob::obj, and BCP_vec< T >::push_back().
void BB_tm::create_root | ( | BCP_vec< BCP_var * > & | added_vars, | |
BCP_vec< BCP_cut * > & | added_cuts, | |||
BCP_user_data *& | user_data | |||
) | [virtual] |
Create the root node of the enumeration.
Reimplemented from BCP_tm_user.
Definition at line 317 of file BB_tm.cpp.
References BB_prob::colnum, and desc.
void BB_tm::display_feasible_solution | ( | const BCP_solution * | sol | ) | [virtual] |
Print a feasible solution.
Reimplemented from BCP_tm_user.
Definition at line 329 of file BB_tm.cpp.
References BCP_solution_generic::_values, BCP_solution_generic::_vars, BB_prob::colnum, desc, BCP_tm_user::display_feasible_solution(), and BCP_vec< T >::size().
BB_prob BB_tm::desc [private] |
Pointer to the description of the problem.
Definition at line 26 of file BB_tm.hpp.
Referenced by create_root(), display_feasible_solution(), initialize_core(), pack_module_data(), and readInput().