Advertisement
Guest User

Untitled

a guest
Mar 13th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. MODEL:
  2.  
  3. SETS:
  4. dodavatele/1..3/:a;
  5. odberatele/1..4/:b;
  6. cesta(dodavatele,odberatele):x,y,c;
  7. ENDSETS
  8.  
  9. DATA:
  10. a=300 180 220;
  11. b=180 250 160 110;
  12. c=10 3 14 6
  13. 5 3 7 4
  14. 2 8 5 11;
  15. K=16;
  16. ENDDATA
  17.  
  18. min=@SUM(cesta(i,j):c(i,j)*y(i,j));
  19.  
  20. @FOR(dodavatele(i):@SUM(odberatele(j):x(i,j))<=a(i));
  21. @FOR(odberatele(j):@SUM(dodavatele(i):x(i,j))=b(j));
  22.  
  23. @FOR(cesta(i,j):x(i,j)<=K*y(i,j));
  24.  
  25. @FOR(cesta:@GIN(x));
  26. @FOR(cesta:@GIN(y));
  27.  
  28. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement