problem with error 148

hello everyone,
I have had a problem with my GAMS code. I always receive Error 148 and 149.
i have attached the code file to this topic. please some one help me to solve this problem.
Thanks a lot.


New.gms (2.93 KB)

Hi



Gams is quite clear on what the error is:

148 Dimension different - The symbol is referenced with more/less indices as declared

It puts this error just below the equation M2, so M2 is declared with other dimensions as used right here.

You declare M2 a few lines above as M2(ff,k), so every time you use M2 you should use these indexes. M2 should therefore be M2ff,k).



Cheers

Renger



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of seyedin1989@gmail.com
Sent: Sonntag, 12. Juli 2015 11:24
To: gamsworld@googlegroups.com
Subject: problem with error 148



hello everyone,
I have had a problem with my GAMS code. I always receive Error 148 and 149.
i have attached the code file to this topic. please some one help me to solve this problem.
Thanks a lot.


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.


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.