帮忙看下一个Lingo程序,自己编的运行不了了具体如下:MODEL:SETS:JOB/1..5/;WORKER/1..7/;REVISOR/1..7/;LINKS(WORKER,REVISOR,JOBA,JOBB,TIME,ZZ):C,D,X,Y,T,Z;ENDSETSDATA:C=2 15 13 1 810 4 14 15 79 14 16 13 87 8 11 9 48 4 15 8 612 4 6 8
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/07 21:09:26
帮忙看下一个Lingo程序,自己编的运行不了了具体如下:MODEL:SETS:JOB/1..5/;WORKER/1..7/;REVISOR/1..7/;LINKS(WORKER,REVISOR,JOBA,JOBB,TIME,ZZ):C,D,X,Y,T,Z;ENDSETSDATA:C=2 15 13 1 810 4 14 15 79 14 16 13 87 8 11 9 48 4 15 8 612 4 6 8
帮忙看下一个Lingo程序,自己编的运行不了了
具体如下:
MODEL:
SETS:
JOB/1..5/;
WORKER/1..7/;
REVISOR/1..7/;
LINKS(WORKER,REVISOR,JOBA,JOBB,TIME,ZZ):C,D,X,Y,T,Z;
ENDSETS
DATA:
C=2 15 13 1 8
10 4 14 15 7
9 14 16 13 8
7 8 11 9 4
8 4 15 8 6
12 4 6 8 13
5 16 8 5 10;
D=1 13 10 1 8
10 4 8 10 5
8 6 10 9 6
6 7 11 8 4
6 3 15 8 5
11 4 6 7 10
4 12 6 3 2;
ENDDATA
MIN=(@MAX(TIME:@SUM(JOBA:C(I,J)*X(I,J))+@SUM(JOBB:D(K,J)*Y(K,J))+@SUM(ZZ:C(K,L)*X(K,L)-C(I,J)*X(I,J))));
@FOR(ZZ:@SUM(C(K,L)*X(K,L)-C(I,J)*X(I,J))>=0);
@FOR(LINKS:@BIN(X));
@FOR(LINKS:@BIN(Y));
@FOR(JOBA(J):@SUM(WORKER(I):X(I,J))=1);
@FOR(JOBB(J):@SUM(REVISOR(I):Y(I,J))=1);
@FOR(WORKER(I):@SUM(JOBA(J):X(I,J))
帮忙看下一个Lingo程序,自己编的运行不了了具体如下:MODEL:SETS:JOB/1..5/;WORKER/1..7/;REVISOR/1..7/;LINKS(WORKER,REVISOR,JOBA,JOBB,TIME,ZZ):C,D,X,Y,T,Z;ENDSETSDATA:C=2 15 13 1 810 4 14 15 79 14 16 13 87 8 11 9 48 4 15 8 612 4 6 8
MODEL:
SETS:
JOB/1..5/:增加 joba jobB的定义 其他的类似 job只是1到5的集合 并不是joba jobb;
WORKER/1..7/;
REVISOR/1..7/;
LINKS(WORKER,REVISOR,JOBA,JOBB,TIME,ZZ):C,D,X,Y,T,Z;
ENDSETS
DATA:
C=2 15 13 1 8
10 4 14 15 7
9 14 16 13 8
7 8 11 9 4
8 4 15 8 6
12 4 6 8 13
5 16 8 5 10;
D=1 13 10 1 8
10 4 8 10 5
8 6 10 9 6
6 7 11 8 4
6 3 15 8 5
11 4 6 7 10
4 12 6 3 2;
ENDDATA
MIN=(@MAX(TIME:@SUM(JOBA:C(I,J)*X(I,J))+@SUM(JOBB:D(K,J)*Y(K,J))+@SUM(ZZ:C(K,L)*X(K,L)-C(I,J)*X(I,J))));
@FOR(ZZ:@SUM(C(K,L)*X(K,L)-C(I,J)*X(I,J))>=0);
@FOR(LINKS:@BIN(X));
@FOR(LINKS:@BIN(Y));
@FOR(JOBA(J):@SUM(WORKER(I):X(I,J))=1);
@FOR(JOBB(J):@SUM(REVISOR(I):Y(I,J))=1);
@FOR(WORKER(I):@SUM(JOBA(J):X(I,J))