15 for ( ; ii != lastii; ++ii){
16 const double lb = *bounds;
18 const double ub = *bounds;
32 while (chi != lastchi){
33 (*var)->change_lb_ub_st(*chi);
46 while (chi != lastchi){
60 for (
int i = bvarnum; var !=
end(); ++var, ++i) {
61 if ((*var)->is_to_be_removed())
75 printf(
" Core var (internal index: %6i ) at %.4f\n",
79 printf(
" Algo var (internal index: %6i ) at %.4f\n",
83 throw BCP_fatal_error(
"Untyped object in BCP_solution_gen::display()\n");
pos
position where the operator should be printed when printing the expression
void clear()
Delete every entry.
reference operator[](const size_t i)
Return a reference to the i-th entry.
iterator begin()
Return an iterator to the beginning of the object.
void reserve(const size_t n)
Reallocate the object to make space for n entries.
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 d...
void change_bounds(const double lb, const double ub)
Change the lower and upper bounds to the given values.
void display(const double val) const
Display the object type, internal index, and the value given in the argument.
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...
Abstract base class that defines members common to all types of variables.
Currently there isn't any error handling in BCP.
size_t size() const
Return the current number of entries.
iterator end()
Return an iterator to the end of the object.
void deletable(const int bvarnum, BCP_vec< int > &collection)
Collect the indices of the variables marked to be removed.
void unchecked_push_back(const_reference x)
Append x to the end of the vector.
int _bcpind
The internal, unique index of the variable.
iterator entry(const int i)
Return an iterator to the i-th entry.
virtual BCP_object_t obj_type() const =0
Return the type of the variable.
virtual ~BCP_var_algo()=0
The destructor deletes the object.
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.