Managing Inventory in Supply Chains with Nonstationary Demand