KMiddle

class KMiddle : public KValueSelector

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(), KMiddle());

See

KValueSelector

Since

2016.1

Public Functions

KMiddle()

Constructor.

KMiddle(const KMiddle &middleToCopy)

Copy constructor.

virtual int selectNextValue(KIntVar *intVar)

Virtual method to overload with your own value selection heuristic.

Parameters

intVar – the variable to selects a value for