KNumNearestRelaxedValue

class KNumNearestRelaxedValue : public KNumValueSelector

This value selector chooses the value closest to the relaxed solution contained in the provided solver.

If the relaxed value for a KFloatVar variable is within its bounds, the selected value is simply the relaxed value. Otherwise, it is the upper or lower bound of the KFloatVar.

Since

2016.1

Public Functions

KNumNearestRelaxedValue(KLinearRelaxationSolver*)

Constructor.

KNumNearestRelaxedValue(const KNumNearestRelaxedValue &middleToCopy)

Copy constructor.