Lingo9.0 错误1017什么意思?
下面是我的代码,不知道哪里错了总是错误1017,大概有60个变量,约束条件比较多,我Lingo的版本是已经破解了的。我不是很会用Lingo,代码是参考一些书上的代码写的,...
下面是我的代码,不知道哪里错了总是错误1017,大概有60个变量,约束条件比较多,我Lingo的版本是已经破解了的。我不是很会用Lingo,代码是参考一些书上的代码写的,要了解Lingo的语法在那里可以学?
model:
Min=5.26*x11+5.19*x21+4.21*x31+4*x41+2.95*x51+2.74*x61+2.46*x71+1.9*x81+0.64*x91+1.27*x01+1.9*x12+0.99*x22+1.9*x32+1.13*x421.27*x52+2.25*x62+1.48*x72+2.04*x82+3.09*x92+3.51*x02+4.42*x13+3.86*x23+3.72*x33+3.16*x43+2.25*x53+2.81*x63+0.78*x73+1.62*x83+1.27*x93+0.5*x03+0.64*y14+1.76*y24+1.27*y34+1.83*y44+2.74*y54+2.60*y64+4.21*y74+3.72*y84+5.05*y94+6.10*y04+5.89*y15+5.61*y25+5.61*y35+4.56*y45+3.51*y55+3.65*y65+2.46*y75+2.46*y85+1.06*y95+0.57*y05;
k1+k2+k3+k4+k5+k6+k7+k8+k9+k0<=7;
0.3*x11+0.28*x21+0.29*x31+0.32*x41+0.31*x51+0.33*x61+0.32*x71+0.31*x81+0.33*x91+0.31*x01<=0.305*1.2;
0.3*x12+0.28*x22+0.29*x32+0.32*x42+0.31*x52+0.33*x62+0.32*x72+0.31*x82+0.33*x92+0.31*x02<=0.305*1.3;
0.3*x13+0.28*x23+0.29*x33+0.32*x43+0.31*x53+0.33*x63+0.32*x73+0.31*x83+0.33*x93+0.31*x03<=0.305*1.3;
0.3*x11+0.28*x21+0.29*x31+0.32*x41+0.31*x51+0.33*x61+0.32*x71+0.31*x81+0.33*x91+0.31*x01>=0.285*1.2;
0.3*x12+0.28*x22+0.29*x32+0.32*x42+0.31*x52+0.33*x62+0.32*x72+0.31*x82+0.33*x92+0.31*x02>=0.285*1.3;
0.3*x13+0.28*x23+0.29*x33+0.32*x43+0.31*x53+0.33*x63+0.32*x73+0.31*x83+0.33*x93+0.31*x03>=0.285*1.3;
x11+x12+x13<=0.95;
x21+x22+x23<=1.05;
x31+x32+x33<=1;
x41+x42+x43<=1.05;
x51+x52+x53<=1.10;
x61+x62+x63<=1.25;
x71+x72+x73<=1.05;
x81+x82+x83<=1.30;
x91+x92+x93<=1.35;
x01+x02+x03<=1.25;
y14+y15<=1.25;
y24+y25<=1.10;
y34+y35<=1.35;
y44+y45<=1.05;
y54+y55<=1.15;
y64+y65<=1.35;
y74+y75<=1.05;
y84+y85<=1.15;
y94+y95<=1.35;
y04+y05<=1.25;
x11+x21+x31+x41+x51+x61+x71+x81+x91+x01>=1.2;
x12+x22+x32+x42+x52+x62+x72+x82+x92+x02>=1.3;
x13+x23+x33+x43+x53+x63+x73+x83+x93+x03>=1.3;
y14+y24+y34+y44+y54+y64+y74+y84+y94+y04>=1.9;
y15+y25+y35+y45+y55+y65+y75+y85+y95+y05>=1.3;
x11+x12+x13+y14+y15<=5*k1;
x21+x22+x23+y24+y25<=5*k2;
x31+x32+x33+y34+y35<=5*k3;
x41+x42+x43+y44+y45<=5*k4;
x51+x52+x53+y54+y55<=5*k5;
x61+x62+x63+y64+y65<=5*k6;
x71+x72+x73+y74+y75<=5*k7;
x81+x82+x83+y84+y85<=5*k8;
x91+x92+x93+y94+y95<=5*k9;
x01+x02+x03+y04+y05<=5*k0;
@int(k1); @int(k2); @int(k3); @int(k4); @int(k5); @int(k6); @int(k7);
end 展开
model:
Min=5.26*x11+5.19*x21+4.21*x31+4*x41+2.95*x51+2.74*x61+2.46*x71+1.9*x81+0.64*x91+1.27*x01+1.9*x12+0.99*x22+1.9*x32+1.13*x421.27*x52+2.25*x62+1.48*x72+2.04*x82+3.09*x92+3.51*x02+4.42*x13+3.86*x23+3.72*x33+3.16*x43+2.25*x53+2.81*x63+0.78*x73+1.62*x83+1.27*x93+0.5*x03+0.64*y14+1.76*y24+1.27*y34+1.83*y44+2.74*y54+2.60*y64+4.21*y74+3.72*y84+5.05*y94+6.10*y04+5.89*y15+5.61*y25+5.61*y35+4.56*y45+3.51*y55+3.65*y65+2.46*y75+2.46*y85+1.06*y95+0.57*y05;
k1+k2+k3+k4+k5+k6+k7+k8+k9+k0<=7;
0.3*x11+0.28*x21+0.29*x31+0.32*x41+0.31*x51+0.33*x61+0.32*x71+0.31*x81+0.33*x91+0.31*x01<=0.305*1.2;
0.3*x12+0.28*x22+0.29*x32+0.32*x42+0.31*x52+0.33*x62+0.32*x72+0.31*x82+0.33*x92+0.31*x02<=0.305*1.3;
0.3*x13+0.28*x23+0.29*x33+0.32*x43+0.31*x53+0.33*x63+0.32*x73+0.31*x83+0.33*x93+0.31*x03<=0.305*1.3;
0.3*x11+0.28*x21+0.29*x31+0.32*x41+0.31*x51+0.33*x61+0.32*x71+0.31*x81+0.33*x91+0.31*x01>=0.285*1.2;
0.3*x12+0.28*x22+0.29*x32+0.32*x42+0.31*x52+0.33*x62+0.32*x72+0.31*x82+0.33*x92+0.31*x02>=0.285*1.3;
0.3*x13+0.28*x23+0.29*x33+0.32*x43+0.31*x53+0.33*x63+0.32*x73+0.31*x83+0.33*x93+0.31*x03>=0.285*1.3;
x11+x12+x13<=0.95;
x21+x22+x23<=1.05;
x31+x32+x33<=1;
x41+x42+x43<=1.05;
x51+x52+x53<=1.10;
x61+x62+x63<=1.25;
x71+x72+x73<=1.05;
x81+x82+x83<=1.30;
x91+x92+x93<=1.35;
x01+x02+x03<=1.25;
y14+y15<=1.25;
y24+y25<=1.10;
y34+y35<=1.35;
y44+y45<=1.05;
y54+y55<=1.15;
y64+y65<=1.35;
y74+y75<=1.05;
y84+y85<=1.15;
y94+y95<=1.35;
y04+y05<=1.25;
x11+x21+x31+x41+x51+x61+x71+x81+x91+x01>=1.2;
x12+x22+x32+x42+x52+x62+x72+x82+x92+x02>=1.3;
x13+x23+x33+x43+x53+x63+x73+x83+x93+x03>=1.3;
y14+y24+y34+y44+y54+y64+y74+y84+y94+y04>=1.9;
y15+y25+y35+y45+y55+y65+y75+y85+y95+y05>=1.3;
x11+x12+x13+y14+y15<=5*k1;
x21+x22+x23+y24+y25<=5*k2;
x31+x32+x33+y34+y35<=5*k3;
x41+x42+x43+y44+y45<=5*k4;
x51+x52+x53+y54+y55<=5*k5;
x61+x62+x63+y64+y65<=5*k6;
x71+x72+x73+y74+y75<=5*k7;
x81+x82+x83+y84+y85<=5*k8;
x91+x92+x93+y94+y95<=5*k9;
x01+x02+x03+y04+y05<=5*k0;
@int(k1); @int(k2); @int(k3); @int(k4); @int(k5); @int(k6); @int(k7);
end 展开
2个回答
展开全部
非也,我曾经做过的01规划决策变量最大规模达到10万,lingo轻松搞定.对于你错误的唯一解释就是你使用的是演示版的没有序列号,因此求解受到了限制
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
启帆信息
2024-11-19 广告
2024-11-19 广告
启帆信息是英伟达中国区代理商,原厂授权代理,提供全面的软件技术解决方案以及NVIDIA以太网产品、交换机等产品,欢迎前来咨询!...
点击进入详情页
本回答由启帆信息提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询