lingo@sum怎么总是错误
model:sets:S/S1..S4/:SI;D/D1..D4/:DJ,R,Y;LINKS(S,D):C,A,U,X;ENDSETSDA...
model:
sets:
S/S1..S4/:SI;
D/D1..D4/:DJ,R,Y;
LINKS(S,D):C,A,U,X;
ENDSETS
DATA:
SI=10,50,200,100;
DJ=10,100,200,50;
C=0,60,50,0
40,0,30,200
0,100,120,80
0,240,210,70;
R=200,160,180,220;
A=0,1,1,0
1,0,1,1
0,1,1,1
0,1,1,1;
U=0,10,10,0
10,0,50,50
0,100,200,50
0,100,100,50;
ENDDATA
MIN=@sum(LINKS(I,J):C(I,J)*X(I,J))+ @SUM(D(J):R(J)*Y(J));
@FOR(S(I):@SUM(D(J):X(I,J)*A(I,J))<= SI(I));
@FOR(D(J):@SUM(S(I):X(I,J)*A(I,J))+Y(J) = DJ(J));
@FOR(LINKS(I,J):X(I,J) <= U(I,J));
END
MIN=@sum(LINKS(I,J):C(I,J)*X(I,J))+这一行有错 展开
sets:
S/S1..S4/:SI;
D/D1..D4/:DJ,R,Y;
LINKS(S,D):C,A,U,X;
ENDSETS
DATA:
SI=10,50,200,100;
DJ=10,100,200,50;
C=0,60,50,0
40,0,30,200
0,100,120,80
0,240,210,70;
R=200,160,180,220;
A=0,1,1,0
1,0,1,1
0,1,1,1
0,1,1,1;
U=0,10,10,0
10,0,50,50
0,100,200,50
0,100,100,50;
ENDDATA
MIN=@sum(LINKS(I,J):C(I,J)*X(I,J))+ @SUM(D(J):R(J)*Y(J));
@FOR(S(I):@SUM(D(J):X(I,J)*A(I,J))<= SI(I));
@FOR(D(J):@SUM(S(I):X(I,J)*A(I,J))+Y(J) = DJ(J));
@FOR(LINKS(I,J):X(I,J) <= U(I,J));
END
MIN=@sum(LINKS(I,J):C(I,J)*X(I,J))+这一行有错 展开
展开全部
那你具体怎么写的 最好写出完整的来
追问
MIN这一行有错误 不知道在哪儿
追答
model:
sets:
S/S1..S4/:SI;
D/D1..D4/:DJ,R,Y;
LINKS(S,D):C,A,U,X;
ENDSETS
DATA:
SI=10,50,200,100;
DJ=10,100,200,50;
C=0,60,50,0
40,0,30,200
0,100,120,80
0,240,210,70;
R=200,160,180,220;
A=0,1,1,0
1,0,1,1
0,1,1,1
0,1,1,1;
U=0,10,10,0
10,0,50,50
0,100,200,50
0,100,100,50;
ENDDATA
min=@sum(LINKS(I,J):C(I,J)*X(I,J))+ @SUM(D(J):R(J)*Y(J));
@FOR(S(I):@SUM(D(J):X(I,J)*A(I,J))<= SI(I));
@FOR(D(J):@SUM(S(I):X(I,J)*A(I,J))+Y(J) = DJ(J));
@FOR(LINKS(I,J):X(I,J) <= U(I,J));
END
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询