请问下面这个LINGO程序为什么不出结果呢.model:sets:score/1..3/;team/1..6/;match(team,team):x;endsetsx(1,2)+x(1,4)+x(1,5)+x(1,6)=6;x(2,1)+x(2,3)+x(2,4)+x(2,5)+x(2,6)=4;x(3,2)+x(3,4)+x(3,6)=6;x(4,1)+x(4,2)+x(4,3)+x(4,5)+x(4,6)=3;x(5,1)+x(
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/09 07:47:20
请问下面这个LINGO程序为什么不出结果呢.model:sets:score/1..3/;team/1..6/;match(team,team):x;endsetsx(1,2)+x(1,4)+x(1,5)+x(1,6)=6;x(2,1)+x(2,3)+x(2,4)+x(2,5)+x(2,6)=4;x(3,2)+x(3,4)+x(3,6)=6;x(4,1)+x(4,2)+x(4,3)+x(4,5)+x(4,6)=3;x(5,1)+x(
请问下面这个LINGO程序为什么不出结果呢.
model:
sets:
score/1..3/;
team/1..6/;
match(team,team):x;
endsets
x(1,2)+x(1,4)+x(1,5)+x(1,6)=6;
x(2,1)+x(2,3)+x(2,4)+x(2,5)+x(2,6)=4;
x(3,2)+x(3,4)+x(3,6)=6;
x(4,1)+x(4,2)+x(4,3)+x(4,5)+x(4,6)=3;
x(5,1)+x(5,2)+x(5,4)+x(5,6)=8;
x(6,1)+x(6,2)+x(6,3)+x(6,4)+x(6,5)=8;
@for(match:@gin(x));!x取整;
@for(match:@bnd(0,x,3));!x取0,1,2,3;
@for(match(i,j):@abs(x(i,j)-2)
请问下面这个LINGO程序为什么不出结果呢.model:sets:score/1..3/;team/1..6/;match(team,team):x;endsetsx(1,2)+x(1,4)+x(1,5)+x(1,6)=6;x(2,1)+x(2,3)+x(2,4)+x(2,5)+x(2,6)=4;x(3,2)+x(3,4)+x(3,6)=6;x(4,1)+x(4,2)+x(4,3)+x(4,5)+x(4,6)=3;x(5,1)+x(
没有可行解
model:
sets:
score/1..3/;
team/1..6/;
match(team,team):x;
endsets
x(1,2)+x(1,4)+x(1,5)+x(1,6)=6;
x(2,1)+x(2,3)+x(2,4)+x(2,5)+x(2,6)=4;
x(3,2)+x(3,4)+x(3,6)=6;
x(4,1)+x(4,2)+x(4,3)+x(4,5)+x(4,6)=3;
x(5,1)+x(5,2)+x(5,4)+x(5,6)=8;
x(6,1)+x(6,2)+x(6,3)+x(6,4)+x(6,5)=8;
@for(match:@gin(x));!x取整;
@for(match:@bnd(0,x,3));!x取0,1,2,3;
@for(match(i,j):@abs(x(i,j)-2)