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._