I have a question I would like to ask.
How to have a simplified conversion of DATA in two different Sets?
For example, the GAMS codes as following:
Code: Select all
set
i /i1 * i12/
j /j1 * j3/
;
parameter
Data_1(i)
/
i1 5
i2 3
i3 0
i4 6
i5 7
i6 9
i7 0
i8 12
i9 0
i10 2
i11 8
i12 1
/
Data_2(j)
;
Data_2("j1") = Data_1("i1");
Data_2("j2") = Data_1("i5");
Data_2("j3") = Data_1("i9");
Data_2(j) = Data_2(j) + eps;
display Data_1,Data_2;
execute_unload "Out.gdx"