KMinMaxConflict

class KMinMaxConflict : public KValueSelector

Value selector that selects the value of a variable that implies the best problem size reduction when instantiated.

For each possible value of the domain of the variable, the variable is instantiated and the problem size reduction is evaluated.

Public Functions

KMinMaxConflict(bool minconflict = true)

Primary Constructor

Parameters

minconflict – : true for minimizing the induced problem size, false for maximizing.

KMinMaxConflict(const KMinMaxConflict &toCopy)

Copy constructor

virtual int selectNextValue(KIntVar *intVar)

Selects the value of the given variable that induces the best problem size once instantiated to this value.

virtual KValueSelector *getCopyPtr() const

Return an allocated copy of the selector