+ Reply to Thread
Results 1 to 10 of 10

fantasy basketball optimization using SOLVER

  1. #1
    Registered User
    Join Date
    02-21-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    5

    fantasy basketball optimization using SOLVER

    Hey fellow excel forumers!
    I'm new here but need help with a workbook that I'm trying to do. It centers around a fantasy basketball game that I play for fun and I know I need to use the solver tool to help optimize my lineup as much as possible because doing so manually would be way too much work!

    Here are the basic rules:
    Every player is assigned a position and I need to construct a roster consisting of 8 players that fall within the following categories:
    pg
    sg-
    sf-
    pf-
    c-
    g-
    f-
    u-

    also, every player has their own price tag and so the salary cap of my lineup is $50,000

    i need to also find a way to show that some players have multiple position eligibility. also every player falls within the u(utility) category. for instance, if player x is eligible as a pg/sg(you'll see what i mean in the file) then that person could be slotted in at the pg, sg, g, or u spot. if a player is a sg/sf, then they could be in the sg,sf,g,f, or u spot.
    ^this is really important

    i have the workbook csv ready to work on and I would like help with it. it's attached.

    DKSalaries (10).csv

  2. #2
    Registered User
    Join Date
    02-21-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: fantasy basketball optimization using SOLVER

    bump.should this be moved to the macros, vba sub-forum?

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,445

    Re: fantasy basketball optimization using SOLVER

    He elementasrat and welcome to the forum,

    I need a little help filling out the possible positions each player can play. You will need to put an X in each position, individually, to the right as I have started. Then send it back to me filled in with correct playing positions. Then I need to know how to pick the best team.

    Is the criteria to pick 8 players that cover all the possible positions that have the highest sum of average points per game and total price is less than 50K? I think I can do this problem but don't want to fill in all the X's. Don't you need to somehow pick players who play more often? You don't want to pick a guy who never gets in the game. OR does the price imply they play more often? Fix the X's and attach it back to me and I'll play with it. Any more rules on needing a player of each type?
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,794

    Re: fantasy basketball optimization using SOLVER


  5. #5
    Registered User
    Join Date
    02-21-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: fantasy basketball optimization using SOLVER

    Quote Originally Posted by MarvinP View Post
    He elementasrat and welcome to the forum,

    I need a little help filling out the possible positions each player can play. You will need to put an X in each position, individually, to the right as I have started. Then send it back to me filled in with correct playing positions. Then I need to know how to pick the best team.

    Is the criteria to pick 8 players that cover all the possible positions that have the highest sum of average points per game and total price is less than 50K? I think I can do this problem but don't want to fill in all the X's. Don't you need to somehow pick players who play more often? You don't want to pick a guy who never gets in the game. OR does the price imply they play more often? Fix the X's and attach it back to me and I'll play with it. Any more rules on needing a player of each type?


    Wow sorry for the late response. I really appreciate your help. You had it all correct except for the U(utility position). Every player is a utility player. the game just uses that position so you can have an extra player on your roster. All I did was fill in an x in the u spot for every player.

    As for any other criteria I think you have it all. As for now, I'd like to keep it basic so I'm using their average points as a so called "projection" to use when making my optimal lineup. In the future, I can use this workbook as a referennce and just manually changethe values and insert my own projections in the cells.

    Yes, the object of the game is to pick 8 players, one for each position while staying under the salary cap limit of 50k. You don't need to worry about players who don't play often as I can account for that when using my own projections.


    Also, I know this might be asking too much but maybe after, could you help me make a program that does the exact same thing as but instead I have to use 100% of the salary. Basically, optimal lineups don't matter and instead I'm looking to use 50k up and leave none left.

    But for now the first task is my priority as I'm trying to get the most points.

    The updated file is attatched
    Attached Files Attached Files
    Last edited by a1b2c3d4e5f6; 03-03-2014 at 12:56 AM.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,445

    Re: fantasy basketball optimization using SOLVER

    Hi,

    The plan was to simply draw 8 guys at random and see if I have all the needed X in the position spots. Then to look at the cost to see if it is > 50K. Then look at the average points. I keep the first random team that fits the criteria. I would then do another random team, check positions, less than 50K and if their average points is greater than the first I keep them as my team.

    Do the above about 1000 times (Excel doesn't care about the work) and you end up with a pretty good team.

    NOW - How do I insure I have 8 players that cover the needed positions? I need for you to recheck the X's and tell me how to pick a team based on the player position X's. I can than add up the $ and see the average pts.

  7. #7
    Registered User
    Join Date
    02-21-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: fantasy basketball optimization using SOLVER

    You pick a team simply by choosing a group of players who fit into each of the 8 categories. Wouldn't it be easier to let solver do the random iterations for you and get the biggest possible sum. I'm sure there is a way solver can do that for you.......

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,445

    Re: fantasy basketball optimization using SOLVER

    I'm ready to have you explain exactly how to use the solver for this problem. I'm really not a solver expert. I remember back in college when we were doing solver types of problems and the original guess was important. Also the solver method was very important depending on the type of problem.

    My past methods have been to simply make a random guess and see what I get. If I have all 8 spots filled, I then add the average points up. If the average is bigger than the highest past guess it then replaces the "high" guess standard. If you can write code to do this, then you simply let it run 10,000 times and get very close to the best pick. No solver needed.

  9. #9
    Registered User
    Join Date
    02-21-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: fantasy basketball optimization using SOLVER

    Bump?.......................

  10. #10
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,794

    Re: fantasy basketball optimization using SOLVER

    The "normal" Excel solver in not powerfull enough to cope with this problem. The maximum number of constraint it can handle is 200 and you have 115 player that can be placed in ca 4 different possible positions so this is equal to 460 constraint so this is a "no-go".

    Alf

+ 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. Creating Unique Values in Solver (Fantasy Basketball)
    By CWRocas in forum Excel General
    Replies: 2
    Last Post: 11-10-2012, 07:00 PM
  2. Creating Unique Values in Solver (Fantasy Basketball)
    By CWRocas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-10-2012, 06:06 PM
  3. Fantasy Basketball Help
    By LosAngelesLakers in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-18-2012, 01:01 PM
  4. Fantasy Basketball Database HELP!!!
    By Moneyball in forum Excel General
    Replies: 12
    Last Post: 10-03-2012, 11:22 AM
  5. fantasy basketball optimization problem
    By splashz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-15-2012, 11:47 AM

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