I have been trying to do the below code, which attempts to set the upper bound of every element of set J to 3.
set J /a1, a2, a3/;
positive variables b(J);
variable obj;
equations cons1, goal;
cons1..
b.up(J) =e= 3;
The rest of the GAMS code just runs the model. However, the generated error statement says "Uncontrolled set entered as constant". I have also tried "b.up(J) = 3;" -- Get the same problem. Does anyone know how to solve this? This problem is similar (How to set upper and lower bounds for each element in a set?), but is actually not my solution.