|
Sets |
Top Previous Next |
|
Set elements may be calculated as discussed in the Sets chapter. This involves setting elements of subsets to
The most common calculation involves definition of subset elements. For example to make every element of a superset appear in a subset one would use the command (calculate.gms)
Subset(superset)=yes;
while removing all is done using
Subset(superset)=no;
Tuples are also commonly computed based on data as illustrated below:
Cantravel(origin,destination) $(distance(origin,destination) gt 0)=yes; |