+ Reply to Thread
Results 1 to 1 of 1

Solver - Optimal Football Lineup - Linear Conditions Not Satisfied

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    Boston
    MS-Off Ver
    Excel 2013
    Posts
    14

    Solver - Optimal Football Lineup - Linear Conditions Not Satisfied

    I have a fantasy football sheet set up that uses Solver to maximize projected points with a given spending limit. It selects 1 QB, 2 RB, 3 WR, 1 TE, 1 additional RB/WR/TE, and 1 DEF. This portion works fine.

    Now I'm trying to add the following constraints built around the QB:
    1) The QB and RBs can't be on the same team
    2) The QB and only 1 of the WR must be on the same team
    3) The QB and TEs can't be on the same team

    I couldn't think of a quick and easy way to do this (if there is let me know), so I added additional columns for each team with a COUNTIF. If the player is on the team, it returns 1, otherwise it returns a 0. Then I created a section that gives the number of players for each team for each position using SUMPRODUCT. Then I had the SUMPRODUCT of the players from each team at 1 position with the players from each team at another position. See attached for a better description, highlighted in yellow. Saved as .xlsb to lower file size.

    I thought this would work but I get the error that the linearity conditions are not satisfied (this is running Simplex). I switched to GRG and it takes forever to run then eventually says it couldn't be solved. Is there a simple way to do what I described?
    Attached Files Attached Files

+ 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. Optimal line up solver problem
    By Levon27 in forum Excel General
    Replies: 4
    Last Post: 06-27-2014, 09:05 PM
  2. Solver: Optimal Portfolio
    By leviathan86 in forum Excel General
    Replies: 3
    Last Post: 11-20-2013, 06:20 PM
  3. Replies: 11
    Last Post: 10-30-2013, 02:11 PM
  4. Replies: 2
    Last Post: 08-31-2013, 10:24 AM
  5. solver - not always optimal solution ?
    By przemke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2009, 03:38 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