lingo集合下标越界
请问哪里出了问题?有什么解决方法?sets:xf/1..4/:x,down,xdown,zf,nf;jg/1..4/:y,up,yup;link1(xf,jg)/11,2...
请问哪里出了问题?有什么解决方法?
sets:
xf/1..4/:x,down,xdown,zf,nf;
jg/1..4/:y,up,yup;
link1(xf,jg)/1 1,2 2,3 3,4 4/:e;
link2(xf,jg)/3 4,4 3/:eab;
endsets
data:
e=0.4 2.7 1.1 0.4;
eab=0.1 0.4;
x=482 32 21 7 ;
y= 297 720 1050 815 ;
zf=0.04,0.8,0.35,0.25;
nf=0.09,0.02,0.3,0.4;
enddata
max=@sum(link1(i,j):xdown(i)*yup(j));
@for(xf(i):down(i)=@sum(jg(j):e(i,j)*up(j)-eab(i,j)*up(j)));
@for(xf:xdown=x*(1-down));
@for(jg:yup=y*(1+up));
@sum(xf:xdown*zf)<=60;
@sum(xf:xdown*nf)<=70; 展开
sets:
xf/1..4/:x,down,xdown,zf,nf;
jg/1..4/:y,up,yup;
link1(xf,jg)/1 1,2 2,3 3,4 4/:e;
link2(xf,jg)/3 4,4 3/:eab;
endsets
data:
e=0.4 2.7 1.1 0.4;
eab=0.1 0.4;
x=482 32 21 7 ;
y= 297 720 1050 815 ;
zf=0.04,0.8,0.35,0.25;
nf=0.09,0.02,0.3,0.4;
enddata
max=@sum(link1(i,j):xdown(i)*yup(j));
@for(xf(i):down(i)=@sum(jg(j):e(i,j)*up(j)-eab(i,j)*up(j)));
@for(xf:xdown=x*(1-down));
@for(jg:yup=y*(1+up));
@sum(xf:xdown*zf)<=60;
@sum(xf:xdown*nf)<=70; 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询