lingo报错如下:Index variables may not share names with other var
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/10/06 14:14:40
lingo报错如下:Index variables may not share names with other variables.老是遇到这个问题,
model:
sets:
at/a1..a3/:x;
bt/b1..b4/:s1,s2;
ct/c1..c3/:s3;
links(at,bt):r;
endsets
min=@sum(at:x);
@sum(at:x)>=26;
@sum(bt:x)=s1(j));
@for(ct(j):@sum(bt(i):r(i,j)*s2(i))=16);
data:
s1=50 10 20 15;
s2=4 5 6 8;
enddata
end
model:
sets:
at/a1..a3/:x;
bt/b1..b4/:s1,s2;
ct/c1..c3/:s3;
links(at,bt):r;
endsets
min=@sum(at:x);
@sum(at:x)>=26;
@sum(bt:x)=s1(j));
@for(ct(j):@sum(bt(i):r(i,j)*s2(i))=16);
data:
s1=50 10 20 15;
s2=4 5 6 8;
enddata
end
model:
sets:
at/a1..a3/:x;
bt/b1..b4/:s1,s2;
ct/c1..c3/:s3;
links(bt,at):r;
endsets
min=@sum(at:x);
@sum(at:x)>=26;
@sum(at:x)=s1(i));
@for(ct(j):@sum(bt(i):r(i,j)*s2(i))=16);
data:
s1=50 10 20 15;
s2=4 5 6 8;
enddata
end
sets:
at/a1..a3/:x;
bt/b1..b4/:s1,s2;
ct/c1..c3/:s3;
links(bt,at):r;
endsets
min=@sum(at:x);
@sum(at:x)>=26;
@sum(at:x)=s1(i));
@for(ct(j):@sum(bt(i):r(i,j)*s2(i))=16);
data:
s1=50 10 20 15;
s2=4 5 6 8;
enddata
end
lingo index variables may not share names with...
运行如下lingo程序时,出现index variables may not share names with othe
急!lingo程序运行时出现以下错误:index variables may not share names with
lingo运行时总是出现index variables may not share name with other va
Friend who wants to share with each other.怎么翻译?
happy things ,share ,sad things,each other,good friends,with
you may share your happy time with me
lingo,@for函数莫名报错
lingo中@for函数报错,
求大神为什么lingo报错?
求大神lingo 代码为什么报错?
lingo 报错 model is ill defined