lingo软件编程,lingo error code 29,帮我看看那里出错了 总是在length1那里提醒错误

model:
sets:
outlet/I1 I2 I3 I4 I5 I6 I7 I8 I9 I10 I11/:supply;
center/J1 J2 J3 J4 J5 J6 J7 J8 J9 J10 J11/:A,B,S,V,F,Y;
plant/K/:C;
links1/outlet,center/:length1,cost1,volume1;
links2/center,plant/:length2,cost2,volume2;
P:x;
endsets

data:
length1=48 427 591 174 125 150 495 541 232 308 145
427 65 151 586 563 291 268 191 256 168 384
591 151 66 726 703 431 480 222 395 309 524
174 586 726 56 63 309 663 700 354 455 217
125 563 703 63 73 260 582 628 331 433 194
150 291 431 309 260 65 337 406 157 162 158
495 368 480 663 582 337 90 378 408 253 463
541 191 222 700 628 406 378 89 428 276 498
232 256 395 354 332 157 408 428 67 159 152
308 168 309 455 433 162 253 276 159 68 254
145 384 524 217 194 158 463 498 152 254 49 ;
length2=297
139
279
457
434
163
307
311
130
59
253;

第1个回答  2013-11-02
model:
sets:
outlet/I1 I2 I3 I4 I5 I6 I7 I8 I9 I10 I11/:supply;
center/J1 J2 J3 J4 J5 J6 J7 J8 J9 J10 J11/:A,B,S,V,F,Y;
plant/K/:C;
links1(outlet,center):length1,cost1,volume1;
links2(center,plant):length2,cost2,volume2;
P:x;
endsets

data:
length1=48 427 591 174 125 150 495 541 232 308 145
427 65 151 586 563 291 268 191 256 168 384
591 151 66 726 703 431 480 222 395 309 524
174 586 726 56 63 309 663 700 354 455 217
125 563 703 63 73 260 582 628 331 433 194
150 291 431 309 260 65 337 406 157 162 158
495 368 480 663 582 337 90 378 408 253 463
541 191 222 700 628 406 378 89 428 276 498
232 256 395 354 332 157 408 428 67 159 152
308 168 309 455 433 162 253 276 159 68 254
145 384 524 217 194 158 463 498 152 254 49 ;
length2=297
139
279
457
434
163
307
311
130
59
253;
enddata
改了集定义:
links1(outlet,center):length1,cost1,volume1;
links2(center,plant):length2,cost2,volume2;
第2个回答  2013-11-02
集定义很多错误 一个元素的集根本不用定义 直接用就行了 links后面是括号自己改好了本回答被提问者采纳
相似回答