请高手帮我看看lingo编程的问题,从第一个约束条件就显示错误代码11了,我是编程小白的说,附上程序
min=629.1*x1+781.5*x2+699*x3+737*x4+832.7*x5+752.4*x6+692*x7+974.6*x8+682.2*x9+675.2*...
min=629.1*x1+781.5*x2+699*x3+737*x4+832.7*x5+752.4*x6+692*x7+974.6*x8+682.2*x9+675.2*x10+734.24*x11+630.24*x12+1297.2*x13+1026*x14+816.96*x15+24.72*x16*y1+41.3*x17*y2+44.66*x18*y3+33.6*x19*y4+54.24*x20*y5+64.82*x21*y6+46.9*x22+37.65*x23+4519.18*w1+4717.12*w2+5420.55*w3+20273.97*w4+18315.07*w5+7000;
15*x1+10*x4+10*x7+8*x10+12*x13<=40;
15*x2+10*x5+10*x8+8*x11+12*x14<=45;
15*x3+10*x6+10*x9+8*x12+12*x15<=42;
15*x1+10*x4+10*x7+8*x10+12*x13+15*x2+10*x5+10*x8+8*x11+12*x14+15*x3+10*x6+10*x9+8*x12+12*x15<=40*w1*45*w2+42*w3;
x16*y1+x18*y3+x20*y5<=65;
x17*y2+x19*y4+x21*y6<=60;
x16*y1+x18*y3+x20*y5+x17*y2+x19*y4+x21*y6<=65*w4+60*w5;
x16+x17+x18+x19+x20+x21=52.5;
x22+x23=44.67;
x1+x2+x3=1;
x4+x5+x6=1;
x7+x8+x9=1;
x10+x11+x12=1;
x13+x14+x15=1;
y1+y2=1;
y3+y4=1;
y5+y6=1;
w1+w2+w3<=3;
w4+w5<=2;
@bin(x1);
@bin(x2);
@bin(x3);
@bin(x4);
@bin(x5);
@bin(x6);
@bin(x7);
@bin(x8);
@bin(x9);
@bin(x10);
@bin(x11);
@bin(x12);
@bin(x13);
@bin(x14);
@bin(x15);
@bin(y1);
@bin(y2);
@bin(y3);
@bin(y4);
@bin(y5);
@bin(y6);
@bin(w1);
@bin(w2);
@bin(w3);
@bin(w4);
@bin(w5);
@gin(x16);
@gin(x17);
@gin(x18);
@gin(x19);
@gin(x20);
@gin(x21);
@gin(x22);
@gin(x23);
end
是本身建模的错误,还是语法输入的问题?小弟先谢谢了..... 展开
15*x1+10*x4+10*x7+8*x10+12*x13<=40;
15*x2+10*x5+10*x8+8*x11+12*x14<=45;
15*x3+10*x6+10*x9+8*x12+12*x15<=42;
15*x1+10*x4+10*x7+8*x10+12*x13+15*x2+10*x5+10*x8+8*x11+12*x14+15*x3+10*x6+10*x9+8*x12+12*x15<=40*w1*45*w2+42*w3;
x16*y1+x18*y3+x20*y5<=65;
x17*y2+x19*y4+x21*y6<=60;
x16*y1+x18*y3+x20*y5+x17*y2+x19*y4+x21*y6<=65*w4+60*w5;
x16+x17+x18+x19+x20+x21=52.5;
x22+x23=44.67;
x1+x2+x3=1;
x4+x5+x6=1;
x7+x8+x9=1;
x10+x11+x12=1;
x13+x14+x15=1;
y1+y2=1;
y3+y4=1;
y5+y6=1;
w1+w2+w3<=3;
w4+w5<=2;
@bin(x1);
@bin(x2);
@bin(x3);
@bin(x4);
@bin(x5);
@bin(x6);
@bin(x7);
@bin(x8);
@bin(x9);
@bin(x10);
@bin(x11);
@bin(x12);
@bin(x13);
@bin(x14);
@bin(x15);
@bin(y1);
@bin(y2);
@bin(y3);
@bin(y4);
@bin(y5);
@bin(y6);
@bin(w1);
@bin(w2);
@bin(w3);
@bin(w4);
@bin(w5);
@gin(x16);
@gin(x17);
@gin(x18);
@gin(x19);
@gin(x20);
@gin(x21);
@gin(x22);
@gin(x23);
end
是本身建模的错误,还是语法输入的问题?小弟先谢谢了..... 展开
展开全部
问题在于:
(1)语句尾的分号的问题,有些分号是中文状态的,必须全修改为英文状态的才行;这改起来不难,“编辑”-“替换”即可;
(2)末尾“end”不必要;
另外,你的代码不简练。
(1)语句尾的分号的问题,有些分号是中文状态的,必须全修改为英文状态的才行;这改起来不难,“编辑”-“替换”即可;
(2)末尾“end”不必要;
另外,你的代码不简练。
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
标点必须用英文的 另外你这个没有可行解
min=629.1*x1+781.5*x2+699*x3+737*x4+832.7*x5+752.4*x6+692*x7+974.6*x8+682.2*x9+675.2*x10+734.24*x11+630.24*x12+1297.2*x13+1026*x14+816.96*x15+24.72*x16*y1+41.3*x17*y2+44.66*x18*y3+33.6*x19*y4+54.24*x20*y5+64.82*x21*y6+46.9*x22+37.65*x23+4519.18*w1+4717.12*w2+5420.55*w3+20273.97*w4+18315.07*w5+7000;
15*x1+10*x4+10*x7+8*x10+12*x13<=40;
15*x2+10*x5+10*x8+8*x11+12*x14<=45;
15*x3+10*x6+10*x9+8*x12+12*x15<=42;
15*x1+10*x4+10*x7+8*x10+12*x13+15*x2+10*x5+10*x8+8*x11+12*x14+15*x3+10*x6+10*x9+8*x12+12*x15<=40*w1*45*w2+42*w3;
x16*y1+x18*y3+x20*y5<=65;
x17*y2+x19*y4+x21*y6<=60;
x16*y1+x18*y3+x20*y5+x17*y2+x19*y4+x21*y6<=65*w4+60*w5;
x16+x17+x18+x19+x20+x21=52.5;
x22+x23=44.67;
x1+x2+x3=1;
x4+x5+x6=1;
x7+x8+x9=1;
x10+x11+x12=1;
x13+x14+x15=1;
y1+y2=1;
y3+y4=1;
y5+y6=1;
w1+w2+w3<=3;
w4+w5<=2;
@bin(x1);
@bin(x2);
@bin(x3);
@bin(x4);
@bin(x5);
@bin(x6);
@bin(x7);
@bin(x8);
@bin(x9);
@bin(x10);
@bin(x11);
@bin(x12);
@bin(x13);
@bin(x14);
@bin(x15);
@bin(y1);
@bin(y2);
@bin(y3);
@bin(y4);
@bin(y5);
@bin(y6);
@bin(w1);
@bin(w2);
@bin(w3);
@bin(w4);
@bin(w5);
@gin(x16);
@gin(x17);
@gin(x18);
@gin(x19);
@gin(x20);
@gin(x21);
@gin(x22);
@gin(x23);
end
min=629.1*x1+781.5*x2+699*x3+737*x4+832.7*x5+752.4*x6+692*x7+974.6*x8+682.2*x9+675.2*x10+734.24*x11+630.24*x12+1297.2*x13+1026*x14+816.96*x15+24.72*x16*y1+41.3*x17*y2+44.66*x18*y3+33.6*x19*y4+54.24*x20*y5+64.82*x21*y6+46.9*x22+37.65*x23+4519.18*w1+4717.12*w2+5420.55*w3+20273.97*w4+18315.07*w5+7000;
15*x1+10*x4+10*x7+8*x10+12*x13<=40;
15*x2+10*x5+10*x8+8*x11+12*x14<=45;
15*x3+10*x6+10*x9+8*x12+12*x15<=42;
15*x1+10*x4+10*x7+8*x10+12*x13+15*x2+10*x5+10*x8+8*x11+12*x14+15*x3+10*x6+10*x9+8*x12+12*x15<=40*w1*45*w2+42*w3;
x16*y1+x18*y3+x20*y5<=65;
x17*y2+x19*y4+x21*y6<=60;
x16*y1+x18*y3+x20*y5+x17*y2+x19*y4+x21*y6<=65*w4+60*w5;
x16+x17+x18+x19+x20+x21=52.5;
x22+x23=44.67;
x1+x2+x3=1;
x4+x5+x6=1;
x7+x8+x9=1;
x10+x11+x12=1;
x13+x14+x15=1;
y1+y2=1;
y3+y4=1;
y5+y6=1;
w1+w2+w3<=3;
w4+w5<=2;
@bin(x1);
@bin(x2);
@bin(x3);
@bin(x4);
@bin(x5);
@bin(x6);
@bin(x7);
@bin(x8);
@bin(x9);
@bin(x10);
@bin(x11);
@bin(x12);
@bin(x13);
@bin(x14);
@bin(x15);
@bin(y1);
@bin(y2);
@bin(y3);
@bin(y4);
@bin(y5);
@bin(y6);
@bin(w1);
@bin(w2);
@bin(w3);
@bin(w4);
@bin(w5);
@gin(x16);
@gin(x17);
@gin(x18);
@gin(x19);
@gin(x20);
@gin(x21);
@gin(x22);
@gin(x23);
end
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-02-18
展开全部
语法输入错误。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询