65template <
class BaseType,
class CoType>
Global data and functions.
Base class of all other classes of ABACUS.
The master of the optimization.
Standard pools without constraint duplication.
void watchNonDuplPool(NonDuplPool< BaseType, CoType > *pool)
If the separator checks for duplication of cuts, the test is also done for constraints/variables that...
AbaHash< unsigned, BaseType * > * hash_
int maxGen() const
Returns the maximal number of generated cutting planes.
Separator_CUTFOUND cutFound(BaseType *cv)
Passes a cut (constraint or variable) to the buffer.
int nGen() const
Returns the number of generated cutting planes.
double minAbsViolation() const
Returns the absolute value for considering a constraint/variable as violated.
LpSolution< CoType, BaseType > * lpSolution()
The lpSolution to be separated.
virtual ~Separator()
The destructor.
int nCollisions() const
Returns the number of collisions in the hash table.
LpSolution< CoType, BaseType > * lpSol_
The LP solution to be separated.
void minAbsViolation(double minAbsVio)
Sets a new value for minAbsViolation.
virtual bool terminateSeparation()
Returns true if the separation should be terminated.
int nDuplications() const
Returns the number of duplicated constraints/variables which are discarded.
Separator(const Separator< BaseType, CoType > &rhs)
virtual void separate()=0
This function has to be redefined and should implement the separation routine.
const Separator< BaseType, CoType > & operator=(const Separator< BaseType, CoType > &rhs)
Master * master_
A pointer to the corresponding master of the optimization.
ArrayBuffer< BaseType * > & cutBuffer()
Returns the buffer with the generated constraints/variable.
NonDuplPool< BaseType, CoType > * pool_
Separator(LpSolution< CoType, BaseType > *lpSolution, bool nonDuplications, int maxGen=300)
Creates a separator.
ArrayBuffer< BaseType * > newCons_
An array that keeps track of the number of inserted elements; also usable as an efficient stack.
INDEX size() const
Returns number of elements in the buffer.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
standard pool without constraint duplication.