Consider I have defined set i as /5,7,8,3,2,9/ in Gams and I want to define sub(i) such that contains the first element of i and define sub2(i) such that includes the last element of i. How shoud I do that?
It is notable that the set i is imported to Gams and I don't know its element in advance.
Problems with syntax of GAMS
3 posts • Page 1 of 1