How to calculate the best price [duplicate]
This question already has answers here : Selecting A combination of minimum cost (5 answers) Closed 4 years ago . I have a interesting problem. I would like to know some good approaches to solve this. I have a small store in which I have 'n' number of products Each product as a non zero price associated with it A product looks like this { productId:productA; productName:ABC; price:20$ } To enhance the customer retention, I would like to bring in combo model to sell. That is, I define m number of combos Each combo looks like this { comboId:1; comboName:2; constituentProducts: {Product1,