KBestBoundValue

class KBestBoundValue : public KValueSelector

Value selector that selects the value of a variable that implies the best bound for the objective.

For each possible value in the domain of a given variable, the variable is instantiated on this value and the propagation is launched. The selected value will be the value that impacted the objective in the best way.

If the lower bound is used, the best value will be the value that induces the minimal lower bound on the objective. If the upper bound is used, the best value will be the value that induces the maximal upper bound on the objective.

Public Functions

KBestBoundValue(bool lowerbound)

Primary Constructor

Parameters

lowerbound – : True for bound value on lower bound, False for bound value on upper bound

KBestBoundValue(const KBestBoundValue &toCopy)

Copy constructor

virtual int selectNextValue(KIntVar *intVar)

Selects the next objective best bound value for the given variable.

virtual KValueSelector *getCopyPtr() const

Return an allocated copy of the selector