Joint Determination of Production Cycle and Inspection Intervals in a Deteriorating Production System