lingo语法错误,各位高手过来指点下,错在何处? 5

w1=100*k*x11+210*k*x13+250*k*x14+290*k*x15+300*k*x16+430*k*x18+450*k*x19+500*k*k10+90... w1=100*k*x11+210*k*x13+250*k*x14+290*k*x15+300*k*x16+430*k*x18+450*k*x19+500*k*k10+90*k*x21+180*k*x22+240*k*x24+305*k*x26+380*k*x27+435*k*x28+490*k*x20+170*k*x32+210*k*x33+245*k*x34+285*k*x36+400*k*x37+450*k*x39+480*k*x30;
w2=10*k*y12+14*k*y13+17*k*y14+13*k*y15+10*k*y21+8*k*y22+9*k*y24+16*k*y25+15*k*y31+16*k*y32+9*k*y33+15*k*y34;
w3=k*s1*s1*s1/190+152000*k*s1*(1/k-s1/3800)^2+7/720*s2*s2*s2+252000*s2*(1/k-s2/3600)^2+9/728*k*s3*s3*s3+327600*k*s3*(1/k-s3/3640)^2+k*s4*s4*s4/65+325000*k*s4*(1/k-s4/3250)^2+3/157*k*s5*s5*s5+376800*k*s5*(1/k-s5/3140)^2+2/167*k*s6*s6*s6+400800*k*s6*(1/k-s6/3340)^2+15/628*k*s7*s7*s7+471000*k*s7*(1/k-s7/3140)^2+8/323*k*s8*s8*s8+516800*k*s8*(1/k-s8/3230)^2+9/374*k*s9*s9*s9+673200*k*s9*(1/k-s9/3740)^2+1/39*k*s10*s10*s10+780000*k*s10*(1/k-s10/3900)^2;
w4=10000*k
s1=j11+j12+j13+j14+j15;
s2=j21+j22+j23+j24+j25;
s3=j31+j32+j33+j34+j35;
s4=j41+j42+j43+j44+j45;
s5=j51+j52+j53+j54+j55;
min=w1+w2+w3+w4
k*x11<=2000;
k*x21<=2000;
k*x31=0;
k*x12=0;
k*x22<=1300;
k*x32<=2500;
k*x13<=3000;
k*x23=0;
k*x33<=800;
k*x14<=1000;
k*x24<=1000;
k*x34<=1500;
k*x15<=3200;
k*x25=0;
k*x35=0;
k*x16<=1000;
k*x26<=1500;
k*x36<=1000;
k*x17=0;
k*x27<2000;
k*x37<=1400;
k*x18<=2000;
k*x28<=1500;
k*x38=0;
k*x19<=1500;
k*x29=0;
k*x39<=2500;
k*x10<=1500;
k*x20<=1200;
k*x30<=1500;
1.5j11+j21+1.5j31+2j41+1.5j51+0.5j61+1.5j71+2j81+j91+0.5j01<=0.08;
1.5J12+j22+1.5j32+2j42+1.5j52+0.5j62+1.5k72+2j82+j92+0.5j02<=0.06;
1.5j13+j23+1.5j33+2j43+1.5j53+0.5j63+1.5j73+2j83+j93+0.5j03<=0.1;
1.5j14+j24+1.5j34+2j44+1.5j54+0.5j64+1.5j74+2j84+j94+0.5j04<=0.07;
1.5j15+j25+1.5j35+2j45+1.5j55+0.5j65+1.5j75+2j85+j95+0.5j05<=0.08;
j11+j12+j13+j14+j15=s1;
j21+j22+j23+j24+j25=s2;
j31+j32+j33+j34+j35=s3;
j41+j42+j43+j44+j45=s4;
j51+j52+j53+j54+j55=s5;
x11+x12+x13+x14+x15+x16+x17+x18+x19+x10+x21+x22+x23+x24+x25+x26+x27+x28+x29+x20+x31+x32+x33+x34+x35+x36+x37+x38+x39+x30+x41+x42+x43+x44+x45+x46+x47+x48+x49+x40=y11+y12+y13+y14+y15+y21+y22+y23+y24+y25+y31+y32+y33+y34+y35+y41+y42+y43+y44+y45=z11+z12+z13+z14+z15+z16+z17+z18+z21+z22+z23+z24+z25+z26+z27+z28+z31+z32+z33+z34+z35+z36+z37+z38+z41+z42+z43+z44+z45+z46+z47+z48+z51+z52+z53+z54+z55+z56+z57+z58=j11+j12+j13+j14+j15+j21+j22+j23+j24+j25+j31+j32+j33+j34+j35+j41+j42+j43+j44+j45+j51+j52+j53+j54+j55+j61+j62+j63+j64+j65+j71+j72+j73+j74+j75+j81+j82+j83+j84+j85+j91+j92+j93+j94+j95+j01+j02+j03+j04+j05;
展开
316855894
2010-08-23
知道答主
回答量:30
采纳率:0%
帮助的人:24.3万
展开全部
楼主的lingo基础确实不是很好,建议多看看lingo教程。语法错误修改如下:
但是却没有结果出来。楼主最后四个等式表示什么意思?希望我能修改完善
model:
min=w1+w2+w3+w4;
w1=100*k*x11+210*k*x13+250*k*x14+290*k*x15+300*k*x16+430*k*x18+450*k*x19+500*k*k10+90*k*x21+180*k*x22+240*k*x24+305*k*x26+380*k*x27+435*k*x28+490*k*x20+170*k*x32+210*k*x33+245*k*x34+285*k*x36+400*k*x37+450*k*x39+480*k*x30;
w2=10*k*y12+14*k*y13+17*k*y14+13*k*y15+10*k*y21+8*k*y22+9*k*y24+16*k*y25+15*k*y31+16*k*y32+9*k*y33+15*k*y34;
w3=k*s1*s1*s1/190+152000*k*s1*(1/k-s1/3800)^2+7/720*s2*s2*s2+252000*s2*(1/k-s2/3600)^2+9/728*k*s3*s3*s3+327600*k*s3*(1/k-s3/3640)^2+k*s4*s4*s4/65+325000*k*s4*(1/k-s4/3250)^2+3/157*k*s5*s5*s5+376800*k*s5*(1/k-s5/3140)^2+2/167*k*s6*s6*s6+400800*k*s6*(1/k-s6/3340)^2+15/628*k*s7*s7*s7+471000*k*s7*(1/k-s7/3140)^2+8/323*k*s8*s8*s8+516800*k*s8*(1/k-s8/3230)^2+9/374*k*s9*s9*s9+673200*k*s9*(1/k-s9/3740)^2+1/39*k*s10*s10*s10+780000*k*s10*(1/k-s10/3900)^2;
w4=10000*k;
s1=j11+j12+j13+j14+j15;
s2=j21+j22+j23+j24+j25;
s3=j31+j32+j33+j34+j35;
s4=j41+j42+j43+j44+j45;
s5=j51+j52+j53+j54+j55;
k*x11<=2000;
k*x21<=2000;
k*x31=0;
k*x12=0;
k*x22<=1300;
k*x32<=2500;
k*x13<=3000;
k*x23=0;
k*x33<=800;
k*x14<=1000;
k*x24<=1000;
k*x34<=1500;
k*x15<=3200;
k*x25=0;
k*x35=0;
k*x16<=1000;
k*x26<=1500;
k*x36<=1000;
k*x17=0;
k*x27<2000;
k*x37<=1400;
k*x18<=2000;
k*x28<=1500;
k*x38=0;
k*x19<=1500;
k*x29=0;
k*x39<=2500;
k*x10<=1500;
k*x20<=1200;
k*x30<=1500;
1.5*j11+j21+1.5*j31+2*j41+1.5*j51+0.5*j61+1.5*j71+2*j81+j91+0.5*j01<=0.08;
1.5*j12+j22+1.5*j32+2*j42+1.5*j52+0.5*j62+1.5*k72+2*j82+j92+0.5*j02<=0.06;
1.5*j13+j23+1.5*j33+2*j43+1.5*j53+0.5*j63+1.5*j73+2*j83+j93+0.5*j03<=0.1;
1.5*j14+j24+1.5*j34+2*j44+1.5*j54+0.5*j64+1.5*j74+2*j84+j94+0.5*j04<=0.07;
1.5*j15+j25+1.5*j35+2*j45+1.5*j55+0.5*j65+1.5*j75+2*j85+j95+0.5*j05<=0.08;
j11+j12+j13+j14+j15=s1;
j21+j22+j23+j24+j25=s2;
j31+j32+j33+j34+j35=s3;
j41+j42+j43+j44+j45=s4;
j51+j52+j53+j54+j55=s5;
a1=x11+x12+x13+x14+x15+x16+x17+x18+x19+x10+x21+x22+x23+x24+x25+x26+x27+x28+x29+x20+x31+x32+x33+x34+x35+x36+x37+x38+x39+x30+x41+x42+x43+x44+x45+x46+x47+x48+x49+x40;
a2=y11+y12+y13+y14+y15+y21+y22+y23+y24+y25+y31+y32+y33+y34+y35+y41+y42+y43+y44+y45;
a3=z11+z12+z13+z14+z15+z16+z17+z18+z21+z22+z23+z24+z25+z26+z27+z28+z31+z32+z33+z34+z35+z36+z37+z38+z41+z42+z43+z44+z45+z46+z47+z48+z51+z52+z53+z54+z55+z56+z57+z58;
a4=j11+j12+j13+j14+j15+j21+j22+j23+j24+j25+j31+j32+j33+j34+j35+j41+j42+j43+j44+j45+j51+j52+j53+j54+j55+j61+j62+j63+j64+j65+j71+j72+j73+j74+j75+j81+j82+j83+j84+j85+j91+j92+j93+j94+j95+j01+j02+j03+j04+j05;
a1=a2;
a2=a3;
a3=a4;
end
xinke0802
2010-08-24 · TA获得超过451个赞
知道答主
回答量:81
采纳率:0%
帮助的人:47.9万
展开全部
我已经给出了程序的改错,不过貌似没有结果啊!如果还想探讨一下的话,你可以发邮件给我,认识一下!!我的邮箱是469309088@qq.com或者是wang469309088@126.com,请注明信息哦!!

model:
min=w1+w2+w3+w4;
s1=j11+j12+j13+j14+j15;
s2=j21+j22+j23+j24+j25;
s3=j31+j32+j33+j34+j35;
s4=j41+j42+j43+j44+j45;
s5=j51+j52+j53+j54+j55;
w1=100*k*x11+210*k*x13+250*k*x14+290*k*x15+300*k*x16+430*k*x18+450*k*x19+500*k*k10+90*k*x21+180*k*x22+240*k*x24+305*k*x26+380*k*x27+435*k*x28+490*k*x20+170*k*x32+210*k*x33+245*k*x34+285*k*x36+400*k*x37+450*k*x39+480*k*x30;
w2=10*k*y12+14*k*y13+17*k*y14+13*k*y15+10*k*y21+8*k*y22+9*k*y24+16*k*y25+15*k*y31+16*k*y32+9*k*y33+15*k*y34;
w3=k*s1*s1*s1/190+152000*k*s1*(1/k-s1/3800)^2+7/720*s2*s2*s2+252000*s2*(1/k-s2/3600)^2+9/728*k*s3*s3*s3+327600*k*s3*(1/k-s3/3640)^2+k*s4*s4*s4/65+325000*k*s4*(1/k-s4/3250)^2+3/157*k*s5*s5*s5+376800*k*s5*(1/k-s5/3140)^2+2/167*k*s6*s6*s6+400800*k*s6*(1/k-s6/3340)^2+15/628*k*s7*s7*s7+471000*k*s7*(1/k-s7/3140)^2+8/323*k*s8*s8*s8+516800*k*s8*(1/k-s8/3230)^2+9/374*k*s9*s9*s9+673200*k*s9*(1/k-s9/3740)^2+1/39*k*s10*s10*s10+780000*k*s10*(1/k-s10/3900)^2;
w4=10000*k;
k*x11<=2000;
k*x21<=2000;
k*x31=0;
k*x12=0;
k*x22<=1300;
k*x32<=2500;
k*x13<=3000;
k*x23=0;
k*x33<=800;
k*x14<=1000;
k*x24<=1000;
k*x34<=1500;
k*x15<=3200;
k*x25=0;
k*x35=0;
k*x16<=1000;
k*x26<=1500;
k*x36<=1000;
k*x17=0;
k*x27<2000;
k*x37<=1400;
k*x18<=2000;
k*x28<=1500;
k*x38=0;
k*x19<=1500;
k*x29=0;
k*x39<=2500;
k*x10<=1500;
k*x20<=1200;
k*x30<=1500;
1.5*j11+j21+1.5*j31+2*j41+1.5*j51+0.5*j61+1.5*j71+2*j81+j91+0.5*j01<=0.08;
1.5*J12+j22+1.5*j32+2*j42+1.5*j52+0.5*j62+1.5*j72+2*j82+j92+0.5*j02<=0.06;
1.5*j23+1.5*j33+2*j43+1.5*j53+0.5*j63+1.5*j73+2*j83+j93+0.5*j03<=0.1;
1.5*j14+j24+1.5*j34+2*j44+1.5*j54+0.5*j64+1.5*j74+2*j84+j94+0.5*j04<=0.07;
1.5*j15+j25+1.5*j35+2*j45+1.5*j55+0.5*j65+1.5*j75+2*j85+j*95+0.5*j05<=0.08;
j11+j12+j13+j14+j15=s1;
j21+j22+j23+j24+j25=s2;
j31+j32+j33+j34+j35=s3;
j41+j42+j43+j44+j45=s4;
j51+j52+j53+j54+j55=s5;
aa1=x11+x12+x13+x14+x15+x16+x17+x18+x19+x10+x21+x22+x23+x24+x25+x26+x27+x28+x29+x20+x31+x32+x33+x34+x35+x36+x37+x38+x39+x30+x41+x42+x43+x44+x45+x46+x47+x48+x49+x40;
aa2=y11+y12+y13+y14+y15+y21+y22+y23+y24+y25+y31+y32+y33+y34+y35+y41+y42+y43+y44+y45;
aa3=z11+z12+z13+z14+z15+z16+z17+z18+z21+z22+z23+z24+z25+z26+z27+z28+z31+z32+z33+z34+z35+z36+z37+z38+z41+z42+z43+z44+z45+z46+z47+z48+z51+z52+z53+z54+z55+z56+z57+z58;
aa4=j11+j12+j13+j14+j15+j21+j22+j23+j24+j25+j31+j32+j33+j34+j35+j41+j42+j43+j44+j45+j51+j52+j53+j54+j55+j61+j62+j63+j64+j65+j71+j72+j73+j74+j75+j81+j82+j83+j84+j85+j91+j92+j93+j94+j95+j01+j02+j03+j04+j05;
aa1=aa2;
aa1=aa3;
aa1=aa4;
end
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

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

类别

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

说明

0/200

提交
取消

辅 助

模 式