lingo求大神看看这程序那出错了。。
发布网友
发布时间:2024-10-02 15:50
我来回答
共1个回答
热心网友
时间:2024-10-18 14:30
model:
sets:
student/1..6/:p;
time/1..5/;
link(student,time):x,c,k;
endsets
data:
p=10 10 12 12 15 16;
c=6 0 6 0 7
0 6 0 6 0
4 8 3 0 5
5 5 6 0 4
3 0 4 8 0
0 6 0 6 3;
enddata
min=@sum(time(j):@sum(student(i):x(i,j)*p(i)));
@for(link(i,j):x(i,j)<c(i,j));
@for(link(i,j)|i#le#4:@sum(time(j):x(i,j))>8);
@for(link(i,j)|i#ge#5:@sum(time(j):x(i,j))>7);
@for(link(i,j):@sum(student(i):x(i,j))>14);
end
程序本身没有错,要就要给原题,否则没法判断