This paper derives a reverse logistic inventory model with imperfect production, stock-dependent demand, flexible manufacturing, and shortages over infinite planning horizon. The objective is to determine the joint policy for optimal production, amount of remanufacturing, collection of reusable items, and collection as well as disposal of defective items which minimizes the total cost of the inventory system under consideration. To make the model more realistic, both of the cases of linear and nonlinear holding costs have been discussed. The results are discussed with a numerical example to illustrate the theory.