Code used in "On the First Order Approximation of Counterfactual Price Effects in Oligopoly Models"