Error 149

51 views
Skip to first unread message

Gabriel

unread,
Apr 10, 2014, 3:47:40 PM4/10/14
to gams...@googlegroups.com
Hi,

I don´t know how to handle with this error $149. I'm usually able to figure it out but I suppose ultimately I don't get what the real problem is.

Sets

         i country / USA , ARG /
         t  periods  /1*400 /

Alias    (i,j) ;

==========***=============

       EQY(i,t)..     Y(i,t) =E= C(i,t) +  E(i,t) - M(i,t) ;

       EQM(i,t)..     M(i,t) =E= mu(i,t)*Y(i,t)  ;

       EQE(i,t)..     E(i,t) =E= M(j,t) ;
                                      $149

Any help will be really appreciated,

Best Regards,

Gabriel

Renger van Nieuwkoop

unread,
Apr 11, 2014, 1:23:26 AM4/11/14
to <gamsworld@googlegroups.com>
Hi Gabriel
You defined the equation over i,t and then use j,t in the equation itself.
Cheers
Renger

sent from my iPad
--
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.

Gabriel

unread,
Apr 11, 2014, 9:22:42 AM4/11/14
to gams...@googlegroups.com
Dear Renger,

Thanks by your comment. How can i fix the code so :

E("ARG", t) =E= M("USA", t) 

 and

E("USA", t) =E= M("ARG", t) 

Best

G.

Renger van Nieuwkoop

unread,
Apr 12, 2014, 12:37:29 AM4/12/14
to <gamsworld@googlegroups.com>
Add these two equations :-)

Sent from my iPhone

Gabriel

unread,
Apr 12, 2014, 1:08:28 AM4/12/14
to gams...@googlegroups.com
:) thx!

Sent from my iPhone
You received this message because you are subscribed to a topic in the Google Groups "gamsworld" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gamsworld/dZXb0wcdlCk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gamsworld+...@googlegroups.com.

Alie Ranjbar

unread,
Apr 14, 2014, 2:46:15 PM4/14/14
to gams...@googlegroups.com


On Friday, April 11, 2014 5:52:42 PM UTC+4:30, Gabriel wrote:
Dear Renger,

Thanks by your comment. How can i fix the code so :

E("ARG", t) =E= M("USA", t) 

 and

E("USA", t) =E= M("ARG", t) 

dear gabriel

you can use $ in the right side of the equation in the following form:
E(i,t)=e=M(j,t)$(ord(i)<>ord(j))


 

Renger van Nieuwkoop

unread,
Apr 14, 2014, 3:16:01 PM4/14/14
to gams...@googlegroups.com

Dear Alie and Gabriel

This only works if you either change the equation from EQE(i,t)..    to EQE(i,j,t)..

and if there are only two elements in the set i…

Cheers

Renger

Alie Ranjbar

unread,
Apr 15, 2014, 2:17:52 AM4/15/14
to gams...@googlegroups.com
dear renger
thanks, but i can't see the two equations which you suggest,
best regards

Renger van Nieuwkoop

unread,
Apr 15, 2014, 3:43:15 AM4/15/14
to gams...@googlegroups.com

You define the equation EQE(i,t) and then you just write

E("ARG", t) =E= M("USA", t) 

And

 

E("USA", t) =E= M("ARG", t) 

That’s all

Reply all
Reply to author
Forward
0 new messages