[Coin-discuss] BCP: Purging local_cut_pool
Francois Margot
fmargot at andrew.cmu.edu
Thu Feb 19 08:53:52 EST 2004
I got the following problem using BCP: At node A, I generate
cuts and put them in the local_cut_pool in BB_lp::generate_cuts_in_lp().
Then, in BB_lp::select_branching_candidates() I decide to fathom the
node and return BCP_DoNotBranch_Fathomed.
The enumeration continues and the next node that is processed includes
(incorrectly) the cuts generated at node A.
I apparently fixed this by adding
purge_ptr_vector(*(dynamic_cast<BCP_vec<BCP_lp_waiting_row*>*>(p.local_cut_pool)));
in the file BCP_lp_msg_node_send around line 324, inside the loop
if(keep == -1) {
return -1;
}
but I don't know if this is the best place to do that. Note that the same
problem probably exists for the local variable pool.
Francois
More information about the Coin-discuss
mailing list