KNumNearestValue

class KNumNearestValue : public KNumValueSelector

This class implements a value selector that selects the nearest value from target in the domain of the variable .

Example :

KBranchingSchemeArray myBranchingSchemeArray;
myBranchingSchemeArray += KSplitDomain(KWidestDomain(), KNumNearestValue());

See

KValueSelector

Since

2016.1

Public Functions

virtual double selectNextValue(KNumVar *intVar)

virtual method to overload with your own value selection heuristic

Parameters

intVar – the variable to selects a value for