#include <BM.hpp>
Public Member Functions | |
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 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) |
Print a feasible solution. | |
virtual void | process_message (BCP_buffer &buf) |
Process a message that has been sent by another process' user part to this process' user part. | |
void | receive_pseudo_cost_update (BCP_buffer &buf) |
void | pack_pseudo_costs (BCP_buffer &buf) |
virtual void | display_final_information (const BCP_lp_statistics &lp_stat) |
Output the final solution. | |
virtual void | init_new_phase (int phase, BCP_column_generation &colgen, CoinSearchTreeBase *&candidates) |
Do whatever initialization is necessary before the phase -th phase. | |
void | readIpopt () |
Constructors and destructors | |
BM_tm () | |
Default constructor. | |
virtual | ~BM_tm () |
Default destructor. | |
Packing and unpacking methods | |
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. | |
Public Attributes | |
Private data member | |
BCP_string | ipopt_file_content |
BCP_string | nl_file_content |
BCP_parameter_set< BM_par > | par |
OsiPseudoCosts | pseudoCosts_ |
Private Member Functions | |
void | write_AMPL_solution (const BCP_solution *sol, bool write_file, bool write_screen) |
auxilliary method for handling output for AMPL |
Definition at line 170 of file BM.hpp.
virtual BM_tm::~BM_tm | ( | ) | [inline, virtual] |
void BM_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.
Definition at line 16 of file BM_pack.cpp.
void BM_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.
void BM_tm::create_root | ( | BCP_vec< BCP_var * > & | added_vars, | |
BCP_vec< BCP_cut * > & | added_cuts, | |||
BCP_user_data *& | user_data | |||
) | [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
.
Reimplemented from BCP_tm_user.
void BM_tm::display_feasible_solution | ( | const BCP_solution * | sol | ) | [virtual] |
Print a feasible solution.
Reimplemented from BCP_tm_user.
void BM_tm::process_message | ( | BCP_buffer & | buf | ) | [virtual] |
Process a message that has been sent by another process' user part to this process' user part.
Reimplemented from BCP_tm_user.
void BM_tm::receive_pseudo_cost_update | ( | BCP_buffer & | buf | ) |
void BM_tm::pack_pseudo_costs | ( | BCP_buffer & | buf | ) |
void BM_tm::display_final_information | ( | const BCP_lp_statistics & | lp_stat | ) | [virtual] |
Output the final solution.
Reimplemented from BCP_tm_user.
void BM_tm::init_new_phase | ( | int | phase, | |
BCP_column_generation & | colgen, | |||
CoinSearchTreeBase *& | candidates | |||
) | [virtual] |
Do whatever initialization is necessary before the phase
-th phase.
(E.g., setting the pricing strategy.)
Reimplemented from BCP_tm_user.
void BM_tm::write_AMPL_solution | ( | const BCP_solution * | sol, | |
bool | write_file, | |||
bool | write_screen | |||
) | [private] |
OsiPseudoCosts BM_tm::pseudoCosts_ |