The business problem
A utility has limited maintenance crews and 40 pumps that could fail. Replacing the highest-risk pumps first may waste money if their failures are inexpensive, replacement is costly or the jobs use too much crew time.
Working example 05 Weibull reliability and knapsack optimisation
“We can predict a failure, but cannot prevent it economically.”
A utility runs 40 pumps of different criticality. A model predicts which are likely to fail, but crews are limited and planned work is not free. Acting on every alert costs more than it saves.
The business context
A utility has limited maintenance crews and 40 pumps that could fail. Replacing the highest-risk pumps first may waste money if their failures are inexpensive, replacement is costly or the jobs use too much crew time.
The solution estimates each pump’s chance of failing over the next year and compares the expected cost with replacing it now. It chooses the combination of worthwhile jobs that fits the crew hours and saves the most money. It also explores replacement ages over the longer term. The example assumes a replacement restores a pump to new condition.
Explore the evidence
40 synthetic pump records. The fleet stays the same when you change the economic and reliability assumptions below. Age, required crew hours and the failure-cost multiplier are inputs; failure probabilities, expected savings and selected jobs are outputs. The reliability scale is fixed at 24 months and the fleet decision covers the next 12 months.
All records are illustrative and generated in your browser. Browse every row using the table controls. Displayed decimals are rounded; calculations use full precision.
How it works
P(fail | age a) = 1 − R(a + 12) / R(a), R(t) = exp(−(t/η)^β)C(T) = [C_p·R(T) + C_f·(1 − R(T))] / ∫₀ᵀ R(t) dtmax Σ saving_i·x_i s.t. Σ hours_i·x_i ≤ H, x_i ∈ {0, 1}Try it
Try a shape parameter of 1.0 to see why some predictions cannot be acted on profitably.
Long-run cost per asset-month for each planned replacement age.
Each pump by predicted risk and the net saving from servicing it. Larger dots need more crew hours.
Interpretation
An accurate prediction is not the same as a profitable action. When failures are random (β ≤ 1), replacing a risky asset early buys a new one that is just as likely to fail. When they are not, the best plan weighs risk against the cost of failure and the time each job takes — and sometimes leaves a high-risk asset alone.