+ Reply to Thread
Results 1 to 8 of 8

Problem using the "solver function".

  1. #1
    Registered User
    Join Date
    10-03-2011
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    16

    Problem using the "solver function".

    I want to maximize the expected return on an investment. To do this i have created some parameters which have an effect on the outcome, and if they are adjusted optimally they should make it possible for me maximize my expected return.

    I throught I would be able to use solver to adjust these parameters, however while the solver function tells me that it has come to a result, it doesn't change the value of the parameters.

    And this is weird as the values that I am currently using in the parameters are randomly chosen, and definitely aren't optimal. I can manually change the numbers of the parameters and they will change the the expected return.

    I suspect that the problem may be due to the fact that there aren't nessarily one specific optimal solution to each parameter. There may be more than 1 value that is optimal. But I am not sure whether this is the actual problem, or even how I can fix this problem.

    Any suggestions?
    Attached Files Attached Files
    Last edited by MathiasH; 11-17-2011 at 11:45 AM.

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Problem using the "solver function".

    Can you post your workbook and describe your expected solution?
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Registered User
    Join Date
    10-03-2011
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Problem using the "solver function".

    I can't attach my excel file because its too large (if that is what you mean by workbook) (?).

    But do you think the problem may be due to the fact that the solver function doesn't work if the variable that is too be adjusted has more than 1 optimal value?

  4. #4
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Problem using the "solver function".

    If it has more than one (ie more than one local minima/maxima are also the absolute minima/maxima), the solver should just display whichever is found first.

    I'd guess you need to change your criteria or assumptions in some way. I'd be glad to help, but you'll need to post a sample workbook. Can you get rid of all the unneeded info and then post?

  5. #5
    Registered User
    Join Date
    10-03-2011
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Problem using the "solver function".

    I uploaded a version of my workbook.

    If you go to sheet "2007-2008 kampe", I want to maximize"K637" by changing the variables in "D23", "d24" and "d25".

  6. #6
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Problem using the "solver function".

    Cell K637, which you are trying to solve for, is dependent upon B637:I637. B637 is dependant upon B633:B635. B635 is dependant upon B622 (and some other cells). B622 uses an IF() function, so your model is non smooth and discontinuous. You can't use Excel's built in solver for non-linear problems (see here).

    I would also say your model is very complex, and even without those discontinuities I wonder if the Solver would be able to work.

  7. #7
    Registered User
    Join Date
    10-03-2011
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Problem using the "solver function".

    Thanks for your help.
    Yes i know its very complex, and I guess solver then isn't able to figure out a solution. But do you think there are other ways to get to a solution? I mean I could change every variable manually and the expected outcome (celler k637) would change, so I would just think that excel had some clever function to fix this problem (?).

  8. #8
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Problem using the "solver function".

    Optimization (or operations research) is a very complex field - I took two classes on it in college, and we still only scratched the surface. If you are able to turn your problem into a linear optimization problem, you could probably solve it. I'd start either by writing out an equation to your problem, or arranging your spreadsheet in a much more intuitive manner, where formulas are grouped by what cells they depend on and what cells depend on them.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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