lingo错误1017MODELSETS:POLICE/P1..P4/;ROAD/R1,R2,R3,R4/;LINKS(

lizila11012022-10-04 11:39:541条回答

lingo错误1017
MODEL
SETS:
POLICE/P1..P4/;
ROAD/R1,R2,R3,R4/;
LINKS(POLICE,ROAD):TIME,X;
ENDSETS
DATA:
TIME=12,12,23,12,
34,12,43,32,
23,43,54,43,
54,32,12,12;
ENDDATA
MIN=@SUM(LINKS:TIME*X);
@FOR(POLICE(I):@SUM(ROAD(J):X(I,J))=1);
@FOR(ROAD(J):@SUM(POLICE(I):X(I,J))=1);
@FOR(LINKS:@BIN(X));
END

已提交,审核后显示!提交回复

共1条回复
思绪片片 共回答了20个问题 | 采纳率85%
model后面要加:
MODEL:
SETS:
POLICE/P1..P4/;
ROAD/R1,R2,R3,R4/;
LINKS(POLICE,ROAD):TIME,X;
ENDSETS
DATA:
TIME=12,12,23,12,
34,12,43,32,
23,43,54,43,
54,32,12,12;
ENDDATA
MIN=@SUM(LINKS:TIME*X);
@FOR(POLICE(I):@SUM(ROAD(J):X(I,J))=1);
@FOR(ROAD(J):@SUM(POLICE(I):X(I,J))=1);
@FOR(LINKS:@BIN(X));
END
1年前

相关推荐