int current_phase() const
Return the phase the algorithm is in.
int current_iteration() const
Return the iteration count within the search tree node for which cuts are being generated.
char get_param(const BCP_cg_par::chr_params key) const
int get_param(const BCP_cg_par::int_params key) const
void send_cut(const BCP_cut &cut)
Pack the argument into the message buffer and send it to the sender of the LP solution.
const BCP_string & get_param(const BCP_cg_par::str_params key) const
void setCgProblemPointer(BCP_cg_prob *ptr)
Set the pointer.
int current_level() const
Return the level of the search tree node for which cuts are being generated.
virtual void unpack_primal_solution(BCP_buffer &buf)
Unpack the LP solution arriving from the LP process.
void set_param(const BCP_cg_par::int_params key, const int val)
void set_param(const BCP_cg_par::chr_params key, const bool val)
BCP_cg_prob * getCgProblemPointer()
Get the pointer.
void set_param(const BCP_cg_par::dbl_params key, const double val)
dbl_params
There are no double parameters.
This class is a very simple impelementation of a constant length string.
This class is the central class of the Cut Generator process.
This is the class from which the user should derive her own algorithmic variables.
virtual void unpack_module_data(BCP_buffer &buf)
Unpack the initial information sent to the Cut Generator process by the Tree Manager.
void set_param(const BCP_cg_par::chr_params key, const char val)
Abstract base class that defines members common to all types of cuts.
virtual void generate_cuts(BCP_vec< BCP_var * > &vars, BCP_vec< double > &x)
Perform the actual cut generation.
int_params
Integer parameters.
double get_param(const BCP_cg_par::dbl_params key) const
chr_params
Character parameters.
str_params
String parameters.
int current_index() const
Return the internal index of the search tree node for which cuts are being generated.
Abstract base class that defines members common to all types of variables.
The BCP_cg_user class is the base class from which the user can derive a problem specific class to be...
double upper_bound() const
Return what is the best known upper bound (might be BCP_DBL_MAX)
virtual ~BCP_cg_user()
Being virtual, the destructor invokes the destructor for the real type of the object being deleted.
This class describes the message buffer used for all processes of BCP.
void set_param(const BCP_cg_par::str_params key, const char *val)
This is the class from which the user should derive her own algorithmic cuts.