Class IloAllMinDistance
Definition file: ilconcert/ilomodel.h
A constraint on the minimum absolute distance between a pair of variables in an array.
An instance of the class IloAllMinDistance
is a constraint that
makes sure that the absolute distance between any pair of variables in an array of
constrained numeric variables will be greater than or equal to a given integer.
See Also:
IloAllDiff
Method Summary |
---|
public IloAllMinDistance::ImplClass * | getImpl() |
public IloAllMinDistance()
This constructor creates an empty handle. You must initialize it before you use it.
public IloAllMinDistance(IloAllMinDistance::ImplClass * impl)
This constructor creates a handle object from a pointer to an implementation object.
This constructor returns a constraint that insures that the absolute distance
between any pair of variables in the array vars
will be greater than or
equal to k
. You must add this constraint to a model and extract the model
for an algorithm in order for it to be taken into account.
public IloAllMinDistance::ImplClass * getImpl()
This member function returns a pointer to the implementation object of the invoking handle.