Estimating the demand for differentiated products and the efficiency of the production line