+ Reply to Thread
Results 1 to 2 of 2

2nd, 3rd, ... best solution with Solver

  1. #1
    Registered User
    Join Date
    01-06-2015
    Location
    Houston, Texas
    MS-Off Ver
    2013
    Posts
    6

    2nd, 3rd, ... best solution with Solver

    Howdy,

    I would like to have solver give me the top several soltuons rather than just the single (maximum) optimized solution. The only way I have been able to do this so far is create a new contstraint that limits the objective cell to "less than" the previous best solution.

    Ideally I would like it to give me to the top 10 solutions for example but without having to adjust the contraint each time. Is this possible?

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

    Re: 2nd, 3rd, ... best solution with Solver

    Short but useless answer to your question: I am optimistic that most things are "possible" with enough time, effort, skill, and ingenuity, so, yes, I think it is possible. The real question is how to get a solution.

    1) If adding the constraint works, but you really just want to avoid the tedium of doing it manually, one possible approach would be to program a loop in VBA that will a) run Solver, b) set constraint, c) Run Solver again, d) set new constraint, and continue repeating until you have your top 10 solutions. The success of this kind of approach will depent on skill level with VBA and calling Solver from VBA. Technically, we are still adding the constraint to Solver each time, we are just programming it in instead of doing it manually.

    2) If you understand your function well enough, you might be able to compute the top 10 based on the result from the max.
    3) You may use a different algorithm, where you compute several different points in the region of interest, then use lookup functions to return the top 10.
    4) Many times, it seems that we use Solver when we want to avoid doing algebra. If there is an algebraic solution, determined from the nature of your function), then an algebraic solution to the top 10 might be easiest.

    and, I am sure, there are other possible approaches. A lot is going to depend on how well you know your function.
    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. Solver not finding the solution
    By Domux in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-25-2015, 03:49 PM
  2. Solver - Finding the next best solution
    By mattdh12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-04-2014, 10:41 AM
  3. Replies: 11
    Last Post: 10-30-2013, 02:11 PM
  4. solver - not always optimal solution ?
    By przemke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2009, 03:38 PM
  5. Solution With Solver
    By Kumara_faith in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-31-2007, 08:00 AM
  6. Solver: no solution
    By Peter1999 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2007, 03:57 AM
  7. Solver solution hessian
    By PandS in forum Excel General
    Replies: 0
    Last Post: 02-01-2006, 11:10 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