Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.54 KB | None | 0 0
  1. t1=task('t1',2);
  2. t2=task('t2',4);
  3. t3=task('t3',1);
  4. t4=task('t4',3);
  5. t5=task('t5',2);
  6. t6=task('t6',1);
  7. t7=task('t7',3);
  8. t8=task('t8',1);
  9. t9=task('t9',2);
  10.  
  11. prec = [0 1 0 0 0 0 0 0 0; ...
  12.         0 0 0 1 0 0 0 0 0; ...
  13.         0 0 0 1 0 0 0 0 0; ...
  14.         0 0 0 0 1 1 1 0 0; ...
  15.         0 0 0 0 0 0 0 0 1; ...
  16.         0 0 0 0 0 0 0 0 1; ...
  17.         0 0 0 0 0 0 0 1 0; ...
  18.         0 0 0 0 0 0 0 0 1; ...
  19.         0 0 0 0 0 0 0 0 0];
  20. T=taskset([t1 t2 t3 t4 t5 t6 t7 t8 t9],prec);
  21. p=problem('P|prec|Cmax');
  22. TS=listsch(T,p,2,'LPT');
  23. plot(TS);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement