lingo中missing right parenthesis!急!
sets:p/1..92/;q/1..92/:t;r/1..20/;link(p,q):c,x;endsetsmin=a;(@sum(link(i,j):c(i,j)*x...
sets:
p/1..92/;
q/1..92/:t;
r/1..20/;
link(p,q):c,x;
endsets
min=a;
(@sum(link(i,j):c(i,j)*x(i,j)*t(j)))<=a;
@for(r(i):c(i,i)=1;);
@for(q(j):
@sum(p(i):c(i,j))=1;);
@for(link(i,j):@bin(c(i,j)););
@for(link(i,j):c(i,j)*x(i,j)<3;);
@sum(link(i,j):c(i,i))=22;
@for(p(i):
b=@sum(q(j):c(i,j));
d=@sum(q(j):c(i,j)););
@for(p(i):
(@if(c(i,i)=1,b=0,d=1)));
我这么一段语句,总是说我少了右括号,但是我觉得没少啊~求大神! 展开
p/1..92/;
q/1..92/:t;
r/1..20/;
link(p,q):c,x;
endsets
min=a;
(@sum(link(i,j):c(i,j)*x(i,j)*t(j)))<=a;
@for(r(i):c(i,i)=1;);
@for(q(j):
@sum(p(i):c(i,j))=1;);
@for(link(i,j):@bin(c(i,j)););
@for(link(i,j):c(i,j)*x(i,j)<3;);
@sum(link(i,j):c(i,i))=22;
@for(p(i):
b=@sum(q(j):c(i,j));
d=@sum(q(j):c(i,j)););
@for(p(i):
(@if(c(i,i)=1,b=0,d=1)));
我这么一段语句,总是说我少了右括号,但是我觉得没少啊~求大神! 展开
展开全部
sets:
p/1..92/;
q/1..92/:t;
r/1..20/;
link(p,q):c,x;
endsets
min=a;
(@sum(link(i,j):c(i,j)*x(i,j)*t(j)))<=a;
@for(r(i):c(i,i)=1;);
@for(q(j):
@sum(p(i):c(i,j))=1;);
@for(link(i,j):@bin(c(i,j)););
@for(link(i,j):c(i,j)*x(i,j)<3;);
@sum(link(i,j):c(i,i))=22;
@for(p(i):
b=@sum(q(j):c(i,j));
d=@sum(q(j):c(i,j)););
@for(p(i):
(@if(c(i,i)=1,b=0,d=1)));
最后这句用法错误:@if(c(i,i)=1,b=0,d=1))
没这么用过,估计问题就出在这
p/1..92/;
q/1..92/:t;
r/1..20/;
link(p,q):c,x;
endsets
min=a;
(@sum(link(i,j):c(i,j)*x(i,j)*t(j)))<=a;
@for(r(i):c(i,i)=1;);
@for(q(j):
@sum(p(i):c(i,j))=1;);
@for(link(i,j):@bin(c(i,j)););
@for(link(i,j):c(i,j)*x(i,j)<3;);
@sum(link(i,j):c(i,i))=22;
@for(p(i):
b=@sum(q(j):c(i,j));
d=@sum(q(j):c(i,j)););
@for(p(i):
(@if(c(i,i)=1,b=0,d=1)));
最后这句用法错误:@if(c(i,i)=1,b=0,d=1))
没这么用过,估计问题就出在这
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询