Optimal control of inventory-production systems in presence of perturbations on the inventory level