← All challenges

Holiday Gift Assignment

January 2023

optimization

An office wants to assign one holiday gift to each of five people (Alice, Bob, Carol, Dave, and Eve) from a list of five gifts, each with its own cost. Every person also has a “happiness score” for each possible gift. Assign exactly one gift per person so that total happiness is maximized without exceeding a fixed budget.

Example data:

GiftCostAliceBobCarolDaveEve
Book1032514
Toy2052431
Chocolate513452
Wine1525341
Flowers743125

Budget: 50.

Send your solutions to DecisionManagementCommunity@gmail.com, or open a pull request to add yours here.

Solutions