lingo提示错误码29,model: title 7.1.1指派问题;sets: persons/1..6/:p; works/1..6/:w; value/persons,works/:c,x;endsetsdata: x=20,15,16,5,4,7, 17,15,33,12,8,6, 9,12,18,16,30,13, 12,8,11,27,19,14, -99,7,10,21,10,32, -99
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/22 18:19:26
lingo提示错误码29,model: title 7.1.1指派问题;sets: persons/1..6/:p; works/1..6/:w; value/persons,works/:c,x;endsetsdata: x=20,15,16,5,4,7, 17,15,33,12,8,6, 9,12,18,16,30,13, 12,8,11,27,19,14, -99,7,10,21,10,32, -99
lingo提示错误码29,
model:
title 7.1.1指派问题;
sets:
persons/1..6/:p;
works/1..6/:w;
value/persons,works/:c,x;
endsets
data:
x=20,15,16,5,4,7,
17,15,33,12,8,6,
9,12,18,16,30,13,
12,8,11,27,19,14,
-99,7,10,21,10,32,
-99,-99,-99,6,11,13
enddata
min=@sum(value:x*c);
@for(works(i):(persons(j):@sum(c(i,j))=1));
@for(persons(j):(works(i):@sum(c(i,j))=1));
end
lingo提示错误码29,model: title 7.1.1指派问题;sets: persons/1..6/:p; works/1..6/:w; value/persons,works/:c,x;endsetsdata: x=20,15,16,5,4,7, 17,15,33,12,8,6, 9,12,18,16,30,13, 12,8,11,27,19,14, -99,7,10,21,10,32, -99
model:
title 7.1.1指派问题;
sets:
persons/1..6/:p;
works/1..6/:w;
value(persons,works):c,x;
endsets
data:
x=20,15,16,5,4,7,
17,15,33,12,8,6,
9,12,18,16,30,13,
12,8,11,27,19,14,
-99,7,10,21,10,32,
-99,-99,-99,6,11,13;
enddata
min=@sum(value:x*c);
@for(works(i):@sum(persons(j):c(i,j))=1);
@for(persons(j):@sum(works(i):c(i,j))=1);