Hi,

I have 3 excel sheets taht refer to 3 kinds of a thing (then K=1,2,3). each sheet has 20 rows (i=1,2,…,20) and 10 columns (j=1,2,…,10). in fact each sheet has 20 cells with value from (A1:J20).

also I have 2 kinds of variable X and Y. by counting 3 kinds of thing that I had (I mean k=1,2,3) then I have 9 variables.

I called them (X1,X2,X3,X4,Y1,Y2,Y3,Y4)

Now it is my question. how can I write following constraint in gams:

this constraint is one of my constraints. I write something like that in gams but I got error 149:

cons1… Y1(i,j) =l= sum(X1(i-1,j),X1(i,j-1),X1(i,j-1),X1(i,j+1);

cons2… Y2(i,j) =l= sum(X2(i-1,j),X2(i,j-1),X2(i,j-1),X2(i,j+1);

cons3… Y3(i,j) =l= sum(X3(i-1,j),X3(i,j-1),X3(i,j-1),X3(i,j+1);

cons4… Y4(i,j) =l= sum(X4(i-1,j),X4(i,j-1),X4(i,j-1),X4(i,j+1);

–

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.

To post to this group, send email to gamsworld@googlegroups.com.

Visit this group at http://groups.google.com/group/gamsworld.

For more options, visit https://groups.google.com/d/optout.