This directory contains all C code used in the paper.
The directories contain the following code:

2stage

Code computing frist order conditions in the supply system and their derivatives



2stage_ipopt  

Code computing equilibrium of the game using Ipopt. It reuqires working instalation of Ipopt.



advDem

Code used during the 2nd stage of the estimation



common

Some functions shared by different parts of the code



commonBin

Code used during the 1st stage of the estimation
