Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. t1 = task('t1_2',2);
  2. t2 = task('t2_5',5);
  3. t3 = task('t3_6',6);
  4. t4 = task('t4_5',5);
  5. t5 = task('t5_3',3);
  6. t6 = task('t6_2',2);
  7. t7 = task('t7_1',1);
  8. t8 = task('t8_1',1);
  9. t9 = task('t9_4',4);
  10. t10 = task('t10_3',3);
  11. t11 = task('t11_2',2);
  12. t12 = task('t12_1',1);
  13. t13 = task('t13_1',1);
  14.  
  15.  
  16. prec = [
  17. 0 0 0 0 1 0 0 0 0 0 0 0 0
  18. 0 0 0 0 0 1 0 0 0 0 0 0 0
  19. 0 0 0 0 0 0 1 0 0 0 0 0 0
  20. 0 0 0 0 0 0 0 1 0 0 0 0 0
  21. 0 0 0 0 0 0 0 0 0 1 0 0 0
  22. 0 0 0 0 0 0 0 0 0 1 0 0 0
  23. 0 0 0 0 0 0 0 0 1 0 1 0 0
  24. 0 0 0 0 0 0 0 0 0 0 0 0 1
  25. 0 0 0 0 0 0 0 0 0 0 0 1 0
  26. 0 0 0 0 0 0 0 0 0 0 0 1 0
  27. 0 0 0 0 0 0 0 0 0 0 0 0 1
  28. 0 0 0 0 0 0 0 0 0 0 0 0 0
  29. 0 0 0 0 0 0 0 0 0 0 0 0 0
  30. ];
  31.  
  32. T = taskset([t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13],prec);
  33. p = problem('P|prec|Cmax');
  34. S1 = listsch(T,p,1,'LPT');
  35. S2 = listsch(T,p,2,'LPT');
  36. S3 = listsch(T,p,3,'LPT');
  37. S4 = listsch(T,p,4,'LPT');
  38. S5 = listsch(T,p,5,'LPT');
  39. S6 = listsch(T,p,6,'LPT');
  40. S7 = listsch(T,p,7,'LPT');
  41. S8 = listsch(T,p,8,'LPT');
  42. S9 = listsch(T,p,9,'LPT');
  43. S10= listsch(T,p,10,'LPT');
  44.  
  45. k1 = schparam(S1);
  46. k2 = schparam(S2);
  47. k3 = schparam(S3);
  48. k4 = schparam(S4);
  49. k5 = schparam(S5);
  50. k6 = schparam(S6);
  51. k7 = schparam(S7);
  52. k8 = schparam(S8);
  53. k9 = schparam(S9);
  54. k10= schparam(S10);
  55.  
  56. tab = [k1.cmax k2.cmax k3.cmax k4.cmax k5.cmax k6.cmax k7.cmax k8.cmax k9.cmax k10.cmax];
  57.  
  58. plot(tab);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement