Sub topic 6
Crash cost slope and crash limits
This chapter assumes you can compute a critical path and float in a small activity network, and that you know crashing means adding resources to shorten critical activities. Here you will put a price on each day of reduction (the crash cost slope), see how far each activity can be shortened (its crash limit), and use both to choose what to crash.
From "crashing costs money" to a number
Crashing buys time with money. The decision still needs a number: how much does one day cost on this activity? The crash cost slope answers that.
For one activity, you need four inputs:
- Normal duration and normal cost: the plan you would follow with no schedule pressure.
- Crash duration and crash cost: the shortest realistic duration and what it costs to reach it.
The slope is the extra cost divided by the days saved:
crash cost slope = (crash cost - normal cost) / (normal duration - crash duration)A slope of 400 means each day you remove from that activity costs 400 more than the normal plan. The unit is cost per day.
Computing slopes
The script below computes the slope for each activity of the example network used in this chapter, then ranks the activities from cheapest to most expensive.
activities = {
# name: normal days, normal cost, crash days, crash cost
"A": (3, 1500, 2, 2000),
"B": (5, 2000, 3, 2800),
"C": (4, 1200, 3, 1500),
"D": (3, 1800, 2, 2400),
}
slopes = {}
for name, (n_days, n_cost, c_days, c_cost) in activities.items():
slopes[name] = (c_cost - n_cost) / (n_days - c_days)
for name, slope in sorted(slopes.items(), key=lambda item: item[1]):
print(f"{name}: {slope:.0f} per day")Running it prints:
C: 300 per day
B: 400 per day
A: 500 per day
D: 600 per dayActivity C is the cheapest per day, and D is the most expensive. That ranking is only a first filter, as the next sections show.
Crash limits
Every activity has a floor. The crash duration is the shortest time the work can realistically take, however much you spend. Past that point extra people or equipment do not help. Common reasons for a floor:
- Physical or technical constraints, such as concrete curing time or a test that must run for a fixed period.
- Work that cannot be divided, so more people cannot work on it at once.
- Coordination overhead, where each added person slows the others down.
- Limits on available resources, such as a specialist you cannot double.
The number of days you can still remove from an activity is its normal duration minus its crash duration. In the example, A can lose 1 day, B can lose 2, C can lose 1, and D can lose 1.
This gives the whole project a floor too. If every activity sat at its crash duration, the longest path would be the shortest possible project duration. For our network the paths are A-B-D and A-C-D:
| Path | Normal duration | Fully crashed duration |
|---|---|---|
| A-B-D | 3 + 5 + 3 = 11 | 2 + 3 + 2 = 7 |
| A-C-D | 3 + 4 + 3 = 10 | 2 + 3 + 2 = 7 |
No spending can bring this project below 7 days. A request for 6 days is infeasible under the current plan. Only a change to the network, such as fast-tracking, could help.
Why the slope alone is not enough
It is tempting to crash the cheapest activity in the table. In our example that is C, at 300 per day. It will not help here. The critical path is A-B-D at 11 days, and C sits on the 10-day path. Shortening C changes nothing about the project finish. You would spend 300 and save zero days.
The correct rule is: among the activities that are on a critical path and above their crash limit, pick the one with the lowest slope. In the first step that is B (400), because A costs 500 and D costs 600.
The one-day-at-a-time procedure
The procedure is repetitive, so work in one-day steps and recompute after each one.
- Find the critical path(s) and the current project duration.
- List the critical activities that are still above their crash duration.
- Pick the one with the lowest slope. If several critical paths exist, make sure the choice shortens all of them (see the section on parallel critical paths below).
- Shorten it by one day and add its slope to the running crash cost.
- Recompute the schedule. A new critical path may have appeared.
- Stop when you reach the target, when nothing on the critical path can be crashed further, or when the next day costs more than it is worth.
The procedure as code
This script implements the loop. It tests each candidate by trying the one-day cut and keeping it only if the project gets shorter. That check handles the "is it critical?" question without finding the path explicitly.
activities = {
# name: normal duration, minimum (crash) duration, crash cost per day, predecessors
"A": {"dur": 3, "min": 2, "slope": 500, "preds": []},
"B": {"dur": 5, "min": 3, "slope": 400, "preds": ["A"]},
"C": {"dur": 4, "min": 3, "slope": 300, "preds": ["A"]},
"D": {"dur": 3, "min": 2, "slope": 600, "preds": ["B", "C"]},
}
def project_duration(durs):
finish = {}
for name, a in activities.items(): # listed in dependency order
start = max((finish[p] for p in a["preds"]), default=0)
finish[name] = start + durs[name]
return max(finish.values())
durs = {n: a["dur"] for n, a in activities.items()}
target = 9
spent = 0
while project_duration(durs) > target:
now = project_duration(durs)
options = []
for n, a in activities.items():
if durs[n] > a["min"]:
trial = {**durs, n: durs[n] - 1}
if project_duration(trial) < now: # only helps if it shortens the project
options.append((a["slope"], n))
if not options:
break
slope, n = min(options)
durs[n] -= 1
spent += slope
print(f"crash {n}: {now} -> {project_duration(durs)} days, +{slope}")
print(f"duration {project_duration(durs)} days, crash cost {spent}")Output:
crash B: 11 -> 10 days, +400
crash A: 10 -> 9 days, +500
duration 9 days, crash cost 900Trace the two steps by hand:
- Step 1. The duration is 11 and only path A-B-D is critical. Candidates that shorten the project are A (500), B (400) and D (600). C is rejected because cutting it leaves A-B-D at 11. B is cheapest, so it drops to 4 days. The project is now 10 days and both paths are critical.
- Step 2. Both paths are at 10 days. Crashing B again would shorten only A-B-D, so the project stays at 10 because A-C-D is still 10. Crashing C would have the same problem on the other path. The activities that sit on both paths are A (500) and D (600). A is cheaper, so it drops to 2 days. The project reaches 9 days.
The total crash cost is 400 + 500 = 900.
Parallel critical paths
Step 2 shows the main edge case. Once two paths are both critical, shortening an activity on only one of them gains nothing. You have two options:
- Crash an activity that lies on all critical paths. Here that is A or D.
- Crash one activity on each critical path, and pay both slopes for a single day saved. Here that would be B (400) plus C (300), which is 700 per day. That is more than A at 500, so A wins.
Compare these options every time. The cheapest single activity is sometimes a worse choice than a pair, and the pair is sometimes worse than a shared activity.
When to stop: the value of a day
The slope tells you the price of a day. To decide whether to buy it, you need the value of a day saved. Typical sources of that value:
- Daily overhead or indirect costs, such as site management and rented equipment, that stop when the project ends.
- Contract penalties (liquidated damages) for late delivery, or bonuses for early delivery.
- Revenue from an earlier launch.
Suppose each day of delay costs 450. Then:
| Step | Activity | Slope | Value of a day | Crash it? |
|---|---|---|---|---|
| 1 | B | 400 | 450 | Yes, net saving of 50 |
| 2 | A | 500 | 450 | No, net loss of 50 |
Under this value, the best plan stops at 10 days with a crash cost of 400. If a contract penalty of 2000 applied to any finish later than day 9, the picture changes. Then the 900 spent to reach day 9 is worth it, because it avoids the penalty. The stopping rule depends on how the value is structured, not only on the slopes.
Slopes also rise as you go. After the cheap options are used up, each added day costs more, so total crash cost climbs faster than the days saved. This is the diminishing return that a later chapter covers in detail.
Common mistakes
- Dividing by the wrong number. The denominator is the days saved (normal minus crash duration), not the crash duration itself.
- Choosing by slope without checking criticality. Always test that the cut shortens the project.
- Forgetting a new critical path. After each cut, recompute. A previously near-critical path can take over.
- Crashing past the limit. An activity at its crash duration is off the list, however low its slope looks.
- Ignoring side effects. More resources can add risk, quality problems and coordination load. The slope is a cost estimate, not a guarantee.
Exercise
An activity has a normal duration of 8 days at a cost of 4000, and a crash duration of 5 days at a cost of 5200. (a) What is its crash cost slope? (b) How many days can you remove from it? (c) It sits on the critical path, and the project penalty is 350 per day late. Is it worth crashing by the full amount?
Show answer
(a) Slope = (5200 - 4000) / (8 - 5) = 1200 / 3 = 400 per day. (b) 8 - 5 = 3 days. (c) A day saved is worth 350 and costs 400, so each day loses 50. It is not worth crashing for the penalty alone. Another source of value, such as overhead of at least 50 per day or earlier revenue, would be needed to justify it.
Exercise
Use the network from this chapter (A, then B and C in parallel, then D) with the same slopes and crash limits. Without running code, find the minimum possible project duration, and say which activity you would crash first to go from 11 days to 10.
Show answer
The minimum comes from crashing every activity: A-B-D = 2 + 3 + 2 = 7 and A-C-D = 2 + 3 + 2 = 7, so the minimum is 7 days. To go from 11 to 10, only the critical path A-B-D can be shortened, and the cheapest candidate is B at 400 per day (A is 500, D is 600). C is cheaper at 300 but is not critical, so crashing it saves nothing.