Two-phase Preventive Maintenance Optimization for Power Equipments