Constrained Assortment Optimization and Demand Estimation