model:sets:r/m1..m3/;t/w1..w3/;link(r,t):p,x;endsetsdata:p=0.2 0.3 0.30.1 0.2 0.30.2 0.3 0.2;enddatamax=@sum(link:p*x);@for(r(i):@sum(t(j):x(i,j))=1);@for(t(j):@sum(r(i):x(i,j))=1);@for(link:@bin(x));end