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