KRandomValue

class KRandomValue : public KValueSelector

This class implements a value selector that selects a value at random in the domain of the variable.

Example :

KBranchingSchemeArray bsa;
bsa += KAssignVar(KSmallestDomain(),KRandomValue());

See

KValueSelector

Since

2016.1

Public Functions

virtual int selectNextValue(KIntVar *intVar)

Virtual method to overload with your own value selection heuristic.

Parameters

intVar – the variable to selects a value for