Sum(i$(i gt 1),X(i))
Posted: Sat Mar 03, 2018 4:02 am
Hi All,
Sets
i Index /1*20/
j Index /1*20/
R Index /1*20/;
I want to write the code to run for all items in the set except the first item.
For example Sum(i$(i gt 1),W(i)); and it was accepted.
But when I wrote Y(R,I$(i gt 1),J)=L= 2*X(R,I$(i gt 1),J);
It cannot accept . Y is free and x is binary.
How can we solve it?
Thanks
Sets
i Index /1*20/
j Index /1*20/
R Index /1*20/;
I want to write the code to run for all items in the set except the first item.
For example Sum(i$(i gt 1),W(i)); and it was accepted.
But when I wrote Y(R,I$(i gt 1),J)=L= 2*X(R,I$(i gt 1),J);
It cannot accept . Y is free and x is binary.
How can we solve it?
Thanks