Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MODEL:
- SETS:
- dodavatele/1..3/:a;
- odberatele/1..4/:b;
- cesta(dodavatele,odberatele):x,y,c;
- ENDSETS
- DATA:
- a=300 180 220;
- b=180 250 160 110;
- c=10 3 14 6
- 5 3 7 4
- 2 8 5 11;
- K=16;
- ENDDATA
- min=@SUM(cesta(i,j):c(i,j)*y(i,j));
- @FOR(dodavatele(i):@SUM(odberatele(j):x(i,j))<=a(i));
- @FOR(odberatele(j):@SUM(dodavatele(i):x(i,j))=b(j));
- @FOR(cesta(i,j):x(i,j)<=K*y(i,j));
- @FOR(cesta:@GIN(x));
- @FOR(cesta:@GIN(y));
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement