12 CoinSearchTreeBase*& candidates)
76 for (
int i = vars.
size()-1; i >= 0; --i) {
78 printf(
"Flow of commodity %i:\n", v->
commodity);
79 const CoinPackedVector&
f = v->
flow;
80 const int* ind = f.getIndices();
81 const double* val = f.getElements();
82 for (
int j = 0;
j < f.getNumElements(); ++
j) {
83 printf(
" arc %6i ( %5i -> %5i ) flow %i\n",
85 static_cast<int>(val[j]));
100 throw BCP_fatal_error(
"In this example we have only an LP process!\n");
BCP_vec< BCP_var * > _vars
Vector of variables that are at nonzero level in the solution.
BCP_process_t
This enumerative constant describes the various process types.
char entry(const chr_params key) const
Core cuts are the cuts that always stay in the LP formulation.
virtual void display_feasible_solution(const BCP_solution *sol)
Display a feasible solution.
void push_back(const_reference x)
Append x to the end of the vector.
void fint fint fint real fint real real real real * f
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 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...
Attempt column generation.
BCP_parameter_set< MCF3_par > par
void fint fint fint * phase
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 init_new_phase(int phase, BCP_column_generation &colgen, CoinSearchTreeBase *&candidates)
Do whatever initialization is necessary before the phase-th phase.
Currently there isn't any error handling in BCP.
size_t size() const
Return the current number of entries.
This class describes the message buffer used for all processes of BCP.
BCP_column_generation
This enumerative constant describes what to do when a search tree node becomes fathomable for the cur...
virtual void init_new_phase(int phase, BCP_column_generation &colgen, CoinSearchTreeBase *&candidates)
Do whatever initialization is necessary before the phase-th phase.
void fint fint fint real fint real real real real real real real real * w
This class holds a MIP feasible primal solution.
void pack(BCP_buffer &buf)
Pack the parameter set into the buffer.
An object of type BCP_lp_relax holds the description of an lp relaxation.
void pack(BCP_buffer &buf) const
This is the abstract base class for a solution to a Mixed Integer Programming problem.