Algorithm to find best combination
Show older comments
I am looking for a algorithm that will help me to choose the combinations with the minimum sum. Let's say I have differents combinations of numbers and for each of them I have a cost. I have to choose the combinations that will cover all the numbers but with the minimum cost. For example
Combinations with numbers 2 to 7
Combination Cost
________________ _______
2 3 4 5 10.9084
2 3 4 6 10.3335
2 3 4 7 8.8927
2 3 5 6 11.3927
2 3 5 7 11.4411
2 3 6 7 11.5541
(...)
I was looking for hours for severals algorith, but no one is doing exactly what I want. Can someone direct my research to the right algorithm?
Thanks.
Yannick
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!