KValueSelector

class KValueSelector : public KExternalObject<KValueSelector_I>, public KPtrArray<KValueSelector>

Abstract interface class for value selection heuristic

See

KMaxToMin KMinToMax KMiddle KRandomValue KNearestValue

Since

2016.1

Subclassed by KBestBoundValue, KMaxToMin, KMiddle, KMinMaxConflict, KMinToMax, KNearestNeighbor, KNearestRelaxedValue, KNearestValue, KRandomValue

Public Functions

KValueSelector()

Constructor.

KValueSelector(KProblem *problem)

Constructor with KProblem.

KValueSelector(const KValueSelector &toCopy)

Copy constructor.

KProblem *getProblem() const

Return the current problem.

virtual int selectNextValue(KIntVar *intVar)

Virtual method to overload with your own value selection heuristic.

Parameters

intVar – the variable to selects a value for