Need help for Error 149

Hello,
hope someone can help me with this. I will appreciate it because it is urgent.
I have tried to optimize power flow using cone programming. But when I have received errors all the time. It seems that I use the SET which is not defined in the equations.


144 eq3(l)…At(l,b)W(b)=e=2R(l,l)Pr(l)+2X(l,l)*Qr(l)+R(l,l)*Ploss(l)+X(l,l)*Qloss(l);
**** $149 $149

145 eq4(c,l)…cc(c,l)*X(l,l)*Pr(l)-cc(c,l)*R(l,l)*Qr(l)=e=0;
**** $148

146 eq5(l)…X(l,l)*Ploss(l)-R(l,l)*Qloss(l)=e=0;

147 eq6(l)…Ploss(l)=e=2*R(l,l)*Plossin(l);

148 cone(l)…Plossin(l)+Atr(l,b)*W(b)=C=Pr(l)+Qr(l);
**** $149 $149

How can I write such equations? The dimension of the equations should be correct so how can I index such SET in my equations.

Thanks
JOY


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.

Hi Shan

You define your equation over l and then use the set b. So you should define your equation over l and b.

Same thing for the following equations.

Renger

PS. This kind of questions is often answered in the mailing list, so before you ask, search the mailing list)


\


Modelworks

Gewerbestrasse 15

3600 Thun – Switzerland

+41 79 818 53 73

Info@modelworks.ch

blog.modelworks.ch







From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Shan Huang
Sent: Dienstag, 28. Januar 2014 12:51
To: gamsworld@googlegroups.com
Subject: Need help for Error 149



Hello,

hope someone can help me with this. I will appreciate it because it is urgent.

I have tried to optimize power flow using cone programming. But when I have received errors all the time. It seems that I use the SET which is not defined in the equations.





144 eq3(l)…At(l,b)W(b)=e=2R(l,l)Pr(l)+2X(l,l)*Qr(l)+R(l,l)*Ploss(l)+X(l,l)*Qloss(l);

**** $149 $149



145 eq4(c,l)…cc(c,l)*X(l,l)*Pr(l)-cc(c,l)*R(l,l)*Qr(l)=e=0;

**** $148



146 eq5(l)…X(l,l)*Ploss(l)-R(l,l)Qloss(l)=e=0;



147 eq6(l)…Ploss(l)=e=2
R(l,l)*Plossin(l);



148 cone(l)…Plossin(l)+Atr(l,b)*W(b)=C=Pr(l)+Qr(l);

**** $149 $149



How can I write such equations? The dimension of the equations should be correct so how can I index such SET in my equations.



Thanks

JOY


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.


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.