急求运行LINGO出现unexpected jacobian overflow错误,代码如下,希望大牛帮忙指出哪错了.MODEL:SETS:WH/W1..W13/:Q,C;NE/N1..N13/:N;LINKS(WH,NE):W,B;ENDSETSDATA:C=2,1,4,4,4,5,3,2,1,4,3,10,8;N=48757.8,29912.3,76360.4,68715.1,61605.9,1724
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 00:07:09
急求运行LINGO出现unexpected jacobian overflow错误,代码如下,希望大牛帮忙指出哪错了.MODEL:SETS:WH/W1..W13/:Q,C;NE/N1..N13/:N;LINKS(WH,NE):W,B;ENDSETSDATA:C=2,1,4,4,4,5,3,2,1,4,3,10,8;N=48757.8,29912.3,76360.4,68715.1,61605.9,1724
急求运行LINGO出现unexpected jacobian overflow错误,代码如下,希望大牛帮忙指出哪错了.
MODEL:
SETS:
WH/W1..W13/:Q,C;
NE/N1..N13/:N;
LINKS(WH,NE):W,B;
ENDSETS
DATA:
C=2,1,4,4,4,5,3,2,1,4,3,10,8;
N=48757.8,29912.3,76360.4,68715.1,61605.9,17241.4,23843.5,29453.0,61605.9,28607.7,20805.2,137071.2,90752.0;
B=1,1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,0,0,1,1,1,1,1
1,1,1,1,1,1,1,1,1,0,1,1,1
1,1,1,1,1,1,1,1,1,0,1,1,1
1,1,1,0,1,1,1,1,1,1,1,1,1
1,1,1,0,1,1,1,1,0,1,1,1,1
1,1,1,1,1,1,1,0,1,0,1,1,1
1,1,1,1,0,0,1,1,0,1,0,0,1
1,1,1,1,1,1,1,1,1,0,1,1,1
1,1,1,1,1,1,1,1,1,0,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1,1;
ENDDATA
MIN=@SUM(WH:C*Q);
Q1+Q2+Q3+Q4+Q5+Q6+Q7+Q8+Q9+Q10+Q11+Q12+Q13>=694731.99;
@FOR(WH(J):Q(I)+@SUM(LINKS(I,J):W(I,J))>=N(J));
@FOR(WH(I):LINKS(I,J):W(I,J)=W(I,J));
END
急求运行LINGO出现unexpected jacobian overflow错误,代码如下,希望大牛帮忙指出哪错了.MODEL:SETS:WH/W1..W13/:Q,C;NE/N1..N13/:N;LINKS(WH,NE):W,B;ENDSETSDATA:C=2,1,4,4,4,5,3,2,1,4,3,10,8;N=48757.8,29912.3,76360.4,68715.1,61605.9,1724
大概是这样 具体还要你自己根据具体问题看看是不是符合
MODEL:
SETS:
WH/W1..W13/:Q,C;
NE/N1..N13/:N;
LINKS(WH,NE):W,B;
ENDSETS
DATA:
C=2,1,4,4,4,5,3,2,1,4,3,10,8;
N=48757.8,29912.3,76360.4,68715.1,61605.9,17241.4,23843.5,29453.0,61605.9,28607.7,20805.2,137071.2,90752.0;
B=1,1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,0,0,1,1,1,1,1
1,1,1,1,1,1,1,1,1,0,1,1,1
1,1,1,1,1,1,1,1,1,0,1,1,1
1,1,1,0,1,1,1,1,1,1,1,1,1
1,1,1,0,1,1,1,1,0,1,1,1,1
1,1,1,1,1,1,1,0,1,0,1,1,1
1,1,1,1,0,0,1,1,0,1,0,0,1
1,1,1,1,1,1,1,1,1,0,1,1,1
1,1,1,1,1,1,1,1,1,0,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1,1;
ENDDATA
MIN=@SUM(WH:C*Q);
@SUM(WH:Q)>=694731.99;
@FOR(WH(I):Q(I)+@SUM(NE(J):W(I,J))>=N(I));
@FOR(LINKS(I,J):W(I,J)=W(I,J));
END