Suppose we have a set,
code:
, and a parameter, Cities
code:
. We want to define Distance
code:
over 2 dimensions (Distance
code:
and from
code:
) for the same set, to
code:
.Cities
If you didn’t know that AIMMS can handle multiple indices for a set, you might create two new subsets
code:
and CitiesFrom
code:
, containing all elements of the set CitiesTo
code:
, and each with its own index.Cities
Luckily, you can just assign multiple indices to one set.
Read more...