Optimal pricing and replenishment policy for production system with discrete demand