lingo 小程序,出现错误,model:SETS:JIZU/1..8/:H,G,P;CHULI/1..12/;T(CHULI,JIZU):B,O,Q;Di/1..8/:M;Vi/1..8/:N;XIANZHI/1..8/:E,F,X;Y;ENDSETSDATA:Q=70 70 87 120 120 120 150 150 150 150 153 19030 30 50 58 58 73 79 81 81 81 88 89110 110 132 150 150 180

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 14:25:53
lingo小程序,出现错误,model:SETS:JIZU/1..8/:H,G,P;CHULI/1..12/;T(CHULI,JIZU):B,O,Q;Di/1..8/:M;Vi/1..8/:N;XIA

lingo 小程序,出现错误,model:SETS:JIZU/1..8/:H,G,P;CHULI/1..12/;T(CHULI,JIZU):B,O,Q;Di/1..8/:M;Vi/1..8/:N;XIANZHI/1..8/:E,F,X;Y;ENDSETSDATA:Q=70 70 87 120 120 120 150 150 150 150 153 19030 30 50 58 58 73 79 81 81 81 88 89110 110 132 150 150 180
lingo 小程序,出现错误,
model:
SETS:
JIZU/1..8/:H,G,P;
CHULI/1..12/;
T(CHULI,JIZU):B,O,Q;
Di/1..8/:M;
Vi/1..8/:N;
XIANZHI/1..8/:E,F,X;
Y;
ENDSETS
DATA:
Q=
70 70 87 120 120 120 150 150 150 150 153 190
30 30 50 58 58 73 79 81 81 81 88 89
110 110 132 150 150 180 180 200 228 240 240 280
55 60 60.5 70 80 90 99.5 100 115 115 115 116
75 80 95 95 98 110 125 125 135 145 152 155
95 95 95 105 125 125 140 150 155 170 170 180
50 60.1 65 70 85 95 102.1 105 110 120 123 125
63 70 70 90 90 110 110 117 130 140 155 160
;
B=
-505 0 124 124 168 210 252 312 330 363 489 489
-560 0 182 203 203 245 300 320 360 410 495 495
-610 0 152 152 189 233 258 308 356 356 415 500
500 150 170 170 200 255 302 302 325 380 435 800
-590 0 116 146 188 188 215 250 310 396 510 510
-607 -607 0 159 173 205 252 305 380 380 405 520
-500 120 120 180 251 260 306 306 315 335 348 548
-800 -800 153 183 233 253 283 303 303 318 400 800
;
M=120 73 180 80 125 125 81.1 90;
N=2.2 1 3.2 1.3 1.8 2 1.4 1.8;
ENDDATA
@FOR(T(I,J):@BIN(O(I,J)));
@FOR(JIZU(J):@SUM(T(I,J):O(I,J))=1);
@FOR(XIANZHI(I):E(I)=M(I)+15*N(I));
@FOR(XIANZHI(I):F(I)=M(I)-15*N(I));
@BND(F(I),P(I),E(I));
@FOR(Y:@SUM(T(I,J):Q(I,J)*(B(I,J)))>982.4);
@FOR(JIZU(I):P(I)=@SUM(T(I,J):O(I,J)*Q(I,J)));
[OBJ]MIN=@SMAX(P(I));
END
是这个程序,麻烦大家了.
附图是 列出的方程.

lingo 小程序,出现错误,model:SETS:JIZU/1..8/:H,G,P;CHULI/1..12/;T(CHULI,JIZU):B,O,Q;Di/1..8/:M;Vi/1..8/:N;XIANZHI/1..8/:E,F,X;Y;ENDSETSDATA:Q=70 70 87 120 120 120 150 150 150 150 153 19030 30 50 58 58 73 79 81 81 81 88 89110 110 132 150 150 180
model:
SETS:
JIZU/1..8/:P;
CHULI/1..12/;
T(CHULI,JIZU):B,O,Q;
Di/1..8/:M;
Vi/1..8/:N;
XIANZHI/1..8/:E,F;
ENDSETS
DATA:
Q=
70 70 87 120 120 120 150 150 150 150 153 190
30 30 50 58 58 73 79 81 81 81 88 89
110 110 132 150 150 180 180 200 228 240 240 280
55 60 60.5 70 80 90 99.5 100 115 115 115 116
75 80 95 95 98 110 125 125 135 145 152 155
95 95 95 105 125 125 140 150 155 170 170 180
50 60.1 65 70 85 95 102.1 105 110 120 123 125
63 70 70 90 90 110 110 117 130 140 155 160
;
B=
-505 0 124 124 168 210 252 312 330 363 489 489
-560 0 182 203 203 245 300 320 360 410 495 495
-610 0 152 152 189 233 258 308 356 356 415 500
500 150 170 170 200 255 302 302 325 380 435 800
-590 0 116 146 188 188 215 250 310 396 510 510
-607 -607 0 159 173 205 252 305 380 380 405 520
-500 120 120 180 251 260 306 306 315 335 348 548
-800 -800 153 183 233 253 283 303 303 318 400 800
;
M=120 73 180 80 125 125 81.1 90;
N=2.2 1 3.2 1.3 1.8 2 1.4 1.8;
ENDDATA
@FOR(T(I,J):@BIN(O(I,J)));
@FOR(JIZU(J):@SUM(T(I,J):O(I,J))=1);
@FOR(XIANZHI(I):E(I)=M(I)+15*N(I));
@FOR(XIANZHI(I):F(I)=M(I)-15*N(I));
@FOR(JIZU(J):P(J)=@SUM(jizu(I):O(I,J)*Q(I,J)));
@for(JIZU(i):p(i)>=f(i);P(i)=982.4;
[OBJ]MIN=@SMAX(P(1),P(2),P(3),P(4),P(5),P(6),P(7),P(8));
END
(982.4的那行应该是B(I,J)*O(I,J)吧?)
结果如下:
Global optimal solution found.
Objective value: 132.0000
Objective bound: 132.0000
Infeasibilities: 0.000000
Extended solver steps: 1
Total solver iterations: 1507