lingo 问题!lingo大神请入!

Purchase/1,2,3,4,5,6,7,8,9,10,11/;Sell/1,2,3,4/;Electricity/1,2,3,4,5,6,7/;Heat/1,2,3... Purchase/1,2,3,4,5,6,7,8,9,10,11/;
Sell/1,2,3,4/;
Electricity/1,2,3,4,5,6,7/;
Heat/1,2,3,4/;
Car/1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16/;
EHPollution/1,2,3,4/;
TPollution/1,2,3/;
period/1,2,3/:PVO, RO, PP, YZ, EZ, PWO, RW, PW, YW, EW, DMC, DMN, DML, DMD, DMG, DMF, DMO, DMK, DME;
link1(Purchase, period):PD, Z;
link2(Sell, period):PDX, ZX;
link3(Electricity, period): PV, TE, PI, Y, E,FE,CF, RE;
link4(Heat, period):PR, W, PA, YR, ER,H,RR, CH,DMH;
link5(Car, period):CP, XC, CR, YC, D, AP, TAD, UC, DPM, DPN;
link6(EHPollution, period):SE;
link7(Electricity,EHPollution, period):SER,SDE,PF;
link8(Heat,EHPollution,period):SDH,SEH,PH;
link9(TPollution,period):SET;
link10(Car, TPollution, period): TED;
@for(period(t)|i#eq#1#and#v#eq#1: Z(i,t)+ ZX(v,t)>= DMC(t));

@for(period(t)|i#eq#1#and#k#eq#1#and#m#eq#1: Z(i,t)>=CF(k,t)*TE(k,t) + CH(m,t)*W(m,t));

@for(period(t)|i#eq#2: Z(i,t)>= DMC(t));

@for(period(t)|i#eq#2#and#k#eq#2#and#m#eq#2: Z(i,t)>=CF(k,t)*TE(k,t) + CH(m,t)*W(m,t));

@for(period(t)|i#eq#3:(Z(i,t))>=DML(t));

@for(Car(j):
@for(period(t)|i#eq#3#and#(j#eq#3#or#j#eq#8#or#j#eq#13):
Z(i,t)>= @sum(link5(j,t):CR(j,t)*D(j,t))));

@for(period(t)|i#eq#4#and#v#eq#3:Z(i,t)+ ZX(v,t)=DMD(t));

@for(Car(j):
@for(period(t)|i#eq#4#and#v#eq#3#and#(j#eq#2#or#j#eq#7#or#j#eq#12):
Z(i,t)+ZX(v,t)>= @sum(link5(j,t):CR(j,t)*D(j,t)));

@for(period(t)|i#eq#4#and#v#eq#3#and#(j#eq#2#or#j#eq#7#or#j#eq#12):
Z(i,t)+ZX(v,t)>= @sum(link5(j,t):CR(j,t)*D(j,t)));

@for(period(t)|i#eq#5#and#v#eq#4:
Z(i,t)+ZX(v,t)>=DMG(t));

@for(period(t)|i#eq#5#and#v#eq#4#and#(j#eq#1#or#j#eq#6#or#j#eq#11):
Z(i,t)+ZX(v,t)>= @sum(link5(j,t):CR(j,t)*D(j,t)));

@for(period(t)|i#eq#6:Z(i,t)>=DMF(t));

@for(period(t)|i#eq#7#and#v#eq#2:Z(i,t)+ ZX(v,t)>= DMO(t));

@for(period(t)|i#eq#7and#v#eq#2:Z(i,t)+ ZX(v,t)>= RO(t)+YZ(t)*EZ(t));

@for(period(t)|i#eq#8:Z(i,t) >= DMC(t));

@for(period(t)|i#eq#8:Z(i,t)>= RW(t)+YW(t)*EW(t));

@for(period(t)|i#eq#9:Z(i,t) >= DMK(t));

@for(period(t)|i#eq#10: Z(i,t) + @sum(Electricity(k):TE(k,t)) >= DME(t));

@for(period(t)|i#eq#10#and#(j#eq#4#or#j#eq#9#or#j#eq#14):
Z(i,t) + @sum(link3(k,t):TE(k,t)) >= @sum(link5(j,t):CR(j,t)*D(j,t)));

@for(Electricity(k):
@for(period(t):10000*TE(k,t) >= FE(k,t)*(RE(k,t)+Y(k,t)*E(k,t))));

@for(Heat(m):
@for(period(t):
@sum(Heat(m): W(m,t)) >= DMH(t));

@for(Heat(m):
@for(period(t):
(RR(m,t)+(YR(m,t)*ER(m,t)))>=W(m,t));

@for(period(t):
@sum(Car(j):AP(j,t)* D(j,t))>= TAD(j,t));

@for(Car(j):
@for(period(t):
(XC(j,t)+UC(j,t))*DPM(j,t)>=D(j,t));

@for(Car(j):
@for(period(t):
(XC(j,t)+UC(j,t))*DPN(j,t)<=D(j,t));

@for(period(t):
@sum((link7(k,l,t): ((1-SER(k,l,t))* T(k,t) * SDE(k,l,t)))
+ @sum(link8(m,l,t):((1-SEH(m,l,t)) * W(m,t) * SDH(m,l,t)))) <= @sum(link6(l,t):SE(l,t)));

@for(period(t):
@sum(link10(j,o,t): D(j,t)* TED(j,o,t))<= @sum(link9(o,t):SET(o,t)));
end
展开
wswhk
2012-12-11 · TA获得超过7.1万个赞
知道顶级答主
回答量:4.6万
采纳率:68%
帮助的人:7.4亿
展开全部
错误很多 你根据错误提示慢慢改好不好 你这里sets也不写 #也有丢了的 当然不对
更多追问追答
追问
他的错误提示,都是说我 i , j , k , 等等 好多都是错误161,  我是真看不来, 不然也不会求救了。
追答
错误实在太多 你先把我说的改好再说
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式