+ Reply to Thread
Results 1 to 5 of 5

Creating "fair" Playing schedule

  1. #1
    Registered User
    Join Date
    12-17-2014
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    19

    Question Creating "fair" Playing schedule

    We are 9 players to share 2 tennis courts over 26 rounds (this means 56 single-games)
    5 players are able to play 12 times and 4 players can play 11 times.
    But what is the "best" distribution to get the most different playing pairs.

    Thx
    Jeff
    Last edited by dontbugme1; 09-06-2015 at 05:15 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Creating "fair" Playing schedule

    Hi,
    Of course if this issue appears very often it is worth separate software. If it is just occasional - may be it will be enough to use something readily available. for instance attachment in post #12 from:
    http://www.excelforum.com/excel-form...-schedule.html
    Enter 9 in upperleft corner, check "Court or field format" and "Double RR" and "use letters"
    You will get a set of 72 matches on 4 courts. (I used 20150907 as a key number to generator and received:
    (E H) (A C) (B F) (I G)
    (F A) (B E) (H C) (G D)
    (A G) (D H) (I B) (E F)
    (H I) (G B) (D A) (C E)
    (D F) (C G) (E I) (A B)
    (G E) (F I) (C D) (H A)
    (C B) (H F) (A E) (D I)
    (I C) (E D) (F G) (B H)
    (B D) (I A) (G H) (F C)
    (H E) (C A) (F B) (G I)
    (A F) (E B) (C H) (D G)
    (G A) (H D) (B I) (F E)
    (I H) (B G) (A D) (E C)
    (F D) (G C) (I E) (B A)
    (E G) (I F) (D C) (A H)
    (B C) (F H) (E A) (I D)
    (C I) (D E) (G F) (H B)
    (D B) (A I) (H G) (C F)

    Copied to new sheet and after easy splitting each row into 2 you get:
    (E H) (A C)
    (B F) (I G)
    (F A) (B E)
    (H C) (G D)
    (A G) (D H)
    (I B) (E F)
    (H I) (G B)
    (D A) (C E)
    (D F) (C G)
    (E I) (A B)
    (G E) (F I)
    (C D) (H A)
    (C B) (H F)
    (A E) (D I)
    (I C) (E D)
    (F G) (B H)
    (B D) (I A)
    (G H) (F C)
    (H E) (C A)
    (F B) (G I)
    (A F) (E B)
    (C H) (D G)
    (G A) (H D)
    (B I) (F E)
    (I H) (B G)
    (A D) (E C)

    pretty fair schedule with counts:
    A 12
    B 12
    C 11
    D 11
    E 12
    F 11
    G 12
    H 12
    I 11
    Best Regards,

    Kaper

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Creating "fair" Playing schedule

    PS. I prepared 3 small and easy customized macros to deal with it, and added to original file.
    So in sheet "adopted" in column B write names of players. (1)
    Go to main sheet (schedule) and generate one round robin schedule in standard format (2)
    Transfer data to "adopted" calling macro transfer_to_2_courts (3)
    Check column D to see if the distribution is fair (4)
    If there are known players who are available for 11 and for 12 times - adjust names location within column B, If everybody can play either 12 or 11 - randomize names sequence calling randomize_names macro (5)
    and final step (6) prepare list with names by calling rewrite_with_names macro, so the final result looks like:

    Kowalski - Meier Brown - Durand
    etc.

    The code is really simple:
    Please Login or Register  to view this content.
    see attached file
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-17-2014
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    19

    Re: Creating "fair" Playing schedule

    Kaper - chapeau!!!
    Respect and thank you for your effort!

    It works really good, and it is so easy to recreate such plans!

    One additional Question: Is it possible to avoid "same encounters/meetings"?

    Example:
    C vs H and H vs C are the same.
    I have attached an adopted version with new columns to count same encounters (Column T and U).
    There you can see several meetings white same Players(highlighted in yellow)

    adopted tennis plan.xlsm

    Again, thank you very much for your effort!
    Jeff

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Creating "fair" Playing schedule

    It's impossible. For 9 players number of unique pairs is only 36. See https://en.wikipedia.org/wiki/Combination and the whole list is:

    1 2
    1 3
    1 4
    1 5
    1 6
    1 7
    1 8
    1 9
    2 3
    2 4
    2 5
    2 6
    2 7
    2 8
    2 9
    3 4
    3 5
    3 6
    3 7
    3 8
    3 9
    4 5
    4 6
    4 7
    4 8
    4 9
    5 6
    5 7
    5 8
    5 9
    6 7
    6 8
    6 9
    7 8
    7 9
    8 9

    To generate it's randomized version use the round robin sheet and uncheck "Double Round Robin" before clicking Generate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  2. Replies: 5
    Last Post: 11-04-2013, 11:28 AM
  3. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  4. [SOLVED] Problem creating Line Chart from columns "date" and "money"
    By brosef in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 11-05-2012, 09:01 AM
  5. Moving entire row from the "Schedule" worksheet to "Completed" worksheet
    By Redveck in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2012, 02:30 PM
  6. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  7. Replies: 7
    Last Post: 05-13-2006, 05:02 PM
  8. create links to check boxes marked "good" fair"and "bad"
    By pjb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2006, 09:25 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