Represents an AMPL set. In case of not indexed sets, this class exposes functionalities of a Java Set for accessing its elements. The members of the set can be strings, double numbers or tuples
. Moreover, the inherited Set.getValues
can be used to get all the members in DataFrame
class.
All these methods throw an UnsupportedOperationException
if called for an indexed set.
In case of indexed sets, use the method Set.get
to obtain the objects of type SetInstance
, from which to access all properties (see section Access to instances and values for further information on how to access set instances).
Data can be assigned to the set using the methods Set.setValues
, or using AMPL.setData
and an object of class DataFrame
.