I have a xy-coordinate. x from 0 to 100 and y from 0 to 100. On each point (x,y), there is a number n(x,y).

then I want to find several points, which has the biggest sum of n(x,y).

I plan to design the program roughly as below:

set x /0*100/;
y /0*100/;

table n(x,y);

variable a, b;

equation 1;

1…sumn = n(a,b)+n(a+1,b+1);

…

However, gams do not accept n(a,b). Is there a way to realize the problem?

Thanks.

–

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.