@for(ss(i,j,k):bin(x));这一段一直提示出错(lingo),求大神,顺便检查一下还有哪里不对,谢谢
sets:s1/1..20/:n;s2/1..20/:m;s3/1..20/:p;s12(s1,s2);s23(s2,s3);s13(s1,s3);ss(s1,s2,s3...
sets:
s1/1..20/:n;
s2/1..20/:m;
s3/1..20/:p;
s12(s1,s2);
s23(s2,s3);
s13(s1,s3);
ss(s1,s2,s3):c,x;
endsets
max=@sum(ss:c*x)/6;
@for(s1(i):@sum(s23(j,k):x(i,j,k))=2);
@for(s2(j):@sum(s13(i,k):x(i,j,k))=2);
@for(s3(k):@sum(s12(i,j):x(i,j,k))=2);
@for(ss(i,j,k):bin(x));
data:
n=A B C D E F G H I J K L M N O P Q R S T;
m=A B C D E F G H I J K L M N O P Q R S T;
p=A B C D E F G H I J K L M N O P Q R S T;
c=@text('D:\mydata.txt');
enddata
end 展开
s1/1..20/:n;
s2/1..20/:m;
s3/1..20/:p;
s12(s1,s2);
s23(s2,s3);
s13(s1,s3);
ss(s1,s2,s3):c,x;
endsets
max=@sum(ss:c*x)/6;
@for(s1(i):@sum(s23(j,k):x(i,j,k))=2);
@for(s2(j):@sum(s13(i,k):x(i,j,k))=2);
@for(s3(k):@sum(s12(i,j):x(i,j,k))=2);
@for(ss(i,j,k):bin(x));
data:
n=A B C D E F G H I J K L M N O P Q R S T;
m=A B C D E F G H I J K L M N O P Q R S T;
p=A B C D E F G H I J K L M N O P Q R S T;
c=@text('D:\mydata.txt');
enddata
end 展开
1个回答
展开全部
sets:
s1/1..20/:n;
s2/1..20/:m;
s3/1..20/:p;
s12(s1,s2);
s23(s2,s3);
s13(s1,s3);
ss(s1,s2,s3):c,x;
endsets
max=@sum(ss:c*x)/6;
@for(s1(i):@sum(s23(j,k):x(i,j,k))=2);
@for(s2(j):@sum(s13(i,k):x(i,j,k))=2);
@for(s3(k):@sum(s12(i,j):x(i,j,k))=2);
@for(ss(i,j,k):@bin(x));
这里少了个@
不过数据用字母表示,我可没用过
s1/1..20/:n;
s2/1..20/:m;
s3/1..20/:p;
s12(s1,s2);
s23(s2,s3);
s13(s1,s3);
ss(s1,s2,s3):c,x;
endsets
max=@sum(ss:c*x)/6;
@for(s1(i):@sum(s23(j,k):x(i,j,k))=2);
@for(s2(j):@sum(s13(i,k):x(i,j,k))=2);
@for(s3(k):@sum(s12(i,j):x(i,j,k))=2);
@for(ss(i,j,k):@bin(x));
这里少了个@
不过数据用字母表示,我可没用过
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询