37 BCP_cg_prob(
const BCP_cg_prob&);
39 BCP_cg_prob& operator=(
const BCP_cg_prob&);
bool BCP_cg_process_message(BCP_cg_prob &p, BCP_buffer &buf)
This class describes the message buffer used for all processes of BCP.
This class is the central class of the Cut Generator process.
int node_level
The level of search tree node where the solution was generated.
BCP_buffer msg_buf
The message buffer of the Cut Generator process.
double upper_bound
The proc id of the tree manager.
BCP_var * unpack_var()
Unpack a variable.
BCP_cg_user * user
The user object holding the user's data.
BCP_cg_prob(int my_id, int parent)
The default constructor.
bool probe_messages()
Test if there is a message in the message queue waiting to be processed.
BCP_vec< BCP_var * > vars
Cuts are to be generated for the LP solution given by these variables and their values (next member).
int node_iteration
The iteration within the search tree node where the solution was generated.
int sender
The process id of the LP process that sent the solution.
int phase
The phase the algorithm is in.
BCP_parameter_set< BCP_cg_par > par
The parameters controlling the Cut Generator process.
virtual void process_message()
virtual ~BCP_cg_prob()
The destructor deletes everything.
BCP_user_pack * packer
A class that holds the methods about how to pack things.
BCP_problem_core * core
The description of the core of the problem.
double ub() const
Return the current upper bound (BCP_DBL_MAX if there's no upper bound found yet.)
bool has_ub() const
Return true/false indicating whether any upper bound has been found.
BCP_vec< double > x
The primal values corresponding to the variables above.
BCP_message_environment * msg_env
The message passing environment.
void ub(const double bd)
Set the upper bound equal to the argument.
virtual BCP_buffer & get_message_buffer()
int node_index
The index of search tree node where the solution was generated.
The BCP_cg_user class is the base class from which the user can derive a problem specific class to be...
Abstract base class that defines members common to all types of cuts.
This is an abstract base class that describes the message passing environment.
This is the class serves as a holder for a set of parameters.
This class describes the core of the MIP problem, the variables/cuts in it as well as the matrix corr...
BCP_process(int self, int my_parent)
Abstract base class that defines members common to all types of variables.
The class BCP_vec serves the same purpose as the vector class in the standard template library.