This class is just a collection of pointers to variables with a number of methods to manipulate these variables and/or select certain entries. More...
#include <BCP_var.hpp>
Public Member Functions | |
Constructor and destructor | |
BCP_var_set () | |
The default constructor creates a variable set with no variables in it. | |
~BCP_var_set () | |
The destructor empties the variable set. | |
Modifying methods | |
void | append (const BCP_vec< BCP_var * > &x) |
Append the variables in the vector x to the end of the variable set. | |
void | append (BCP_var_set::const_iterator first, BCP_var_set::const_iterator last) |
Append the variables in [first, last) to the end of the variable set. | |
void | set_lb_ub (const BCP_vec< int > &pos, BCP_vec< double >::const_iterator bounds) |
Set the lower/upper bound pairs of the entries given by the contents of pos to the values in [bounds, bounds + pos . | |
void | set_lb_ub_st (const BCP_vec< BCP_obj_change > &vc) |
Set the lower/upper bound pairs and the stati of the first cc . | |
void | set_lb_ub_st (BCP_vec< int >::const_iterator pos, const BCP_vec< BCP_obj_change > &vc) |
Set the lower/upper bound pairs and the stati of the entries given by the content of [pos, pos + cc . | |
Methods related to deleting variables from the variable set | |
void | deletable (const int bvarnum, BCP_vec< int > &collection) |
Collect the indices of the variables marked to be removed. | |
Private Member Functions | |
Disabled methods | |
BCP_var_set (const BCP_var_set &) | |
The copy constructor is declared but not defined to disable it. | |
BCP_var_set & | operator= (const BCP_var_set &) |
The assignment operator is declared but not defined to disable it. |
This class is just a collection of pointers to variables with a number of methods to manipulate these variables and/or select certain entries.
Definition at line 355 of file BCP_var.hpp.
BCP_var_set::BCP_var_set | ( | const BCP_var_set & | ) | [private] |
The copy constructor is declared but not defined to disable it.
BCP_var_set::BCP_var_set | ( | ) | [inline] |
The default constructor creates a variable set with no variables in it.
Definition at line 370 of file BCP_var.hpp.
BCP_var_set::~BCP_var_set | ( | ) | [inline] |
The destructor empties the variable set.
NOTE: the destructor does NOT delete the variables the members of the variable set point to.
Definition at line 374 of file BCP_var.hpp.
BCP_var_set& BCP_var_set::operator= | ( | const BCP_var_set & | ) | [private] |
The assignment operator is declared but not defined to disable it.
Reimplemented from BCP_vec< BCP_var * >.
Append the variables in the vector x
to the end of the variable set.
Definition at line 381 of file BCP_var.hpp.
void BCP_var_set::append | ( | BCP_var_set::const_iterator | first, | |
BCP_var_set::const_iterator | last | |||
) | [inline] |
Append the variables in [first, last)
to the end of the variable set.
Reimplemented from BCP_vec< BCP_var * >.
Definition at line 386 of file BCP_var.hpp.
void BCP_var_set::set_lb_ub | ( | const BCP_vec< int > & | pos, | |
BCP_vec< double >::const_iterator | bounds | |||
) |
Set the lower/upper bound pairs of the entries given by the contents of pos
to the values in [bounds, bounds + pos
.
size())
.
void BCP_var_set::set_lb_ub_st | ( | const BCP_vec< BCP_obj_change > & | vc | ) |
Set the lower/upper bound pairs and the stati of the first cc
.
size()
entries to the triplets given in the vector. This method is invoked when the variable set is all the variables in the current formulation and we want to change the triplets for the core variables, which are at the beginning of that variable set.
void BCP_var_set::set_lb_ub_st | ( | BCP_vec< int >::const_iterator | pos, | |
const BCP_vec< BCP_obj_change > & | vc | |||
) |
Set the lower/upper bound pairs and the stati of the entries given by the content of [pos, pos + cc
.
size())
to the triplets contained in cc
.
void BCP_var_set::deletable | ( | const int | bvarnum, | |
BCP_vec< int > & | collection | |||
) |
Collect the indices of the variables marked to be removed.
Since core variables are never removed, we pass the number of core variables in the first argument to speed up things a little.