+ Reply to Thread
Results 1 to 4 of 4

Excel Solver ignoring sum constraint

  1. #1
    Registered User
    Join Date
    04-17-2020
    Location
    Connecticut
    MS-Off Ver
    Excel 2016
    Posts
    2

    Excel Solver ignoring sum constraint

    I created a solver in which F8 is maximized with the only constraint being E12 (the sum of bets) <= total bankroll (in this case I just set it to $100). This constraint is being completely ignored and I get error messages because the system tries to take the log of a negative number, something that wouldn't happen if the constraint was followed. Why is the constraint ignored? Any way to fix it?
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Excel Solver ignoring sum constraint

    Administrative note
    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile does not indicate your version.
    Thanks

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: Excel Solver ignoring sum constraint

    I did not replicate your problem. When I opened your file and ran Solver, it had not trouble solving the problem. My older version of Excel does not have all of the same Solver engines available, so my first guess is that something in the chosen Solver engine does not like the exact problem you gave it.

    A few things to look at:

    1) Solver engine -- My older version uses a Newton-like algorithm (as I understand it -- should be similar to the GRG-nonlinear option in newer versions). Perhaps try a different Solver algorithm.
    2) Choose better initial values. I notice that your default initial guesses seem to be $0 for each. You might try entering some different values for these initial guesses. Some problems require more care in choosing initial guesses than other problems.

    I cannot replicate the problem here -- probably something related to the available solver engines in my older version, so I cannot give any better suggestions.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    04-17-2020
    Location
    Connecticut
    MS-Off Ver
    Excel 2016
    Posts
    2

    Re: Excel Solver ignoring sum constraint

    I started messing around with starting variables to try and create some methodology to pinning the answer down. It's not an exact science and I doubt I'll achieve fully optimal solutions for data with heavy favorites, but it's a step in the right direction.

    Thank you for your help!

+ 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. Need Help in setting constraint for excel solver
    By piku9290dgp in forum Excel General
    Replies: 2
    Last Post: 12-04-2018, 02:20 PM
  2. [SOLVED] Excel Solver Less Than or Equal To Constraint
    By shoulddt in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-04-2018, 02:53 PM
  3. Excel Solver Constraint Help
    By BauceArj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-14-2014, 08:47 PM
  4. EXCEL Solver: Constraint equals one of two values (0 or 100)?
    By davidmummery1989 in forum Excel General
    Replies: 1
    Last Post: 01-14-2014, 06:54 AM
  5. [SOLVED] Excel Solver Constraint Question
    By Verna in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-19-2012, 04:33 PM
  6. Excel Solver- Ratio Constraint
    By Patriot393 in forum Excel General
    Replies: 1
    Last Post: 06-12-2011, 08:55 PM
  7. Excel Solver: Constraint Specification
    By tonisama in forum Excel General
    Replies: 6
    Last Post: 11-16-2010, 05:00 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