Optimum preventive maintenance policies for systems subject to random working times, replacement, and minimal repair