Domain#

class gamspy.Domain(*sets: Set | Alias | ImplicitSet)[source]#

Bases: object

Domain class needed for where statements on multidimensional index list in operations

Parameters:
sets: tuple[Set | str]

Examples

>>> import gamspy as gp
>>> m = gp.Container()
>>> v = gp.Variable(m, "v")
>>> eq1 = gp.Equation(m, name="eq1")
>>> eq1 = v == 5

Methods

gamsRepr()

Representation of this Domain in GAMS language.

gamsRepr() str[source]#

Representation of this Domain in GAMS language.

Returns:
str