#include <BCP_cut.hpp>
Inheritance diagram for BCP_cut_set:
Public Member Functions | |
Constructor and destructor | |
BCP_cut_set () | |
~BCP_cut_set () | |
Modifying methods | |
void | append (const BCP_vec< BCP_cut * > &x) |
void | append (BCP_cut_set::const_iterator first, BCP_cut_set::const_iterator last) |
void | set_lb_ub (const BCP_vec< int > &pos, BCP_vec< double >::const_iterator bounds) |
void | set_lb_ub_st (const BCP_vec< BCP_obj_change > &cc) |
void | set_lb_ub_st (BCP_vec< int >::const_iterator pos, const BCP_vec< BCP_obj_change > &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) |
Private Member Functions | |
Disabled methods | |
BCP_cut_set (const BCP_cut_set &) | |
BCP_cut_set & | operator= (const BCP_cut_set &) |
Definition at line 323 of file BCP_cut.hpp.
|
The copy constructor is declared but not defined to disable it. |
|
The default constructor creates a cut set with no cuts in it. Definition at line 337 of file BCP_cut.hpp.
00337 {} |
|
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 340 of file BCP_cut.hpp.
00340 {} |
|
Append the cuts in Definition at line 353 of file BCP_cut.hpp. References BCP_vec< T >::append().
00354 { 00355 BCP_vec<BCP_cut*>::append(first, last); 00356 } |
|
Append the cuts in the vector Reimplemented from BCP_vec< BCP_cut * >. Definition at line 348 of file BCP_cut.hpp. References BCP_vec< T >::append().
00348 { 00349 BCP_vec<BCP_cut*>::append(x); 00350 } |
|
Move the cut pointers whose indices are listed in Definition at line 118 of file BCP_cut.cpp. References BCP_vec< T >::begin(), BCP_vec< T >::end(), BCP_vec< BCP_cut * >::operator[](), BCP_vec< T >::reserve(), BCP_vec< T >::size(), and BCP_vec< T >::unchecked_push_back().
00120 { 00121 BCP_vec<int>::const_iterator ii = del_cuts.begin(); 00122 BCP_vec<int>::const_iterator lastii = del_cuts.end(); 00123 pool.reserve(pool.size() + del_cuts.size()); 00124 while (ii != lastii) { 00125 pool.unchecked_push_back(operator[](*ii)); 00126 operator[](*ii) = 0; 00127 ++ii; 00128 } 00129 } |
|
The assignment operator is declared but not defined to disable it. |
|
Set the lower/upper bound pairs of the entries given by the contents of Definition at line 12 of file BCP_cut.cpp. References BCP_vec< T >::begin(), BCP_vec< T >::end(), and BCP_vec< BCP_cut * >::operator[]().
00014 { 00015 BCP_vec<int>::const_iterator ii = indices.begin(); 00016 BCP_vec<int>::const_iterator lastii = indices.end(); 00017 for ( ; ii != lastii; ++ii){ 00018 const double lb = *bounds; 00019 ++bounds; 00020 const double ub = *bounds; 00021 ++bounds; 00022 operator[](*ii)->change_bounds(lb, ub); 00023 } 00024 } |
|
Set the lower/upper bound pairs and the stati of the entries given by the content of Definition at line 44 of file BCP_cut.cpp. References BCP_vec< T >::begin(), BCP_vec< T >::end(), and BCP_vec< BCP_cut * >::operator[]().
00046 { 00047 BCP_vec<BCP_obj_change>::const_iterator chi = vc.begin(); 00048 BCP_vec<BCP_obj_change>::const_iterator lastchi = vc.end(); 00049 while (chi != lastchi){ 00050 operator[](*pos)->change_lb_ub_st(*chi); 00051 ++pos; 00052 ++chi; 00053 } 00054 } |
|
Set the lower/upper bound pairs and the stati of the first Definition at line 29 of file BCP_cut.cpp. References BCP_vec< BCP_cut * >::begin(), BCP_vec< T >::begin(), and BCP_vec< T >::end().
00030 { 00031 BCP_vec<BCP_obj_change>::const_iterator chi = vc.begin(); 00032 BCP_vec<BCP_obj_change>::const_iterator lastchi = vc.end(); 00033 iterator cut = begin(); 00034 while (chi != lastchi) { 00035 (*cut)->change_lb_ub_st(*chi); 00036 ++cut; 00037 ++chi; 00038 } 00039 } |