KVariableSelector

class KVariableSelector : public KExternalObject<KVariableSelector_I>, public KPtrArray<KVariableSelector>

Abstract interface class for variable selection heuristic

See

KSmallestDomain KMaxDegree KSmallestMin KSmallestMax KLargestMin KLargestMax KRandomVariable KSmallestDomDegRatio KMaxRegretOnLowerBound KMaxRegretOnUpperBound

Since

2016.1

Subclassed by KFloatVarSelector, KInputOrder, KLargestDomain, KLargestMax, KLargestMin, KLargestReducedCost, KMaxDegree, KMaxRegretOnLowerBound, KMaxRegretOnUpperBound, KMostFractional, KPathOrder, KRandomVariable, KSmallestDomain, KSmallestDomDegRatio, KSmallestMax, KSmallestMin

Public Functions

KVariableSelector()

Constructor.

KVariableSelector(KProblem *problem)

Constructor with KProblem.

KVariableSelector(KVariableSelector_I *variableSelector, bool manage = true)

Constructor with KVariableSelector_I*.

KVariableSelector(const KVariableSelector &toCopy)

Copy constructor.

virtual KIntVar *selectNextVariable(KIntVarArray *intVarArray)

virtual interface method to overload for definition of your own variable selection heuristics

Parameters

intVarArray – Array of variable from wich selecting a variable