lingo错误代码11,运行不出,MODEL:TITLE 交通流均衡;SETS:ROAD/AD,BD,CD,DG,EG,FG,JG,KH,KI/:Y;CAR/1,2,3,4,5/;LINK(CAR,ROAD):T,X;ENDSETSDATA:T=1.2,0.81,0.79,1.8,0.84,1,1.54,0.52,0.4681.64,1.62,1.5,3.5,1.65,1.9,3.0,1.1,0.93.25,3.15,3.12,7.1,3.
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 05:47:32
lingo错误代码11,运行不出,MODEL:TITLE 交通流均衡;SETS:ROAD/AD,BD,CD,DG,EG,FG,JG,KH,KI/:Y;CAR/1,2,3,4,5/;LINK(CAR,ROAD):T,X;ENDSETSDATA:T=1.2,0.81,0.79,1.8,0.84,1,1.54,0.52,0.4681.64,1.62,1.5,3.5,1.65,1.9,3.0,1.1,0.93.25,3.15,3.12,7.1,3.
lingo错误代码11,运行不出,
MODEL:
TITLE 交通流均衡;
SETS:
ROAD/AD,BD,CD,DG,EG,FG,JG,KH,KI/:Y;
CAR/1,2,3,4,5/;
LINK(CAR,ROAD):T,X;
ENDSETS
DATA:
T=1.2,0.81,0.79,1.8,0.84,1,1.54,0.52,0.468
1.64,1.62,1.5,3.5,1.65,1.9,3.0,1.1,0.9
3.25,3.15,3.12,7.1,3.28,3.6,6.1,2.3,1.68
6.1,6.4,6.1,14.2,6.45,7,12.35,4.5,3.3
12,12.3,12.4,28.3,12.6,13.5,22.18,9,6.9;
ENDDATA
[OBJ]MIN=@SUM(LINK:T*X);
[NODE_G] Y(@INDEX(AD))+Y(@INDEX(BD))+Y(@INDEX(CD))+Y(@INDEX(EG))+Y(@INDEX(FG))+Y(@INDEX(JG)) = 35.384;
[NODE_D] Y(@INDEX(AD))+Y(@INDEX(BD))+Y(@INDEX(CD))=Y(@INDEX(BG));
[NODE_K] Y(@INDEX(GK))=Y(@INDEX(KH)))+Y(@INDEX(KI));
@FOR( ROAD(I):[ROAD_LIM] @SUM(CAR(J):X(J,I)) = Y(I));
@FOR(LINK(I,J)|I#EQ#1:@BND(0,X(I,J),2) );
@FOR(LINK(I,J)|I#GT#1:@BND(0,X(I,J),1) );
END
lingo错误代码11,运行不出,MODEL:TITLE 交通流均衡;SETS:ROAD/AD,BD,CD,DG,EG,FG,JG,KH,KI/:Y;CAR/1,2,3,4,5/;LINK(CAR,ROAD):T,X;ENDSETSDATA:T=1.2,0.81,0.79,1.8,0.84,1,1.54,0.52,0.4681.64,1.62,1.5,3.5,1.65,1.9,3.0,1.1,0.93.25,3.15,3.12,7.1,3.
title后面的分号用英文的 下标直接写1 2 3
比如Y(1)+Y(2) 先改好再看别的行吧