#include <MCF3_tm.hpp>
Public Member Functions | |
MCF3_tm () | |
virtual | ~MCF3_tm () |
virtual void | pack_module_data (BCP_buffer &buf, BCP_process_t ptype) |
Pack the initial information (info that the user wants to send over) for the process specified by the last argument. | |
virtual void | pack_var_algo (const BCP_var_algo *var, BCP_buffer &buf) |
Pack an algorithmic variable. | |
virtual BCP_var_algo * | unpack_var_algo (BCP_buffer &buf) |
Unpack an algorithmic variable. | |
virtual void | pack_user_data (const BCP_user_data *ud, BCP_buffer &buf) |
Pack an user data. | |
virtual BCP_user_data * | unpack_user_data (BCP_buffer &buf) |
Unpack an user data. | |
virtual void | initialize_core (BCP_vec< BCP_var_core * > &vars, BCP_vec< BCP_cut_core * > &cuts, BCP_lp_relax *&matrix) |
Create the core of the problem by filling out the last three arguments. | |
virtual void | create_root (BCP_vec< BCP_var * > &added_vars, BCP_vec< BCP_cut * > &added_cuts, BCP_user_data *&user_data, BCP_pricing_status &pricing_status) |
Create the set of extra variables and cuts that should be added to the formulation in the root node. | |
virtual void | display_feasible_solution (const BCP_solution *sol) |
Display a feasible solution. | |
Public Attributes | |
BCP_parameter_set< MCF3_par > | par |
MCF3_data | data |
Definition at line 11 of file MCF3_tm.hpp.
MCF3_tm::MCF3_tm | ( | ) | [inline] |
Definition at line 18 of file MCF3_tm.hpp.
virtual MCF3_tm::~MCF3_tm | ( | ) | [inline, virtual] |
Definition at line 19 of file MCF3_tm.hpp.
virtual void MCF3_tm::pack_module_data | ( | BCP_buffer & | buf, | |
BCP_process_t | ptype | |||
) | [virtual] |
Pack the initial information (info that the user wants to send over) for the process specified by the last argument.
The information packed here will be unpacked in the unpack_module_data()
method of the user defined class in the appropriate process.
Default: empty method.
Reimplemented from BCP_tm_user.
virtual void MCF3_tm::pack_var_algo | ( | const BCP_var_algo * | var, | |
BCP_buffer & | buf | |||
) | [inline, virtual] |
Pack an algorithmic variable.
Reimplemented from BCP_tm_user.
Definition at line 22 of file MCF3_tm.hpp.
virtual BCP_var_algo* MCF3_tm::unpack_var_algo | ( | BCP_buffer & | buf | ) | [inline, virtual] |
Unpack an algorithmic variable.
Reimplemented from BCP_tm_user.
Definition at line 25 of file MCF3_tm.hpp.
virtual void MCF3_tm::pack_user_data | ( | const BCP_user_data * | ud, | |
BCP_buffer & | buf | |||
) | [inline, virtual] |
virtual BCP_user_data* MCF3_tm::unpack_user_data | ( | BCP_buffer & | buf | ) | [inline, virtual] |
virtual void MCF3_tm::initialize_core | ( | BCP_vec< BCP_var_core * > & | vars, | |
BCP_vec< BCP_cut_core * > & | cuts, | |||
BCP_lp_relax *& | matrix | |||
) | [virtual] |
Create the core of the problem by filling out the last three arguments.
These variables/cuts will always stay in the LP relaxation and the corresponding matrix is described by the specified matrix. If there is no core variable or cut then the returned pointer for to the matrix should be a null pointer.
Default: empty method, meaning that there are no variables/cuts in the core and this the core matrix is empty (0 pointer) as well.
Reimplemented from BCP_tm_user.
virtual void MCF3_tm::create_root | ( | BCP_vec< BCP_var * > & | added_vars, | |
BCP_vec< BCP_cut * > & | added_cuts, | |||
BCP_user_data *& | user_data, | |||
BCP_pricing_status & | pricing_status | |||
) | [virtual] |
Create the set of extra variables and cuts that should be added to the formulation in the root node.
Also decide how variable pricing shuld be done, that is, if column generation is requested in the init_new_phase() method of this class then column generation should be performed according to pricing_status
.
Default: empty method, meaning that no variables/cuts are added, there is no user data and no pricing should be done.
Reimplemented from BCP_tm_user.
virtual void MCF3_tm::display_feasible_solution | ( | const BCP_solution * | sol | ) | [virtual] |
Display a feasible solution.
Reimplemented from BCP_tm_user.
Definition at line 14 of file MCF3_tm.hpp.
Definition at line 15 of file MCF3_tm.hpp.