+ Reply to Thread
Results 1 to 5 of 5

Trying to understand and fix Solver saying "all variables must have lower and upper bounds

  1. #1
    Registered User
    Join Date
    04-19-2022
    Location
    San Diego, CA
    MS-Off Ver
    10
    Posts
    10

    Trying to understand and fix Solver saying "all variables must have lower and upper bounds

    I am trying to maximize the gross profit of a hypothetical VR headset but solver is continually telling me that "all variables must have lower and upper bounds." I am at a loss on how to alter the constraints, so any help is greatly appreciated.
    Attached Files Attached Files

  2. #2
    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,758

    Re: Trying to understand and fix Solver saying "all variables must have lower and upper bo

    As you are running Solver using the Evolutionary engine you must check under "Options" tab "Evolutionary". There is a tick mark in box "Require Bound on Variables" so you either uncheck that box or you do set max and min values on the variable cells. As far as I can see you have a max and min value on cell C5 (set in the constraint) but I can't see any max and min value on the cells in range D22:K22

    Alf

  3. #3
    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,758

    Re: Trying to understand and fix Solver saying "all variables must have lower and upper bo

    Not sure why you choose to use the "Evolutionary" engine as the "GRG Nonlinear" engine finds the same answer as the "Evolutionary" engine but much faster and don't care about "Require Bound Variables"

    Alf

  4. #4
    Registered User
    Join Date
    04-19-2022
    Location
    San Diego, CA
    MS-Off Ver
    10
    Posts
    10

    Re: Trying to understand and fix Solver saying "all variables must have lower and upper bo

    Thank you for your input! How would I go about creating max and min values for D22:K22? Also, I am using an evolutionary engine because that is what is required of me.

  5. #5
    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,758

    Re: Trying to understand and fix Solver saying "all variables must have lower and upper bo

    How would I go about creating max and min values for D22:K22?
    The same way as you set a min and max value for C5 i.e. C5>=C7 and C5<=C8 and you have also set a min a max value for K22>=2 and K22<=16 but you nee to specify the range. Is the range
    D22:K22>=2 and D22:K22<=16??? I don't know but you should know the limitations for what min and max values this range can have.

    Do you really need "Require Bound Variables"? Untick the box "Require Bound Variables" on the options "Evolutionary" tap and solver will hav no problem with finding a solution.

    You could also change the "Maximum Time without improvement" from 120 seconds to 10 seconds. After some seconds you see the text in the lower left corner of the excel worksheet
    "Incumbent 413 000 000" and this value stays the same telling you that solver has found a solution. You could perhaps reduce this time to 5 seconds but this depend a bit on how fast and powerful your pc is.

    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. [SOLVED] Excel Bubble Chart with Upper & Lower bounds
    By tranhaithang in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-10-2014, 09:00 PM
  2. Replies: 4
    Last Post: 08-30-2014, 01:41 PM
  3. Solver - Evoloutionary, how to apply upper and lower bounds
    By dpsersimon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2014, 02:26 AM
  4. [SOLVED] Determine if a cell value is within upper and lower bounds?
    By Darksabre in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-03-2013, 01:30 PM
  5. [SOLVED] Multiple if statements with upper/lower bounds
    By crail5 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2013, 01:25 AM
  6. Using MIN on range with upper and lower bounds
    By MWMike in forum Excel General
    Replies: 3
    Last Post: 12-13-2011, 03:13 PM
  7. [SOLVED] How to fix lower and upper bounds for data
    By charter_SKR in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-10-2006, 12:35 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