作业帮 > 英语 > 作业

lingo报错 index variables may not share names with other varia

来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:英语作业 时间:2024/07/07 18:59:21
lingo报错 index variables may not share names with other variables
sets:
teacher/1..8/;
lunshu/1..5/;
link(teacher,lunshu):x;
endsets
min=@sum(link(i,j):x(i,j)*0.5);
@bnd(18,x(i,j),19);
@for(lunshu(j):@sum(teacher(i):x(i,j))=a(j););
@gin(link(i,j):x(i,j));
一直不停地报错!
lingo报错 index variables may not share names with other varia
sets:
teacher/1..8/;
lunshu/1..5/:a;
link(teacher,lunshu):x;
endsets
min=@sum(link(i,j):x(i,j)*0.5);
@for(link(i,j):@bnd(18,x(i,j),19));
@for(lunshu(j):@sum(teacher(i):x(i,j))=a(j););
@for(link(i,j):@gin(x(i,j)));