problem with error 148

609 views
Skip to first unread message

seyed...@gmail.com

unread,
Jul 12, 2015, 4:57:12 PM7/12/15
to gams...@googlegroups.com
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

Renger van Nieuwkoop

unread,
Jul 13, 2015, 1:49:57 AM7/13/15
to gams...@googlegroups.com

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

--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
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/d/optout.

Reply all
Reply to author
Forward
0 new messages