<>大家好:</P>
<>小妹遇到一个关于lingo软件方面的问题,在求解过程中设定了整数,为什么会出现一下的提示:unexpected fall through Newton loop:
contact lingo systems for patch availlability,究竟是我的程序的问题,还是软件的问题呢?</P>
<>以下是我编的程序,大家帮忙看看有什么问题好吗??</P>
<P>model:
sets:
chanwei/1..10/:nyshi,nkshi,n,pinwei,s;
xiedian/1..5/:xuqiu;
link(chanwei,xiedian):distant,checi;
endsets
data:
distant=5.26,5.19,4.21,4.00,2.95,2.74,2.46,1.90,0.64,1.27,
1.90,0.99,1.90,1.13,1.27,2.25,1.48,2.04,3.09,3.51,
4.42,3.86,3.72,3.16,2.25,2.81,0.78,1.62,1.27,0.50,
0.64,1.76,1.27,1.83,2.74,2.60,4.21,3.72,5.05,6.10,
5.89,5.61,5.61,4.56,3.51,3.65,2.46,2.46,1.06,0.57;
xuqiu=12000,13000,13000,19000,13000;
nyshi=12500,11000,13500,10500,11500,13500,10500,11500,13500,12500;
nkshi=9500,10500,10000,10500,11000,12500,10500,13000,13500,12500;
pinwei=0.3,0.28,0.29,0.32,0.31,0.33,0.32,0.31,0.33,0.31;
enddata
min=@sum(link:154*checi*distant);
!!铲车限制;
@sum(chanwei(i):n(i))<=7;
!!!0-1变量的限制;
@for(chanwei(i)bin(n(i)));
@for(link(i,j)gin(checi(i,J)));
!!生产能力的限制;
@for(chanwei(i)sum(xiedian(j)|j#ge#1#and#j#le#3:154*checi(i,j))<=n(i)*nkshi(i));
@for(chanwei(i):@sum(xiedian(j)|j#ge#4#and#j#le#5:154*checi(i,j))<=n(i)*nyshi(i));
!!!需求的限制;
@for(xiedian(j):@sum(link(i,j):154*checi(i,j))>=xuqiu(j));
!!!!!品位的限制;
@for(xiedian(j):@sum(chanwei(i):checi(i,j)*pinwei(i))<=0.305*@sum(chanwei(i):checi(i,j)));
@for(xiedian(j):@sum(chanwei(i):checi(i,j)*pinwei(i))>=0.285*@sum(chanwei(i):checi(i,j)));
end
</P>
<P>我的邮箱是:<a href="mailtlittlegile-pq@163.com" target="_blank" >littlegile-pq@163.com</A> 先谢谢拉</P> |