+ Reply to Thread
Results 1 to 2 of 2

Solver Not Working

  1. #1
    Registered User
    Join Date
    07-01-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    1

    Solver Not Working

    Hi there,

    I am having an issue with Solver running correctly. In the attached worksheet, I am trying to minimize cell H6 in the "Calculations" tab by changing cell D4. When I put these parameters into Solver, it does not attempt any iterations, and only tells me "Solver found a solution. All Constraints and optimality conditions are satisfied" -- but in reality, this is not the case.

    Does anyone have any insight as to why this is not working? Perhaps it is an issue with the "Calculations" tab being linked to the "Input" tab? Is the LOG expression too much for Solver to handle?

    Any and all answers are welcome!

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,445

    Re: Solver Not Working

    Can I assume you are using the default "GRG non-linear" algorithm? Usually when I see this, it is because of something "not optimal" for the default algorithm in the objective function (H6). For example, your COUNTIF() functions in D6 and D7 that are part of H6 are "step" functions. Meaning that small changes in the "by changing" cell have zero effect on these functions. Of course, "No change in H6 for a small change in D4" is the convergence ("Solver has found a solution") criterion for a Newton-Raphson type algorithm.

    If you have not yet tried it, you might try an evolutionary algorithm (assuming you don't need this to be backwards compatible to pre 2010 versions of Excel). EA algorithms are computationally more intense, but they are better suited for "step" functions like this. If you need this to use the NR type algorithm so it will be backwards compatible with older versions, you will need to re-think your calculations steps between D4 and H6 to eliminate the "step" functions.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. Working with solver and constraints
    By Upnorthdyme in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-10-2013, 01:54 AM
  2. Solver Not Working?
    By Peter-27 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-20-2013, 07:04 PM
  3. Solver add in - Constraint not working
    By mkmed in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2013, 01:23 PM
  4. Solver - VB macro not working
    By rcaus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-26-2009, 02:47 AM
  5. Solver has quit working
    By jrtaylor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-29-2009, 11:57 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