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,-99,-99,6,11,13enddatamin=@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

第1个回答  推荐于2016-08-16
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);本回答被提问者采纳
相似回答