coin-Bcp
|
This is the class from which the user should derive her own algorithmic variables. More...
#include <BCP_var.hpp>
Public Member Functions | |
Constructor and destructor | |
BCP_var_algo (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. More... | |
virtual | ~BCP_var_algo ()=0 |
The destructor deletes the object. More... | |
Query methods | |
BCP_object_t | obj_type () const |
Return BCP_AlgoObj indicating that the object is an algorithmic variable. More... | |
![]() | |
BCP_var (const BCP_var_t var_type, const double obj, const double lb, const double ub) | |
The constructor sets the internal index of the variable to zero and the other data members to the given arguments. More... | |
virtual | ~BCP_var () |
The destructor is virtual so that the appropriate destructor is invoked for every variable. More... | |
BCP_var_t | var_type () const |
Return the integrality type of the variable. More... | |
double | obj () const |
Return the objective coefficient. More... | |
double | lb () const |
Return the lower bound. More... | |
double | ub () const |
Return the upper bound. More... | |
int | bcpind () const |
Return the internal index of the variable. More... | |
BCP_obj_status | status () const |
Return the status of the variable. More... | |
bool | dont_send_to_pool () const |
Return whether the variable should be sent to the Variable Pool process. More... | |
bool | is_fixed () const |
Return whether the variable is fixed or not. More... | |
bool | is_fixed_to_zero () const |
Return whether the variable is fixed to zero or not. More... | |
bool | is_non_removable () const |
Return whether the variable is marked NotRemovable. More... | |
bool | is_removable () const |
Return whether the variable is removable from the formulation at the time of the query. More... | |
bool | is_to_be_removed () const |
Return whether the variable must be removed from the formulation. More... | |
void | test_inactive () |
Test (and set) whether the var is fixed (inactive) More... | |
void | set_var_type (const BCP_var_t type) |
Set the integrality type of the variable. More... | |
void | set_obj (const double obj) |
Set the objective coefficient. More... | |
void | set_lb (const double lb) |
Set the lower bound. More... | |
void | set_ub (const double ub) |
Set the upper bound. More... | |
void | set_lb_ub (const double lb, const double ub) |
Set both lower and upper bounds. More... | |
void | change_lb_ub_st (const BCP_obj_change &change) |
Set the lower/upper bounds and the status of the variable simultaneously to the values given in the data members of the argument. More... | |
void | change_bounds (const double lb, const double ub) |
Change the lower and upper bounds to the given values. More... | |
void | set_bcpind (const int bcpind) |
Set the internal index of the variable. More... | |
void | set_bcpind_flip () |
Flip the internal index of the variable to its negative. More... | |
void | set_status (const BCP_obj_status status) |
Set the status of the variable. More... | |
void | dont_send_to_pool (bool flag) |
Set/unset the flag controlling whether the variable could be sent to the Variable Pool process. More... | |
void | make_active () |
Mark the variable as active. More... | |
void | make_non_removable () |
Mark the variable as NotRemovable. More... | |
void | make_to_be_removed () |
Mark the variable as ToBeRemoved. More... | |
void | display (const double val) const |
Display the object type, internal index, and the value given in the argument. More... | |
![]() | |
ReferencedObject () | |
virtual | ~ReferencedObject () |
int | ReferenceCount () const |
void | AddRef () const |
void | ReleaseRef () const |
Private Member Functions | |
Disabled methods | |
BCP_var_algo () | |
The default constructor is declared but not defined to disable it. More... | |
BCP_var_algo (const BCP_var_algo &) | |
The copy constructor is declared but not defined to disable it. More... | |
BCP_var_algo & | operator= (const BCP_var_algo &) |
The assignment operator is declared but not defined to disable it. More... | |
Additional Inherited Members | |
![]() | |
BCP_var_t | _var_type |
The integrality type of the variable. More... | |
double | _obj |
The objective coefficient. More... | |
double | _lb |
Lower bound on the value the variable can take. More... | |
double | _ub |
Upper bound on the value the variable can take. More... | |
This is the class from which the user should derive her own algorithmic variables.
Note that such an object cannot be constructed (it has pure virtual methods), only objects with types derived from BCP_var_algo can be created. Such objects are constructed either directly by the user or by the unpacking functions of the BCP_xx_user
classes.
Definition at line 277 of file BCP_var.hpp.
|
private |
The default constructor is declared but not defined to disable it.
|
private |
The copy constructor is declared but not defined to disable it.
|
inline |
This constructor just sets the data members to the given values.
See also the constructor of BCP_var.
Definition at line 294 of file BCP_var.hpp.
|
pure virtual |
The destructor deletes the object.
|
private |
The assignment operator is declared but not defined to disable it.
|
inlinevirtual |
Return BCP_AlgoObj
indicating that the object is an algorithmic variable.
Implements BCP_var.
Definition at line 305 of file BCP_var.hpp.
References BCP_AlgoObj.