How-To

How to use multiple indices for one set


Userlevel 6
Badge +6
You can use different indices to refer to the elements of the same set.

Suppose we have a set,
code:
Cities
, and a parameter,
code:
Distance
. We want to define
code:
Distance
over 2 dimensions (
code:
from
and
code:
to
) for the same set,
code:
Cities
.

If you didn’t know that AIMMS can handle multiple indices for a set, you might create two new subsets
code:
CitiesFrom
and
code:
CitiesTo
, containing all elements of the set
code:
Cities
, and each with its own index.

Luckily, you can just assign multiple indices to one set.

Read more...

0 replies

Be the first to reply!

Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator