Implementation-wise indexed cuts differ from core cuts only in having a user given index. More...
#include <BCP_cut.hpp>


Public Member Functions | |
Constructor and destructor | |
| BCP_cut_indexed (const int index, const double lb, const double ub) | |
| This constructor just sets the data members to the given values. | |
| ~BCP_cut_indexed () | |
| The destructor deletes the object. | |
Query methods | |
| int | index () const |
| Return the user index of the cut. | |
| BCP_object_t | obj_type () const |
| Return BCP_IndexedObj indicating that the object is an indexed cut. | |
Private Member Functions | |
Disabled methods | |
| BCP_cut_indexed () | |
| The default constructor is declared but not defined to disable it. | |
| BCP_cut_indexed (const BCP_cut_indexed &) | |
| The copy constructor is declared but not defined to disable it. | |
| BCP_cut_indexed & | operator= (const BCP_cut_indexed &) |
| The assignment operator is declared but not defined to disable it. | |
Private Attributes | |
Data members | |
| int | _index |
| The only (not inherited) data member is the user-given name of the cut. | |
Implementation-wise indexed cuts differ from core cuts only in having a user given index.
This index is a unique user specified ID which enables the user to expand the cut into a constraint that can be added to the LP formulation.
Definition at line 234 of file BCP_cut.hpp.
| BCP_cut_indexed::BCP_cut_indexed | ( | ) | [private] |
The default constructor is declared but not defined to disable it.
| BCP_cut_indexed::BCP_cut_indexed | ( | const BCP_cut_indexed & | ) | [private] |
The copy constructor is declared but not defined to disable it.
| BCP_cut_indexed::BCP_cut_indexed | ( | const int | index, | |
| const double | lb, | |||
| const double | ub | |||
| ) | [inline] |
This constructor just sets the data members to the given values.
See also the constructor of [BCP_cut{BCP_cut.html}.
Definition at line 259 of file BCP_cut.hpp.
| BCP_cut_indexed::~BCP_cut_indexed | ( | ) | [inline] |
The destructor deletes the object.
Definition at line 262 of file BCP_cut.hpp.
| BCP_cut_indexed& BCP_cut_indexed::operator= | ( | const BCP_cut_indexed & | ) | [private] |
The assignment operator is declared but not defined to disable it.
Reimplemented from BCP_cut.
| int BCP_cut_indexed::index | ( | ) | const [inline] |
Return the user index of the cut.
Definition at line 268 of file BCP_cut.hpp.
| BCP_object_t BCP_cut_indexed::obj_type | ( | ) | const [inline, virtual] |
Return BCP_IndexedObj indicating that the object is an indexed cut.
Implements BCP_cut.
Definition at line 270 of file BCP_cut.hpp.
int BCP_cut_indexed::_index [private] |
The only (not inherited) data member is the user-given name of the cut.
Definition at line 251 of file BCP_cut.hpp.
1.6.1