SimuVeda/ Operations

Operations · Simulator 078

Project Scheduling

Building a house takes nine tasks, and some cannot start until others finish. Change how long each task takes, or rewrite which tasks depend on which. The chart shows the earliest schedule, the critical path that sets the finish date, and how much each other task can slip.

CollegeCollege project management

Experiments 0 of 0 Challenge not tried

How the model works

The critical path method (CPM) makes two passes through the task network.

Forward pass: a task's earliest start ES is the latest earliest finish of the tasks it depends on; its earliest finish is EF = ES + duration. The project length is the largest EF.

Backward pass: starting from the project end, a task's latest finish LF is the smallest latest start of the tasks that depend on it; LS = LF − duration.

slack (total float) = LS − ES

Tasks with zero slack form the critical path: any delay to them delays the whole project. Tasks with slack can slip by that much without moving the finish date, but using up slack can make another path critical. Shortening a critical task helps only until another path becomes just as long.

Dependencies are written one task per line, for example F: C D E means F starts after C, D and E finish. A loop (A after B after A) has no valid schedule and is reported.

Durations are fixed and resources are unlimited: tasks run in parallel whenever their dependencies allow. Real schedules also face uncertainty (PERT) and shared crews (resource levelling).

Guided experiments

  1. Find the critical path. The default house project. Prediction: 23 days along Foundation → Framing → Plumbing → Drywall → Painting → Inspection. Roofing and Electrical have 1 day of slack; Landscaping has 14.
  2. Slip a task with slack. Roofing takes 4 days, then 5. Prediction: 4 days uses up Roofing's slack, so the finish stays at 23 days and Roofing turns critical. 5 days pushes the project to 24.
  3. Speed up a critical task. Plumbing drops from 4 days to 2. Prediction: the project shortens by only 1 day, to 22, because Roofing and Electrical (3 days) now set the pace.

Challenge

The landscaper now insists on starting only after Painting is finished (change Landscaping's line to H: G, and Inspection keeps I: G H). What is the new project length, and which tasks are critical?

Reveal the explanation

Landscaping now sits on the main chain: A 4 + B 6 + D 4 + F 5 + G 3 + H 4 + I 1 = 27 days. The critical path is Foundation → Framing → Plumbing → Drywall → Painting → Landscaping → Inspection; Roofing and Electrical still have 1 day of slack.

References

  • Kelley, J. E. and Walker, M. R. (1959), "Critical-path planning and scheduling", Proceedings of the Eastern Joint Computer Conference: 160–173.
  • Hillier, F. S. and Lieberman, G. J., Introduction to Operations Research, 11th ed. (2021), ch. 22 (project management with PERT/CPM).
  • Project Management Institute, A Guide to the Project Management Body of Knowledge (PMBOK Guide), 7th ed. (2021).

Related simulators

Worked example

Forward pass on the default house project: Foundation (A) 0–4, Framing (B) 4–10, then Roofing (C) 10–13, Plumbing (D) 10–14 and Electrical (E) 10–13 in parallel. Drywall (F) waits for all three: 14–19. Painting (G) 19–22, Landscaping (H) 4–8, Inspection (I) 22–23. Project length 23 days.

Backward pass: Inspection must start by 22, so Painting must finish by 22 and start by 19; Drywall must start by 14, so Roofing and Electrical must finish by 14, giving each 1 day of slack.

Landscaping only has to finish before Inspection at 22, so it can start as late as 18: slack 18 − 4 = 14 days.

Critical path: the zero-slack tasks A → B → D → F → G → I, 4 + 6 + 4 + 5 + 3 + 1 = 23 days. Load the default plan and check the slack column.

Common questions

What is the critical path?

The longest chain of dependent tasks in a project. Its length is the shortest possible project duration, and any delay to a task on it delays the finish.

What is slack or float?

How long a task can be delayed without delaying the whole project: latest start minus earliest start. Critical tasks have zero slack.

How do you shorten a project?

Only by shortening tasks on the critical path, called crashing, or by running tasks in parallel. Once another path becomes as long, it must be shortened too.

Keyboard shortcuts

Space
Play or pause
S
Step
R
Reset
F
Full screen
?
Show this list