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