Optimal inventory and pricing policies for supply chain networks