Impact of Product Substitution on the Optimal Capacity of the Flexible Resource Under Different Demand Models