Maximum number of combinations

1 view (last 30 days)
Joel Schelander
Joel Schelander on 1 Apr 2021
I have 36 households and 429 vehicles.
Of the households 15 can have two vehicles, while the others can only have one vehicle.
I iterate and combine households: 2 at a time, 3 at a time... 36.
What is the maximum number of combinations of households and vehicles?
Answer: "The maximum number of combinations is reached when combining X households with 429 vehicles: (NumberofCombinations)"

Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!