Ines:

Check wether you have declared CAPLIMIT(i,j) (which now should be CAPLIMIT(j)) when you DECLARE the equations (before you actually write them).

If that is not the problem, check if DEMAND(i), X(i,j), D(j) and C(j) were correctly declared (with the same amount of indices you later use them)

regards

On Tue, Jun 25, 2013 at 2:39 PM, Ines TR wrote:

Dharmender,

I saw your solution to IremÂ´s question.

I am having the same trouble.

This is how I have my equations:

DEMAND (i)… SUM(j, X(i,j)) =e= D(i);

CAPLIMIT(j)… SUM(i, X(i,j)) =l= C(j);

before I had

CAPLIMIT(i,j)… SUM(i, X(i,j)) =l= C(j);

Now, the error I get says “Dimension different-the symbol is referrenced with more/ less indices as declared”

Do you understand why I might be getting such message?

Thanks a lot!

Ines

On Monday, June 17, 2013 1:14:38 AM UTC-6, dharmender yadav wrote:

Hi Irem,

The problem is beause you have taken the index J in sum.you have defined the equation to be valid for all J but on rrite side you have taken J in sum (j,i). So remove the j from here.

It should be like this

capacity3(j)… p*y(j)(ord(j) le 1)=l=sum((i)(ord (j) ge 1 and ord (i) ge 1),x2(j,i));

similarly in second equation remove k from summation as the equation is written for all K,J

flow1(k,j)$(ord(k) ge 1 and ord(j) ge 1)… x1(k,j)=e= d(k)*z1(k,j)

I hope this will work.

Thanks

Dharmender

On Sunday, June 16, 2013, Irem kÄ±ÅŸla wrote:

Couldn’t write these equations in the model.Please help me

capacity3(j)… p*y(j)(ord(j) le 1)=l=sum((j,i)(ord (j) ge 1 and ord (i) ge 1),x2(j,i));

flow1(k,j)$(ord(k) ge 1 and ord(j) ge 1)… x1(k,j)=e=sum(k,d(k)*z1(k,j));

–

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

To post to this group, send email to gams...@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.

\