lingo 取整的问题。
model:sets:student/1..6/:pay;day/1..5/:;link(student,day):t,x,c;endsetsdata:pay=10101...
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<=t);
@for(link:c=@if(x#gt#0,1,0));
@for(day(j):@sum(student(i):x(i,j))=13);
@for(student(i)|i#le#3:@sum(day(j):x(i,j))>=7);
@for(student(i)|i#gt#3:@sum(day(j):x(i,j))>=8);
@for(student(i):@sum(day(j):c(i,j))<=4);
@for(day(j):@sum(student(i):c(i,j))<=4);
@for(day(j):@sum(student(i)|i#gt#3:c(i,j))>=1);
@for(link:x#ge#2 #or# x#eq#0=1);
end
请问下该题目怎么取整。? 用GIN 展开
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<=t);
@for(link:c=@if(x#gt#0,1,0));
@for(day(j):@sum(student(i):x(i,j))=13);
@for(student(i)|i#le#3:@sum(day(j):x(i,j))>=7);
@for(student(i)|i#gt#3:@sum(day(j):x(i,j))>=8);
@for(student(i):@sum(day(j):c(i,j))<=4);
@for(day(j):@sum(student(i):c(i,j))<=4);
@for(day(j):@sum(student(i)|i#gt#3:c(i,j))>=1);
@for(link:x#ge#2 #or# x#eq#0=1);
end
请问下该题目怎么取整。? 用GIN 展开
1个回答
TableDI
2024-07-18 广告
2024-07-18 广告
VLOOKUP是Excel中用于垂直查找的函数,其基本用法包括四个参数:1. 查找值:即在数据表首列中需要搜索的值。2. 数据表:包含查找值的单元格区域或数组。3. 返回值所在列数:指定返回查询区域中第几列的值。4. 查找方式:选择精确匹配...
点击进入详情页
本回答由TableDI提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询