A microsimulated model of inventories in interfirm competition