求帮助Lingo二维数组赋值错误代码11
MODEL:TITLE:调研顺序;SETS:A/1..6/:;B/1..6/:;C(A,B):X,D;ENDSETSDATA:D(1,2)=1.83,D(1,3)=2.0...
MODEL:TITLE:调研顺序;SETS:A/1..6/:;B/1..6/:;C(A,B):X,D;ENDSETSDATA:D(1,2)=1.83,D(1,3)=2.02,D(1,4)=1.36,D(1,5)=2.19,D(1,6)=1.66;D(2,3)=2.99,D(2,4)=3.18,D(2,5)=3.94,D(2,6)=2.90;D(3,4)=2.43D(3,5)=1.93,D(3,6)=0.50;D(4,5)=1.33,D(4,6)=1.93,D(5,6)=1.51;ENDDATAMIN=@SUM(C(I,J):D(I,J)*X(I,J));@FOR(B(J):@SUM(A(I):X(I,J))=1);@FOR(A(I):@SUM(B(J):X(I,J))=1);@SUM(C(I,J):X(I,J))<5;END显示错误代码11
展开
1个回答
展开全部
MODEL:
TITLE:调研顺序;
SETS:
A/1..6/:;
B/1..6/:;
C(A,B):X,D;
ENDSETS
DATA:
D = 0 1.83 2.02 1.36 2.19 1.66
0 0 2.99 3.18 3.94 2.90
0 0 0 2.43 1.93 0.50
0 0 0 0 1.33 1.93
0 0 0 0 0 1.51
0 0 0 0 0 0;
ENDDATA
MIN=@SUM(C(I,J):D(I,J)*X(I,J));
@FOR(B(J):@SUM(A(I):X(I,J))=1);
@FOR(A(I):@SUM(B(J):X(I,J))=1);
@SUM(C(I,J):X(I,J))<5;
END
帮你修改了空坦,斗唤桐没有语链漏法错误了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询