Optimal control of deteriorating production inventory systems.