+ Reply to Thread
Results 1 to 3 of 3

Solver not optimizing!

  1. #1
    Registered User
    Join Date
    01-23-2022
    Location
    New York
    MS-Off Ver
    16.57
    Posts
    1

    Unhappy Solver not optimizing!

    Hi Gurus,
    I have been struggling quite a bit with an easy optimization problem in Excel solver. In the attached workbook, I am trying to maximize a KPI (shown in cell B15, green) by changing the value of Cells (B5:B10, yellow). The only constraint I have is that 'Total Orders' should equal 'Total Order Planned' (B11=$B$2, red). However, when using solver (with GRG Non linear method), nothing happens! I have tried all variations and cant seem to get it to work.

    Any help/hints will be very useful!

    Regards,
    Excel Solver Newbie
    Attached Files Attached Files

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

    Re: Solver not optimizing!

    What do you expect the optimum solution to look like? I often find, when debugging something like this, that I need to know the solution to this specific problem in order to explore how the solver algorithm is failing to find that solution.

    The only constraint I have is that 'Total Orders' should equal 'Total Order Planned' (B11=$B$2, red)
    It shouldn't matter much to Solver, but I frequently set this sort of thing up so that B10 =B2-SUM(B5:B9), and then only change B5:B9. The constraint is now hard coded into the spreadsheet instead of needing Solver to manage the constraint.

    Another thing I notice is that small changes to B5:B10 make very small changes to B15. I would not be surprised if Solver thinks that it cannot find a better solution because B15 does not change very fast. To some extent, this can be controlled in Solver's settings, but sometimes when the OF is changing too slow, it is just difficult to get Solver to find a solution.

    If I've understood the model correctly, it looks like B15=B14/D11. B14 is a fixed value, so the maximum value for B15 is going to be where D11 is at its smallest. It might be easier for Solver to find the minimum of D11 rather than the maximum of B15 -- except that D11 can be 0 (resulting in a Div/0 error) at its smallest. What constrains the overall problem so that the optimum is not at D11=0?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Valued Forum Contributor Hydraulics's Avatar
    Join Date
    07-15-2018
    Location
    Udine - Italy
    MS-Off Ver
    Office 365
    Posts
    372

    Re: Solver not optimizing!

    You don't need Solver for this problem.

    Maximizing KPI is like minimizing cell C11 (since we don't care about the constant value of 80$). C11 is a weighted average, therefore your best option is to set all the orders in cell B5.

    If you really want to use Solver, you can minimize directly cell D11 (because the sum of orders is constrained to be equal to a given value), and set Simplex as engine.

    I have removed cells B6:B8 from variables, since unit cost is zero.

    HTH,

    Francesco
    Attached Files Attached Files
    Aim high or don't even try.
    ---------------------------------
    If your question has been answered, don't forget to mark the thread as SOLVED.
    If you find an answer helpful, click on the star icon at the bottom of the post.

+ 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] Can Solver do this? Optimizing several binary criteria
    By chris00011 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2021, 05:38 PM
  2. Replies: 5
    Last Post: 10-09-2020, 03:33 AM
  3. Replies: 2
    Last Post: 04-23-2020, 05:14 PM
  4. [SOLVED] optimizing Solver
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-14-2017, 04:47 PM
  5. Solver - Optimizing a Correlation Table
    By brianj997 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2016, 02:49 PM
  6. Replies: 0
    Last Post: 07-20-2014, 12:45 PM
  7. Optimizing without using Solver
    By pld in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-20-2010, 10:29 AM

Tags for this Thread

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