A study of two special inventory management problems