A model of technology selection by cost minimizing producers