KNumMiddle

class KNumMiddle : public KNumValueSelector

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

Example :

KBranchingSchemeArray myBranchingSchemeArray;
myBranchingSchemeArray += KAssignVar(KSmallestDomain(),KNumMiddle());

See

KValueSelector

Since

2016.1

Public Functions

KNumMiddle()

Constructor.

KNumMiddle(const KNumMiddle &middleToCopy)

Copy constructor.

virtual double selectNextValue(KNumVar *numVar)

virtual method to overload with your own value selection heuristic

Parameters

intVar – the variable to selects a value for