I would like to calculate all possible combinations of a given set of names, Each name will be given its own salary. I need this combination result to not exceed a set salary cap. Example: Name #1: John - $200, #2: Brad - $500, #3: Amber - $800, #4: Fred - $100, #5: Meghan - $200, #6: Jim - $300, #7: Frank - $100, #8: Mike - $200, #9: Hannah - $300. I now need to find all possible combination's of 4 names but not to exceed $1000 in combined salary. With the ability for up to 10 names and salaries with a higher salary cap.
|Generator of combinations which satisfy a condition|
For elements with weights this calculator can filter out all combinations where total weight is under the specified limit.