lingo中@for函数报错,求大神指点错误的原因~
正在学习lingo软件,下面的模型是按书上的输入软件的,求解过程中提示错误在@for函数那一行,求大神指点错误的原因,谢谢了~MODEL:SETS:WH/W1..W6/:...
正在学习lingo软件,下面的模型是按书上的输入软件的,求解过程中提示错误在@for函数那一行,求大神指点错误的原因,谢谢了~
MODEL:
SETS:
WH/W1..W6/:AI; VD/V1..V8/:DJ;
LINKS(WH,VD):C,X;
ENDSETS
DATA:
AI=60,55,51,43,41,52;
DJ=35,37,22,32,41,32,43,38;
C=6,2,6,7,4,2,5,9
4,9,5,3,8,5,2,8
5,2,1,9,7,4,3,3
7,6,7,3,9,2,7,1
2,3,9,5,7,2,6,5
5,5,2,2,8,1,4,3;
ENDDATA
MIN=@SUM(LINKS(I,J):C(I,J)*X(I,J));
@FOR=(WH(I):@SUM(VD(J):X(I,J))<=AI(I));
@FOR=(VD(J):@SUM(WH(I):X(I,J))=DJ(J));
END 展开
MODEL:
SETS:
WH/W1..W6/:AI; VD/V1..V8/:DJ;
LINKS(WH,VD):C,X;
ENDSETS
DATA:
AI=60,55,51,43,41,52;
DJ=35,37,22,32,41,32,43,38;
C=6,2,6,7,4,2,5,9
4,9,5,3,8,5,2,8
5,2,1,9,7,4,3,3
7,6,7,3,9,2,7,1
2,3,9,5,7,2,6,5
5,5,2,2,8,1,4,3;
ENDDATA
MIN=@SUM(LINKS(I,J):C(I,J)*X(I,J));
@FOR=(WH(I):@SUM(VD(J):X(I,J))<=AI(I));
@FOR=(VD(J):@SUM(WH(I):X(I,J))=DJ(J));
END 展开
展开全部
@FOR(WH(I):@SUM(VD(J):X(I,J))<=AI(I));
@FOR(VD(J):@SUM(WH(I):X(I,J))=DJ(J));
for后面不用等号
@FOR(VD(J):@SUM(WH(I):X(I,J))=DJ(J));
for后面不用等号
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询