Searching for the best fit price for multiple customers [duplicate]
问题 This question already has an answer here : Comparing multiple price options for many customers algorithmically (1 answer) Closed 5 years ago . A restatement of Comparing multiple price options for many customers algorithmically without nearly as much cruft. We have 1,000,000 customers. The cost of goods sold for each of them can be expressed as price A or price B. Price A << Price B. Price A and Price B are not linear to each other. In some cases B is 2 times as expensive, in some it is 100