lingo报错 index variables may not share names with other variablessets:teacher/1..8/;lunshu/1..5/;link(teacher,lunshu):x;endsetsmin=@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));
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 21:53:09
lingo报错 index variables may not share names with other variablessets:teacher/1..8/;lunshu/1..5/;link(teacher,lunshu):x;endsetsmin=@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 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 variablessets:teacher/1..8/;lunshu/1..5/;link(teacher,lunshu):x;endsetsmin=@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));
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)));