ILOG CPLEX .NET Reference Manual

CplexModeler.IntSet Method (Int32, Int32)

Creates and returns a set of integers in which the minimum element is min, the maximum element is max, and all integers between min and max are included in the possible set.

public virtual IloIntSet IntSet(
   int min,
   int max
);

Parameters

min
The minimum possible value in the set.
max
The maximum possible value in the set.

Return Value

The newly created set.

Implements

IloSetModeler.IntSet

Remarks

In other words, this method turns an interval of integers into a set of integers. Such a set of integers is useful, for example, in creating variables for which the values are sets of integers (that is, integer set variables).

See Also

CplexModeler Class | ILOG.CPLEX Namespace | CplexModeler.IntSet Overload List