Error $149 in finding maximum across rows of a 2d table

Hi,
I am new to GAMS world and I am trying to solve a MIP maximization Problem. However, I am stuck on the following thing for weeks now:

I have a 2D table X(i,j) (say i = 3 and j = 5)
Variables:
a) y _- i.e. 3 elements
b) z[j] - i.e. 5 elements // Binary variable

Now, I want to add an equation saying that each element of y should be <= maximum value in each row of X(i,j)*z(j)
When I try to add an equation as:
coverage … smax((j), X(i,j)*z(j)) =g= y(i); // i.e. multiply each element (i,j) of X with j’th element of z and then find max along rows

I get the following error:
coverage … smax((j), X(i,j)*z(j)) =g= y(i);
**** $149 $149

149 Uncontrolled set entered as constant

Does anybody have an idea as to how I can model this constraint.
Initially, I had tried to use GLPK for solving this but hit the same roadblock.
Any help would be greatly appreciated.

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/groups/opt_out._

There must be problem in declaring the variable. All the variable should be clearly declared that are going to be used in equation
On 25 Nov 2013 14:41, “Pankhuri Gupta” wrote:

Hi,
I am new to GAMS world and I am trying to solve a MIP maximization Problem. However, I am stuck on the following thing for weeks now:

I have a 2D table X(i,j) (say i = 3 and j = 5)
Variables:
a) y _- i.e. 3 elements
b) z[j] - i.e. 5 elements // Binary variable

Now, I want to add an equation saying that each element of y should be <= maximum value in each row of X(i,j)*z(j)
When I try to add an equation as:
coverage … smax((j), X(i,j)*z(j)) =g= y(i); // i.e. multiply each element (i,j) of X with j’th element of z and then find max along rows

I get the following error:
coverage … smax((j), X(i,j)*z(j)) =g= y(i);
**** $149 $149

149 Uncontrolled set entered as constant

Does anybody have an idea as to how I can model this constraint.
Initially, I had tried to use GLPK for solving this but hit the same roadblock.
Any help would be greatly appreciated.

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/groups/opt_out.\
\

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/groups/opt_out._