Define for each t in TYPES, X{LOCATIONS, t} in a different set that depends on t

Hello,

I have a variable x with indexs l in LOCATIONS and t in TYPES. It is possible, following the notation “var x {LOCATIONS} in CAPACITIES;”, to define for each t in TYPES, X{LOCATIONS, t} in a different set that depends on t, such as {ord(CAPACITIES,n1[t])…ord(CAPACITIES, n2[t])}?

Thank you in advance.

Greetings,
Manuel.

1 Like

You could define x like this:

var x {LOCATIONS, t in TYPES} 
   in ord(n1[t],CAPACITIES)..ord(n2[t],CAPACITIES);
1 Like