Page 1 of 1

Defining set

Posted: Sun Jan 26, 2020 4:53 am
by tavocopy
Hello again,

I'm trying to define a set that incluides a grups of Multi-Dimensional Sets
For example
set p /1A, 11a, 12A/
L /1l/
A11(p,l);
A11('1A','1l')=yes;
A12('1A','1l')=yes;
And define a new set with A11 and A12 as elements
And I Tried this

Code: Select all

set p "producto" /1A, 11a, 12A/
    L "actividad" /1l/
A11(p,l)
A12(p,l);
A11('1A','1l')=yes;
A12('1A','1l')=yes;
PD /#A11,#A12/;
But that's give me error
ThereĀ“s a way to that in gams?