Closed Thread
Results 1 to 8 of 8

Grouping People On Preference

Hybrid View

  1. #1
    Registered User
    Join Date
    10-08-2014
    Location
    Central U.S.
    MS-Off Ver
    XP
    Posts
    2

    Grouping People On Preference

    Hello all,
    Newbie here looking for help. I am looking for help setting up an excel sheet to create groups based on peoples preference.

    A little background, I have a friend that is a summer camp director. One of her responsibilities is creating groups for each cabin each week and many kids request to be with friends and many have multiple friend requests. Typically there are 240 kids per week and 24 cabins (10 campers/cabin). As you can imagine juggling all of these requests can be very time consuming and there is always an upset kid or parent because someone didn't get with someone else...you get the point. I am looking for help to create these groups that optimize matches if the kids are allowed to request cabin mates. I think if the requests are limited to one request per camper it would simplify things but on the other hand allowing up to three cabin mate requests would allow for more flexibility? The next (more complicated step) would be all of this weighted on preference of cabin mates, i.e. on the application it might read "list requested cabin mates in order of preference 1-3", The last part may be me just over-complicating things.


    Thanks in advance for any help!

    Newbie

  2. #2
    Registered User
    Join Date
    01-31-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Grouping People On Preference

    Hey there,

    So the problem you are describing will require solver - the problem is, that free version only allows for 200 variable cells (camper assignments to cabins) and the paid version only allows for 2,000 variable cells. Your problem has 2,400 - i.e. 240 campers with 10 possible assigments (240*10)

    attached is a workbook that has set up the problem - if you want to try the solver free trial and limit the problem to 2000 or limit the problem to 200 and use the free version, this setup should work for you. I can't guarantee as I haven't been able to run it.

    Link to solver premium trial http://www.solver.com/premium-solver-pro

    Link to enabling solver (free or otherwise) http://office.microsoft.com/en-us/ex...010021570.aspx

    If you still need assistance in running a smaller version of the problem let me know - if some campers (at least 40) don't put any preference you could run the problem with 2000 and randomly assign the remaining 40 campers to cabins.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-08-2014
    Location
    Central U.S.
    MS-Off Ver
    XP
    Posts
    2

    Re: Grouping People On Preference

    WOW, that was quick.

    Would the use of Solver still be required if the preferences were not weighted? I think weighting the preferences would be ideal in a digital world but may just complicate things for her. If possible, I would like to see a simpler sheet with no weights and the maximum number of preferences limited to three but could be modified for one max or two max preferences.

    I will ask her how many campers actually submit cabin mate requests. This number could be much lower than I imagined so a free version may be adequate. One more thing I forgot to mention is the number of possible combinations are only half of what you thought them to be since cabin mates are always of the same gender.

    Thanks again!

  4. #4
    Registered User
    Join Date
    08-15-2016
    Location
    Houston, Texas
    MS-Off Ver
    2013
    Posts
    1

    Re: Grouping People On Preference

    Hi all, I have a similar question and i think this solver feature will help me. I am hosting a think tank and each participant will select 3 people they want to work with on future collaborative projects. I have downloaded the camper assignment but unfortunately, I'm only somewhat savvy with excel. Can some please please kindly give me a more step by step instruction on how to group the participants into groups of 3 or 4. I will have about 30 participants in total. Thank you.

  5. #5
    Registered User
    Join Date
    01-31-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Grouping People On Preference

    The need of solver is to optimize the solution - there maybe (likely are) ways to do this sub-optimal using more by hand methods or through VBA programming but solver is your easiest bet. The weights add to complexity but not significantly (from my understanding of linear programming).

    With the number down to 120 campers and 12 cabins you have 1440 variable cells so the paid version of solver should work (depending on how many times this needs to be done the 15 day trial may be enough). However, the solver paid version is $1,000 so it is likely cost prohibitive for just this exercise.

    Currently you could set the weights all to one and have campers choose preference from 0-3 so if you only have one or two preferences you only enter one or two preferences and essentially remove weighting. The real limitations you are facing is the number of campers that need to be assigned. With actually camper preferences, you could make smaller problems that only handle groups of campers who have requests that are tied to each other but the free version limits you to 20 campers and 10 cabins at a time (200 variables) which is fairly small and could likely be done by hand.

    I have attached the smaller version assuming half male and half female (you would copy and run twice for each set) - I also removed the weighting. However, the problem still exists with the 1440 decision variables. If you have real data I would be happy to setup my solver trial and try and run it to check results.

    Sorry for the rambling post and happy to help.

    - melk
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-21-2020
    Location
    Maanshan, China
    MS-Off Ver
    2010
    Posts
    1

    Re: Grouping People On Preference

    Thank you for sharing!

  7. #7
    Registered User
    Join Date
    09-14-2018
    Location
    China
    MS-Off Ver
    Office 2010
    Posts
    41

    Re: Grouping People On Preference

    Dear,

    I'd like to provide a linear programming idea here by using 30 students & 5 groups.

    It is recommended to use an open source solver named "Open Solver".
    The decision variables are : Xij, assign student i in group j.
    The typical constraints are:
    1) each student is assigned in only one group.
    2) each group containts 6 students(30 students in 5 groups).

    To apply the preference constraints, typically there are two methods:
    1) multiply the assignment choice for the two students, sum up and then maximize it. For example, if the 2 students are in the same group, that the two students will have a score of 2, if not in the same group, the score will be 0. This will force Solver to put the two students in the same group. This is a nonlinear programming - Because the two variables are multiplying with each other.
    2) use minMax method, introduce a set of binary variables, Ytj
    Ytj >= Xnj - Xkj, and then minimize Sum of Wj*Ytj, Wj is the weight we set, which is constant.
    This is a linear programming.
    Attached Files Attached Files

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,266

    Re: Grouping People On Preference

    Administrative Note:

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need help grouping 12 people into 4-somes.
    By greyfoxx12 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-27-2012, 11:27 PM
  2. [SOLVED] Grouping people and images.
    By HakanF in forum Excel General
    Replies: 4
    Last Post: 04-16-2012, 04:54 AM
  3. Grouping people into teams and then identifying strategies
    By t0m in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-24-2011, 03:25 PM
  4. Grouping and Subtotaling by List of People
    By carl83 in forum Excel General
    Replies: 1
    Last Post: 05-20-2011, 01:37 PM
  5. Preference Sorting
    By jamesvenning in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2010, 03:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1