Guest User

Untitled

a guest
Oct 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. Input: A= {a1, a2, . . . an} \
  2. set of Activities, R= {r1, r2…, rn} \
  3. Resource Set, S= {s1, s2, s3, … sn} \
  4. skill set of resources, P= {p1, p2, … p8} \
  5. MBTI Personality Traits
  6.  
  7. Output: Resources are assigned on the basis of required Skills and Personality to the compatible activities.
  8.  
  9. 1: while UAt≠ 0 do \UA is a set of unscheduled activities whose predecessor is finished at time “t”.
  10. 2: ∀ a*: min {Za ∈ UAt} \Activity with smallest processing time
  11. 3: Ta* ← t; \ Starting Time of Activity
  12. 4: da*← d; \Required Processing Time
  13. 4: for (s ∈ Sa*) do \Skill Required for Activity
  14. 5: for (p ∈ Pa*) do \ Personality Trait Required for Activity
  15. 6: ra ←0; \ Initial Assigned Resources
  16. 7: while (ra < ra*sp) do
  17. 8: for each r in R;
  18. 9: find rXs ∈ SrtS; \ identify resources”r” with scarce skills. Xs is a scarce skill
  19. 10: if (r*s >= s* & r*h >= h*) \ Optimal Resource based on S and P
  20. 11: a← r* ∈ SrtS; \ Assign resource from Sorted resources
  21. 12: else if r* ∈ rXs = ra*sp;
  22. 13: Set r* busy for da*; \ Set Resource busy for required duration
  23. 14: UA = UAt – a;
  24. 15: if (p > 0 && p<= 34) \Personality trait is > 0 and <=34 =Low
  25. 16: da* = d – 0% to 3%;
  26. 17: else if (p > 34 && p<= 67)
  27. 18: da* = d – 3% to 6%; \ Personality trait is > 34 and
  28. <=67 = Medium
  29. 19: else if (p > 67 && p<= 100)
  30. 20: da* = d – 6% to 9%; \Personality trait is > 67 and <=100 =High
  31. 21: endif
  32. 22: else (r*s >= s*) \ Resource checking based on S
  33. 23: a← r* ∈ SrtS;
  34. 24: Set r* busy for da*;
  35. 25: UA = UAt – a;
  36. 26: if (p > 0 && p<= 34)
  37. 27: da* = d + 0% to 3%;
  38. 28: else if (p > 34 && p<= 67)
  39. 29: da* = d + 3% to 6%;
  40. 30: else if (p > 67 && p<= 100)
  41. 31: da* = d + 6% to 9%;
  42. 32: endif
  43. 33: end for
  44. 34: ra = ra* + 1;
  45. 35: end while
  46.  
  47. 36: end for
  48. 37: end for
Add Comment
Please, Sign In to add comment