Optimal Inventory Strategy Under Risk: A Contingent Claims Approach