This class is just a collection of pointers to cuts with a number of methods to manipulate these cuts and/or select certain entries. More...
#include <BCP_cut.hpp>
Public Member Functions | |
Constructor and destructor | |
BCP_cut_set () | |
The default constructor creates a cut set with no cuts in it. | |
~BCP_cut_set () | |
The destructor empties the cut set. | |
Modifying methods | |
void | append (const BCP_vec< BCP_cut * > &x) |
Append the cuts in the vector x to the end of the cut set. | |
void | append (BCP_cut_set::const_iterator first, BCP_cut_set::const_iterator last) |
Append the cuts in [first, last) to the end of the cut set. | |
void | set_lb_ub (const BCP_vec< int > &pos, BCP_vec< double >::const_iterator bounds) |
Set the lower/upper bound pairs of the entries given by the contents of pos to the values in [bounds, bounds + pos . | |
void | set_lb_ub_st (const BCP_vec< BCP_obj_change > &cc) |
Set the lower/upper bound pairs and the stati of the first cc . | |
void | set_lb_ub_st (BCP_vec< int >::const_iterator pos, const BCP_vec< BCP_obj_change > &cc) |
Set the lower/upper bound pairs and the stati of the entries given by the content of [pos, pos + cc . | |
Methods related to deleting cuts from the cut set | |
void | move_deletable_to_pool (const BCP_vec< int > &deletable_cuts, BCP_vec< BCP_cut * > &pool) |
Move the cut pointers whose indices are listed in deletable_cuts into the pool . | |
Private Member Functions | |
Disabled methods | |
BCP_cut_set (const BCP_cut_set &) | |
The copy constructor is declared but not defined to disable it. | |
BCP_cut_set & | operator= (const BCP_cut_set &) |
The assignment operator is declared but not defined to disable it. |
This class is just a collection of pointers to cuts with a number of methods to manipulate these cuts and/or select certain entries.
Definition at line 279 of file BCP_cut.hpp.
BCP_cut_set::BCP_cut_set | ( | const BCP_cut_set & | ) | [private] |
The copy constructor is declared but not defined to disable it.
BCP_cut_set::BCP_cut_set | ( | ) | [inline] |
The default constructor creates a cut set with no cuts in it.
Definition at line 293 of file BCP_cut.hpp.
BCP_cut_set::~BCP_cut_set | ( | ) | [inline] |
The destructor empties the cut set.
NOTE: the destructor does NOT delete the cuts the members of the cut set point to.
Definition at line 296 of file BCP_cut.hpp.
BCP_cut_set& BCP_cut_set::operator= | ( | const BCP_cut_set & | ) | [private] |
The assignment operator is declared but not defined to disable it.
Reimplemented from BCP_vec< BCP_cut * >.
Append the cuts in the vector x
to the end of the cut set.
Definition at line 304 of file BCP_cut.hpp.
Referenced by append().
void BCP_cut_set::append | ( | BCP_cut_set::const_iterator | first, | |
BCP_cut_set::const_iterator | last | |||
) | [inline] |
Append the cuts in [first, last)
to the end of the cut set.
Reimplemented from BCP_vec< BCP_cut * >.
Definition at line 309 of file BCP_cut.hpp.
References append().
void BCP_cut_set::set_lb_ub | ( | const BCP_vec< int > & | pos, | |
BCP_vec< double >::const_iterator | bounds | |||
) |
Set the lower/upper bound pairs of the entries given by the contents of pos
to the values in [bounds, bounds + pos
.
size())
.
void BCP_cut_set::set_lb_ub_st | ( | const BCP_vec< BCP_obj_change > & | cc | ) |
void BCP_cut_set::set_lb_ub_st | ( | BCP_vec< int >::const_iterator | pos, | |
const BCP_vec< BCP_obj_change > & | cc | |||
) |
Set the lower/upper bound pairs and the stati of the entries given by the content of [pos, pos + cc
.
size())
to the triplets contained in cc
.