View the model
Download the model
We need to buy a specified amount of commodity. Two vendors each offer their own price curve (piecewise linear). How much should we buy from each to minimize total cost? We use a variable for each purchase level with constraints: must use all of earlier levels first.