template class implements a buffer for constraints and variables which are generated during the cutting plane or column generation phase.
#include <cutbuffer.h>
Inheritance diagram for ABA_CUTBUFFER< BaseType, CoType >::
|
If keepInPool_[i] is true for a buffered constraint/variables, then it is not removed from its pool although it might be discarded in extract().
This flag is true if a rank for each buffered item is available. As soon as an item without rank is inserted it becomes false.
template class implements a buffer for constraints and variables which are generated during the cutting plane or column generation phase.
Definition at line 49 of file cutbuffer.h.
The constructor.
The destructor.
If there are still items buffered when this object is destructed then we have to unset the locks of the buffered items. This can happen if in the feasibility test constraints are generated but for some reason (e.g., due to tailing off) the optimization of the subproblem is terminated.
The maximal number of items that can be buffered.
The number of buffered items.
The number of items which can still be inserted into the buffer.
Adds a slot to the buffer.
The member ranking_ has to be set to false, because since no rank is added together with this item a ranking of all items is impossible. Such that newly generated items cannot be removed immediately in a cleaning up process of the pool we set a lock which will be removed in the function extract().
0 If the item can be inserted.
1 If the buffer is already full.
In addition to the previous version of the function insert() this version also adds a rank to the item such that all buffered items can be sorted with the function sort().
0 If the item can be inserted.
1 If the buffer is already full.
Removes the specified elements from the buffer.
A pointer to the i-th ABA_POOLSLOT that is buffered.
Takes the first max items from the buffer and clears the buffer.
Constraints or variables stored in slots which are not extracted are also removed from their pools if keepInPool has not been set to true at insertion time.
Sorts the items according to their ranks.
Definition at line 50 of file cutbuffer.h.
A pointer to the corresponding master of the optimization.
Definition at line 150 of file cutbuffer.h.
The number of buffered items.
Definition at line 154 of file cutbuffer.h.
References to the pool slots of the buffered constraints/variables.
Definition at line 158 of file cutbuffer.h.
If keepInPool_[i] is true for a buffered constraint/variables, then it is not removed from its pool although it might be discarded in extract().
Definition at line 164 of file cutbuffer.h.
This array stores optionally the rank of the buffered items.
Definition at line 168 of file cutbuffer.h.
This flag is true if a rank for each buffered item is available. As soon as an item without rank is inserted it becomes false.
Definition at line 173 of file cutbuffer.h.
The documentation for this class was generated from the following file: