SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set TASKS;
  2. set PROCS;
  3.  
  4. param cost {TASKS};
  5. param dist {PROCS};
  6.  
  7. var x {i in PROCS, j in TASKS}, binary;
  8.  
  9. minimize obj: sum{i in PROCS, j in TASKS} x[i,j]*dist[i]*cost[j];
  10.  
  11. subject to every_task:
  12.   for {j in TASKS}: sum{i in PROCS} x[i,j] = 1;
  13. subject to only_one:
  14.   for {i in PROCS}: sum{j in TASKS} x[i,j] <= 1;
  15.  
  16. data;
  17. ...
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top