Consumer Demand and Optimal Choice