MKC_tm Class Reference

#include <MKC_tm.hpp>

Inheritance diagram for MKC_tm:

Inheritance graph
[legend]
Collaboration diagram for MKC_tm:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MKC_tm ()
 ~MKC_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 BCP_solutionunpack_feasible_solution (BCP_buffer &buf)
 Unpack a MIP feasible solution that was packed by the BCP_lp_user::pack_feasible_solution() method.
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)
 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 *soln)
 Display a feasible solution.
virtual void init_new_phase (int phase, BCP_column_generation &colgen, CoinSearchTreeBase *&candidates)
 Do whatever initialization is necessary before the phase-th phase.

Public Attributes

BCP_parameter_set< MKC_tm_partm_par
BCP_parameter_set< MKC_lp_parlp_par
MKC_knapsack_set kss
BCP_vec< MKC_var * > input_vars
OsiClpSolverInterfaceclp

Detailed Description

Definition at line 21 of file MKC_tm.hpp.


Constructor & Destructor Documentation

MKC_tm::MKC_tm (  )  [inline]

Definition at line 29 of file MKC_tm.hpp.

MKC_tm::~MKC_tm (  )  [inline]

Definition at line 30 of file MKC_tm.hpp.

References clp, input_vars, and purge_ptr_vector().


Member Function Documentation

virtual void MKC_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 BCP_solution* MKC_tm::unpack_feasible_solution ( BCP_buffer buf  )  [virtual]

Unpack a MIP feasible solution that was packed by the BCP_lp_user::pack_feasible_solution() method.

Default: Unpacks a BCP_solution_generic object. The built-in default should be used if and only if the built-in default was used in BCP_lp_user::pack_feasible_solution().

Reimplemented from BCP_tm_user.

virtual void MKC_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 MKC_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.

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 MKC_tm::display_feasible_solution ( const BCP_solution soln  )  [virtual]

Display a feasible solution.

Reimplemented from BCP_tm_user.

virtual void MKC_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.


Member Data Documentation

BCP_parameter_set<MKC_tm_par> MKC_tm::tm_par

Definition at line 23 of file MKC_tm.hpp.

BCP_parameter_set<MKC_lp_par> MKC_tm::lp_par

Definition at line 24 of file MKC_tm.hpp.

MKC_knapsack_set MKC_tm::kss

Definition at line 25 of file MKC_tm.hpp.

BCP_vec<MKC_var*> MKC_tm::input_vars

Definition at line 26 of file MKC_tm.hpp.

Referenced by ~MKC_tm().

OsiClpSolverInterface* MKC_tm::clp

Definition at line 27 of file MKC_tm.hpp.

Referenced by ~MKC_tm().


The documentation for this class was generated from the following file:
Generated on Tue Jun 16 03:06:38 2009 for coin-Bcp by  doxygen 1.4.7