lingo 取整的问题.model:sets:student/1..6/:pay;day/1..5/:;link(student,day):t,x,c;endsetsdata:pay=10 10 11 12 14 13;t=6 0 6 0 70 6 0 6 04 8 3 0 55 5 6 0 43 0 4 8 00 6 0 6 3;enddatamin=@sum(student(i):pay(i)*@sum(day(j):x(i,j)*c(i,j)));@for(link:x
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/27 05:41:32
lingo 取整的问题.model:sets:student/1..6/:pay;day/1..5/:;link(student,day):t,x,c;endsetsdata:pay=10 10 11 12 14 13;t=6 0 6 0 70 6 0 6 04 8 3 0 55 5 6 0 43 0 4 8 00 6 0 6 3;enddatamin=@sum(student(i):pay(i)*@sum(day(j):x(i,j)*c(i,j)));@for(link:x
lingo 取整的问题.
model:
sets:
student/1..6/:pay;
day/1..5/:;
link(student,day):t,x,c;
endsets
data:
pay=10 10 11 12 14 13;
t=
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(student(i):pay(i)*@sum(day(j):x(i,j)*c(i,j)));
@for(link:x=7);
@for(student(i)|i#gt#3:@sum(day(j):x(i,j))>=8);
@for(student(i):@sum(day(j):c(i,j))
lingo 取整的问题.model:sets:student/1..6/:pay;day/1..5/:;link(student,day):t,x,c;endsetsdata:pay=10 10 11 12 14 13;t=6 0 6 0 70 6 0 6 04 8 3 0 55 5 6 0 43 0 4 8 00 6 0 6 3;enddatamin=@sum(student(i):pay(i)*@sum(day(j):x(i,j)*c(i,j)));@for(link:x
@for(link:@gin(x));