这个lingo程序问题到底出在哪里,是不是这个数学问题无法用LINGO求解呢?model:sets:p/1..20/:x,y,t,m,a,b,c;!定义集及其属性;endsetsinit:x=400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400;!初
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/04 02:04:17
这个lingo程序问题到底出在哪里,是不是这个数学问题无法用LINGO求解呢?model:sets:p/1..20/:x,y,t,m,a,b,c;!定义集及其属性;endsetsinit:x=400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400;!初
这个lingo程序问题到底出在哪里,是不是这个数学问题无法用LINGO求解呢?
model:
sets:
p/1..20/:x,y,t,m,a,b,c;!定义集及其属性;
endsets
init:
x=400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400;!初始化x的值;
endinit
数据定义;
data:
m=5.0,4.8,4.6,4.4,4.2,4.0,3.8,3.6,3.4,3.2,3.0,2.8,2.6,2.4,2.2,2.0,1.8,1.6,1.4,1.2;
t=0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1,0.1.8,2.6,1,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.20;
enddata
目标函数;
max=@sum(p(i):20*(1-t(i))*y(i)*a(i)+(8000+((1-t(i))*y(i)-400)*18)*b(i)+(22400+((1-t(i))*y(i)-1200)*((t(i)-1)*0.0167*y(i)+35))*c(i)-y(i)*m(i));
需求约束;
@for(p(i):x(i)=y(i)*(1-t(i)));
@for(p(i):@bin(a(i)));
@for(p(i):@bin(b(i)));
@for(p(i):@bin(c(i)));
@for(p(i):a(i)+b(i)+c(i)=1);
@sum(p(i):y(i)=20000);
@for(P(i):@bnd(0 y(i) 1800/(1-t(i))));
@for(p(i):y(i)*a(i)
这个lingo程序问题到底出在哪里,是不是这个数学问题无法用LINGO求解呢?model:sets:p/1..20/:x,y,t,m,a,b,c;!定义集及其属性;endsetsinit:x=400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400;!初
说清楚错误提示