+ Reply to Thread
Results 1 to 10 of 10

Solver in Excel with multiple constraints

  1. #1
    Registered User
    Join Date
    01-12-2016
    Location
    Europe
    MS-Off Ver
    MS 2013
    Posts
    48

    Solver in Excel with multiple constraints

    Hi Forum,

    I am trying to maximize a function in Excel with multiple constraints. However, the Solver does not seem to be able to solve this particular optimization problem. I might have overseen something.
    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,814

    Re: Solver in Excel with multiple constraints

    It seems to work (syntactically) just fine for me. What do you mean by "Solver does not seem to be able to solve this particular optimization problem"? Is Solver doing nothing? Is Solver finding a solution, but you believe there is a better solution? Is Solver producing an error message?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    01-12-2016
    Location
    Europe
    MS-Off Ver
    MS 2013
    Posts
    48

    Re: Solver in Excel with multiple constraints

    Thanks for your reply MrShorty. I was hoping for the solver to find a better solution, i.e. get a higher value of the target cell

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

    Re: Solver in Excel with multiple constraints

    Are you certain that a better solution exists? If so, do you know what inputs will lead to that solution? I realize that the goal is to have Solver tell us what the solution is. However, in order to test, debug, and develop something like this, I find that I need to test the spreadsheet on a problem where I know what solution Solver should find, so I will know when Solver comes to the wrong solution.

  5. #5
    Registered User
    Join Date
    01-12-2016
    Location
    Europe
    MS-Off Ver
    MS 2013
    Posts
    48

    Re: Solver in Excel with multiple constraints

    Yes I am certain that a better solution exists. The solution should be in the range of 0.60-1.
    Last edited by ugalskov; 03-01-2016 at 03:18 PM. Reason: error in typing

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

    Re: Solver in Excel with multiple constraints

    Do you have any ideas what inputs will give a result in that range? I have not come across a combination that gives that high of a result, yet.

  7. #7
    Registered User
    Join Date
    01-12-2016
    Location
    Europe
    MS-Off Ver
    MS 2013
    Posts
    48

    Re: Solver in Excel with multiple constraints

    I have either, actually I cant come above 0.439. But the solver should be able to optimize this setup, in my mind.

  8. #8
    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: Solver in Excel with multiple constraints

    Clearing the range F10:F23 and running solver with the GRG Nonliners metode I get a value of 0.44 for K9

    Doing a rerun using the Evolutionary metode and setting the "Maximum Time without improvement" to 15 I get a value of 0.45455 for K9.

    I don't think you could do much better than that based on your constraints.

    Alf

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

    Re: Solver in Excel with multiple constraints

    Solver cannot do the mathematically impossible, though. We need to know that there is a better solution before we can figure out how to help Solver find that solution.

    I am not convinced that there is a solution in that range with the constraints as they are given. If I relax the constraints so that weight can be 0.02 to 0.12, I can get the value up to 0.6, but not constrained to 0.05 to 0.1. I cannot prove it (and I don't see a reason to go through the algebra to get the final proof), but it looks to me that 0.6 (or more) is not possible with the current set of constraints.

  10. #10
    Registered User
    Join Date
    01-12-2016
    Location
    Europe
    MS-Off Ver
    MS 2013
    Posts
    48

    Re: Solver in Excel with multiple constraints

    Thanks for the reply Alf, and MrShorty. I am convinced that it is working correctly. If I try to relax the constraints then I get similar results as you MrShorty.

+ 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 Solver VBA - Solver Violating Constraints
    By lespaul00 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-19-2015, 04:00 PM
  2. [SOLVED] excel solver constraints
    By hcyeap in forum Excel General
    Replies: 5
    Last Post: 06-29-2015, 01:51 PM
  3. [SOLVED] One Macro with multiple solver each with different constraints
    By Alyotter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2013, 10:59 AM
  4. Run Solver Multiple Times (while changing constraints and goal for each iteration)
    By pmw1218 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2013, 04:17 PM
  5. Set Solver constraints to multiple data values
    By DutchDude in forum Excel General
    Replies: 3
    Last Post: 01-17-2012, 03:11 AM
  6. Excel Solver Constraints
    By jcoleman52 in forum Excel General
    Replies: 2
    Last Post: 06-01-2006, 03:00 PM
  7. Constraints in Excel Solver
    By Donna in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-04-2005, 06:30 PM

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