首页 > 中学考试杂题 > 题目详情
lingo错误1017MODELSETS:POLICE/P1..P4/;ROAD/R1,R2,R3,R4/;LINKS(
题目内容:
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
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
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
本题链接: