Optimal policies for machine repairmen problems