Improper use of @FOR() function 运行lingo出现了这句话sets:r/1..4/:f,g,d,a,y;c/1..12/:b;m(r,c):x,p;endsetsdata:p=24 35 47 43 83 80 97 100 96 85 57 6551 39 70 66 74 73 90 101 101 90 365841 49 83 56 64 63 80 68 91 80 382862 41 64 49 57 50 52 60
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 15:42:13
Improper use of @FOR() function 运行lingo出现了这句话sets:r/1..4/:f,g,d,a,y;c/1..12/:b;m(r,c):x,p;endsetsdata:p=24 35 47 43 83 80 97 100 96 85 57 6551 39 70 66 74 73 90 101 101 90 365841 49 83 56 64 63 80 68 91 80 382862 41 64 49 57 50 52 60
Improper use of @FOR() function 运行lingo出现了这句话
sets:
r/1..4/:f,g,d,a,y;
c/1..12/:b;
m(r,c):x,p;
endsets
data:
p=24 35 47 43 83 80 97 100 96 85 57 65
51 39 70 66 74 73 90 101 101 90 3658
41 49 83 56 64 63 80 68 91 80 3828
62 41 64 49 57 50 52 60 84 73 8120;
b=1000 1500 500 200 1000 800 500 200 300 800 300 100;
g=4 2 3 2;
d=10000 10000 10000 10000;
a=120000 110000 115000 100000;
enddata
min=@sum(m(i,j):x(i,j)*y(i)*g(i))+@sum(r(i):a(i)*y(i))+@sum(m(i,j):p(i,j)*x(i,j));
@for(r(i):@sum(m(i,j):x(i,j))=b(j));
@for(r(i):@bin(y(i)));
sets:
r/1..4/:f,g,d,a,y;
c/1..12/:b;
m(r,c):x,p;
endsets
data:
p=24 35 47 43 83 80 97 100 96 85 57 65
51 39 70 66 74 73 90 101 101 90 3658
41 49 83 56 64 63 80 68 91 80 3828
62 41 64 49 57 50 52 60 84 73 8120;
b=1000 1500 500 200 1000 800 500 200 300 800 300 100;
g=4 2 3 2;
d=10000 10000 10000 10000;
a=120000 110000 115000 100000;
enddata
min=@sum(m(i,j):x(i,j)*y(i)*g(i))+@sum(r(i):a(i)*y(i))+@sum(m(i,j):p(i,j)*x(i,j));
@for(r(i):@sum(m(i,j):x(i,j))=b(j));
@for(r(i):@bin(y(i)));
这个是总的程序
Improper use of @FOR() function 运行lingo出现了这句话sets:r/1..4/:f,g,d,a,y;c/1..12/:b;m(r,c):x,p;endsetsdata:p=24 35 47 43 83 80 97 100 96 85 57 6551 39 70 66 74 73 90 101 101 90 365841 49 83 56 64 63 80 68 91 80 382862 41 64 49 57 50 52 60
没有语法错误 如果你那里有请你说清楚错误提示在哪里