coin-Bcp
|
Core cuts are the cuts that always stay in the LP formulation. More...
#include <BCP_cut.hpp>
Public Member Functions | |
Constructors and desctructor | |
BCP_cut_core (const BCP_cut_core &x) | |
The copy constructor makes a replica of the argument. More... | |
BCP_cut_core (const double lb, const double ub) | |
This constructor just sets the data members to the given values. More... | |
~BCP_cut_core () | |
The destructor deletes the object. More... | |
Query methods | |
BCP_object_t | obj_type () const |
Return BCP_CoreObj indicating that the object is a core cut. More... | |
![]() | |
BCP_cut (const double lb, const double ub) | |
The constructor sets the internal index of the cut to zero and the other data members to the given arguments. More... | |
virtual | ~BCP_cut () |
The destructor is virtual so that the appropriate destructor is invoked for every cut. More... | |
int | effective_count () const |
Return the effectiveness count of the cut (only in LP process). More... | |
double | lb () const |
Return the lower bound on the cut. More... | |
double | ub () const |
Return the upper bound on the cut. More... | |
int | bcpind () const |
Return the internal index of the cut. More... | |
BCP_obj_status | status () const |
Return the status of the cut. More... | |
bool | dont_send_to_pool () const |
Return whether the cut should be sent to the Cut Pool process. More... | |
bool | is_non_removable () const |
Return whether the cut marked as NotRemovable. More... | |
bool | is_to_be_removed () const |
Return whether the cut must be removed from the formulation. More... | |
void | set_effective_count (const int cnt) |
Set the effectiveness count to the given value. More... | |
int | increase_effective_count () |
Increase the effectiveness count by 1 (or to 1 if it was negative). More... | |
int | decrease_effective_count () |
Decrease the effectiveness count by 1 (or to -1 if it was positive). More... | |
void | set_lb (const double lb) |
Set the lower bound on the cut. More... | |
void | set_ub (const double ub) |
Set the upper bound on the cut. More... | |
void | change_lb_ub_st (const BCP_obj_change &change) |
Set the lower/upper bounds and the status of the cut simultaneously to the values given in the data members of the argument. More... | |
void | change_bounds (const double lb, const double ub) |
Change just the lower/upper bounds. More... | |
void | set_bcpind (const int bcpind) |
Set the internal index of the cut. More... | |
void | set_bcpind_flip () |
Flip the internal index of the variable to its negative. More... | |
void | set_status (const BCP_obj_status stat) |
Set the status of the cut. More... | |
void | dont_send_to_pool (bool flag) |
Set/unset the flag controlling whether the cut could be sent to the Cut Pool process. More... | |
void | make_active () |
Mark the cut as active. More... | |
void | make_non_removable () |
Mark the cut as NotRemovable. More... | |
void | make_to_be_removed () |
Mark the cut as ToBeRemoved. More... | |
![]() | |
ReferencedObject () | |
virtual | ~ReferencedObject () |
int | ReferenceCount () const |
void | AddRef () const |
void | ReleaseRef () const |
Private Member Functions | |
Disabled methods | |
BCP_cut_core () | |
The default constructor is declared but not defined to disable it. More... | |
BCP_cut_core & | operator= (const BCP_cut_core &) |
The assignment operator is declared but not defined to disable it. More... | |
Additional Inherited Members | |
![]() | |
double | _lb |
Lower bound of the cut. More... | |
double | _ub |
Upper bound of the cut. More... | |
Core cuts are the cuts that always stay in the LP formulation.
Therefore the data members in the base class are quite sufficient to describe the cut. The only thing that has to be done here is overriding the pure virtual method obj_type().
Definition at line 195 of file BCP_cut.hpp.
|
private |
The default constructor is declared but not defined to disable it.
|
inline |
The copy constructor makes a replica of the argument.
Definition at line 210 of file BCP_cut.hpp.
References BCP_cut::bcpind(), BCP_cut::effective_count(), BCP_cut::set_bcpind(), BCP_cut::set_effective_count(), BCP_cut::set_status(), and BCP_cut::status().
|
inline |
This constructor just sets the data members to the given values.
See also the constructor of BCP_cut.
Definition at line 217 of file BCP_cut.hpp.
|
inline |
The destructor deletes the object.
Definition at line 219 of file BCP_cut.hpp.
|
private |
The assignment operator is declared but not defined to disable it.
|
inlinevirtual |
Return BCP_CoreObj
indicating that the object is a core cut.
Implements BCP_cut.
Definition at line 226 of file BCP_cut.hpp.
References BCP_CoreObj.