Now,I have the GAMS code like the sample below. The statement binary variables x(i,j) indicates that the GAMS will creat one hundred variables x with index(i,j). How Can I do to let GAMS creats variables x(i,j) only when r(i,j) exists to reduce the number of variable x?
set i nodes /1*10/;
alias (i, j);
parameter r(i,j) factor /1.2 1 ...... 7.8 1/;
binary variables x(i,j);