Implementation-wise indexed variables differ from core variables only in having a user given index. More...
#include <BCP_var.hpp>
Public Member Functions | |
Constructor and destructor | |
BCP_var_indexed (const int index, const BCP_var_t var_type, const double obj, const double lb, const double ub) | |
This constructor just sets the data members to the given values. | |
~BCP_var_indexed () | |
The destructor deletes the object. | |
Query methods | |
int | index () const |
Return the user index of the variable. | |
BCP_object_t | obj_type () const |
Return BCP_IndexedObj indicating that the object is an indexed variable. | |
Private Member Functions | |
Disabled methods | |
BCP_var_indexed () | |
The default constructor is declared but not defined to disable it. | |
BCP_var_indexed (const BCP_var_indexed &) | |
The copy constructor is declared but not defined to disable it. | |
BCP_var_indexed & | operator= (const BCP_var_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 index of the variable. |
Implementation-wise indexed variables differ from core variables only in having a user given index.
This index is a unique user specified ID which enables the user to expand the variable into a column that can be added to the LP formulation.
Definition at line 263 of file BCP_var.hpp.
BCP_var_indexed::BCP_var_indexed | ( | ) | [private] |
The default constructor is declared but not defined to disable it.
BCP_var_indexed::BCP_var_indexed | ( | const BCP_var_indexed & | ) | [private] |
The copy constructor is declared but not defined to disable it.
BCP_var_indexed::BCP_var_indexed | ( | const int | index, | |
const BCP_var_t | var_type, | |||
const double | obj, | |||
const double | lb, | |||
const double | ub | |||
) | [inline] |
This constructor just sets the data members to the given values.
See also the constructor of BCP_var.
Definition at line 287 of file BCP_var.hpp.
BCP_var_indexed::~BCP_var_indexed | ( | ) | [inline] |
The destructor deletes the object.
Definition at line 291 of file BCP_var.hpp.
BCP_var_indexed& BCP_var_indexed::operator= | ( | const BCP_var_indexed & | ) | [private] |
The assignment operator is declared but not defined to disable it.
Reimplemented from BCP_var.
int BCP_var_indexed::index | ( | ) | const [inline] |
Return the user index of the variable.
Definition at line 297 of file BCP_var.hpp.
BCP_object_t BCP_var_indexed::obj_type | ( | ) | const [inline, virtual] |
Return BCP_IndexedObj indicating that the object is an indexed variable.
Implements BCP_var.
Definition at line 300 of file BCP_var.hpp.
int BCP_var_indexed::_index [private] |
The only (not inherited) data member is the user given index of the variable.
Definition at line 269 of file BCP_var.hpp.