Product#
- class gamspy.Product(domain: Set | Alias | tuple[Set | Alias] | Domain | Expression, expression: Expression | int | bool)[source]#
Bases:
Operation
Represents a product operation over a domain.
- Parameters:
- domainSet | Alias | Tuple[Set | Alias], Domain, Expression
- expressionExpression | int | bool
Examples
>>> i = gp.Set(m, "i", records=['i1','i2', 'i3']) >>> v = gp.Variable(m, "v") >>> e = gp.Equation(m, "e", type="eq", domain=[i]) >>> e[i] = gp.Product(i, 3) <= v
Methods
gamsRepr