帮我用lingo编编程吧设X1,X2,X3……X46为46档长度肠衣分别的数,N成品捆数.则 Max Z=N (成品捆数越多越好)89.5>=3X1+3.5X2+……+6.5X8>=88.589.5>=7X9+7.5X10+……+13.5X22>=88.589.5>=14X23+14.5X24+……+25.5X46=>88
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 17:02:40
帮我用lingo编编程吧设X1,X2,X3……X46为46档长度肠衣分别的数,N成品捆数.则 Max Z=N (成品捆数越多越好)89.5>=3X1+3.5X2+……+6.5X8>=88.589.5>=7X9+7.5X10+……+13.5X22>=88.589.5>=14X23+14.5X24+……+25.5X46=>88
帮我用lingo编编程吧
设X1,X2,X3……X46为46档长度肠衣分别的数,N成品捆数.
则 Max Z=N (成品捆数越多越好)
89.5>=3X1+3.5X2+……+6.5X8>=88.5
89.5>=7X9+7.5X10+……+13.5X22>=88.5
89.5>=14X23+14.5X24+……+25.5X46=>88.5
X1+X2+……+X8=19N
X9+X10+……+X22=7N
X23+X24+……+X46=4N
帮我把这个编编程吧!
帮我用lingo编编程吧设X1,X2,X3……X46为46档长度肠衣分别的数,N成品捆数.则 Max Z=N (成品捆数越多越好)89.5>=3X1+3.5X2+……+6.5X8>=88.589.5>=7X9+7.5X10+……+13.5X22>=88.589.5>=14X23+14.5X24+……+25.5X46=>88
model:
sets:
set1/1..46/:X;
endsets
ub=89.5;
lb=88.5;
max = N;
@sum(set1(i)|i#ge#1 #and# i#le#8:X(i))=19*N;
@sum(set1(i)|i#ge#9 #and# i#le#22:X(i))=7*N;
@sum(set1(i)|i#ge#23 #and# i#le#46:X(i))=4*N;
@sum(set1(i)|i#ge#1 #and# i#le#8:(3+0.5*(i-1))*X(i))=lb;
@sum(set1(i)|i#ge#9 #and# i#le#22:(7+0.5*(i-9))*X(i))=lb;
@sum(set1(i)|i#ge#23 #and# i#le#46:(14+0.5*(i-23))*X(i))=lb;
end
如果需要整数要求,则需要加上@for(set1(i):@gin(X));