Uncontrolled set as constant

I have the Gams code which is shown below. I have two errors with this code. Could you help me to figure out it and how to get rid of?

mblncdef(i)… mblnc(i)=e= sum(x,(A(i,x)* m(x)- mc(subset2)(A(i,x)-1)/2)) = S(i);
Vedef(x)… Ve(x) =e= 122 * sqr (Z
R*Temp / P(subset2)*Mol) ;

It says “uncontrolled set as constant”. How can I solve this problem?

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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

Hi E (?)

You use the variable or parameter mc defined over set „subset2“ in your equations.

Your equations are indexed over i and x respectively, so Gams has a problem with “subset2” as it is not used in the definition nor is it used in a sum or product in the equation itself (like you did with “x” in the first equation)



This could work either as:



mblncdef(i,subset2)

vedef(x,subset2)



or in a sum or product in the equation itself:

mblncdef(i)… mblnc(i)=e= sum(x,(A(i,x)* m(x)- sum(subset2, mc(subset2))*(A(i,x)-1)/2)) = S(i);



Cheers

Renger


Modelworks

Gewerbestrasse 16

3600 Thun – Switzerland

+41 79 818 53 73

Info@modelworks.ch







From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of e.fatihgunes@gmail.com
Sent: Sunday, June 9, 2013 5:42 AM
To: gamsworld@googlegroups.com
Subject: Uncontrolled set as constant



I have the Gams code which is shown below. I have two errors with this code. Could you help me to figure out it and how to get rid of?



mblncdef(i)… mblnc(i)=e= sum(x,(A(i,x)* m(x)- mc(subset2)*(A(i,x)-1)/2)) = S(i);

Vedef(x)… Ve(x) =e= 122 * sqr (ZRTemp / P(subset2)*Mol) ;



It says “uncontrolled set as constant”. How can I solve this problem?



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?hl=en.
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\