This study examines the feasibility of using an integrated inventory model incorporating production programs and maintenance to model an imperfect process involving a deteriorating production system. Following production run period two preventive maintenances are performed, namely perfect preventive maintenance, and imperfect preventive maintenance. The perfect preventive maintenance’s probability depends on the number of imperfect maintenance operations performed since the last renewal cycle. Every time when failure occurs will produce defective products which have a certain number of the ability of rework and not to be rework, and those cannot rework will lead to shortages. The model is shown to provide an optimal number of shipment and lower cost. We also build various special cases that consider failure rate, including weibull, geometric and learning effect. Finally a numerical example is presented.