求助!这是我第一次接触LINGO,因为写论文要建模,我输入了一下这段,可是跳错,求大侠帮忙看看 哪里出错MODEL:SETS:S/S1..S4/: SI;D/D1..D4/: DJ, R, Y;LINKS (S,D): C,A,U,X;ENDSETSDATA:SI=10, 50, 200, 100;DJ=10, 100, 200, 5
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 01:57:56
求助!这是我第一次接触LINGO,因为写论文要建模,我输入了一下这段,可是跳错,求大侠帮忙看看 哪里出错MODEL:SETS:S/S1..S4/: SI;D/D1..D4/: DJ, R, Y;LINKS (S,D): C,A,U,X;ENDSETSDATA:SI=10, 50, 200, 100;DJ=10, 100, 200, 5
求助!这是我第一次接触LINGO,因为写论文要建模,我输入了一下这段,可是跳错,求大侠帮忙看看 哪里出错
MODEL:
SETS:
S/S1..S4/: SI;
D/D1..D4/: DJ, R, Y;
LINKS (S,D): C,A,U,X;
ENDSETS
DATA:
SI=10, 50, 200, 100;
DJ=10, 100, 200, 50;
C=0,60,50,0
40,0,30,200
0,100,120,80
0,240,210,70;
R=200,160,180,220;
A=0,1,1,0
1,0,1,1
0,1,1,1
0,1,1,1;
U=0,10,10,0
10,0,50,50
0,100,200,50
0,100,100,50;
ENDDATA
还有这一段,问题好像就出在这一段,求帮忙啊!谢谢!
MIN=@SUM(LINKS(I,J): C(I,J)*X(I,J) +@SUM(D(J): R(J)*Y(J));
@FOR(S(I):
@SUM(D(J):X(I,J)*A(I,J))
求助!这是我第一次接触LINGO,因为写论文要建模,我输入了一下这段,可是跳错,求大侠帮忙看看 哪里出错MODEL:SETS:S/S1..S4/: SI;D/D1..D4/: DJ, R, Y;LINKS (S,D): C,A,U,X;ENDSETSDATA:SI=10, 50, 200, 100;DJ=10, 100, 200, 5
MODEL:
SETS:
S/S1..S4/: SI;
D/D1..D4/: DJ, R, Y;
LINKS (S,D): C,A,U,X;
ENDSETS
DATA:
SI=10, 50, 200, 100;
DJ=10, 100, 200, 50;
C=0,60,50,0
40,0,30,200
0,100,120,80
0,240,210,70;
R=200,160,180,220;
A=0,1,1,0
1,0,1,1
0,1,1,1
0,1,1,1;
U=0,10,10,0
10,0,50,50
0,100,200,50
0,100,100,50;
ENDDATA
MIN=@SUM(LINKS(I,J): C(I,J)*X(I,J)) +@SUM(D(J): R(J)*Y(J));!前一个sum漏了一个右括号;
@FOR(S(I):
@SUM(D(J):X(I,J)*A(I,J))