KNumValueSelector

class KNumValueSelector : public KExternalObject<KNumValueSelector_I>, public KPtrArray<KNumValueSelector>

Abstract interface class for value selection heuristic

See

KMaxToMin KMinToMax KMiddle KRandomValue KNearestValue

Since

2016.1

Subclassed by KNumMiddle, KNumNearestRelaxedValue, KNumNearestValue

Public Functions

KNumValueSelector()

Constructor.

KNumValueSelector(KProblem *problem)

Constructor with KProblem.

KNumValueSelector(KNumValueSelector_I *numValueSelector, bool manage = true)

Constructor with KNumValueSelector_I*.

KNumValueSelector(const KNumValueSelector &toCopy)

Copy constructor.

virtual double selectNextValue(KNumVar *intVar)

virtual method to overload with your own value selection heuristic

Parameters

intVar – the variable to selects a value for