+ Reply to Thread
Results 1 to 12 of 12

Solver

  1. #1
    Registered User
    Join Date
    10-07-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    5

    Solver

    Guys,

    Anyone know how to put this into excel 2013 and use solver to determine the answer? This has been done on matched but I think the same can be done with excel

    Thanks
    Attached Images Attached Images

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

    Re: Solver

    Is there a specific part of this that you need help with? I see a few steps to divide an conquer:

    1) Set up cells to compute the different quantities, such as lambda11 and lambda22 and lambda1
    2) I usually like to set it up as a "root finding" problem, so I will have a cell that computes lambda1-0.6.
    3) Call Solver and tell it to:
    a) set target cell -- cell with your desired objective function. in this case lambda1-0.6
    b) to a value of 0
    c) by changing -- whatever cell you have put alpha in.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Solver

    That's not the solution I get, but I may have ham-handed the formula:

    Row\Col
    A
    B
    C
    1
    alpha
    4.8473328
    B1: Solver
    2
    lambda1
    0.6
    B2: Input
    3
    lambda2
    0.2
    B3: Input
    4
    lambda11
    0.5959951
    B4: =1.25/(alpha - 2.75)
    5
    lambda22
    1.4444932
    B5: =alpha*lambda11/2
    6
    Function
    -5.76E-09
    B6: =lambda11 + (1 - lambda11) * ((lambda22 - lambda2)/lambda22) ^ (1.85 * alpha ^ 1.785) - lambda1


    Make B6=0 by changing B1
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    10-07-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    5

    Re: Solver

    Bare with me on this as I'm not great on excel

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Solver

    Bare with me on this
    I'm very perticaler about who I get nekked with ...
    Last edited by shg; 10-08-2015 at 01:40 PM.

  6. #6
    Registered User
    Join Date
    10-07-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    5

    Re: Solver

    Right:-

    1) I have cells which have defined lambda1, lambda11, lambda 22 etc.
    2) I have a cell which defines the formula
    3) I tell solver to:- set objective cell lambda1 to = 0
    4) by changing alpha cell

    where do I use the cell for the formula then?

  7. #7
    Registered User
    Join Date
    10-07-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    5

    Re: Solver

    Thats it guys cracked it....Nice one

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Solver

    Good job .

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Solver

    And indeed I did get the formula wrong:

    Row\Col
    A
    B
    C
    1
    alpha
    6.2666171
    B1: Solver
    2
    lambda1
    0.6
    B2: Input
    3
    lambda2
    0.2
    B3: Input
    4
    lambda11
    0.3554552
    B4: =1.25/(alpha - 2.75)
    5
    lambda22
    1.113751
    B5: =alpha*lambda11/2
    6
    Function
    -4.79E-08
    B6: =lambda11 + (1 - lambda11) * (1 - lambda2/lambda22) ^ (0.185 * alpha ^ 1.785) - lambda1

  10. #10
    Registered User
    Join Date
    10-07-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    5

    Re: Solver

    Using the same principle, is there a way to determine lambda11 by changing alpha.

    Reason for the questions alpha has a maximum figure based on lambda11.

  11. #11
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Solver

    lambda1 is a constant. If it were a variable, you would have one equation and two unknowns -- so no.

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

    Re: Solver

    Is this a constraint to be added to the same Solver model, or is this a new kind of problem?

    If this is a constraint to be added to the same Solver model, then, yes I'm sure there is a way. The details depend on exactly how the constraint should be defined, then determine how to best incorporate the constraint into the Solver model.

    If this is a new problem, then it should be as easy as: a) Set target cell -> lambda11
    b) to a value of -- desire value, or have a cell lambda11-value then set this to a value of 0
    c) by changing -- alpha.

    I would also note that lambda11 is a relatively simple algebraic function of alpha. If this latter is the new problem, then it should be easy to solve for alpha at a given lambda11 algebraically and enter that formula into Excel.

+ 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. Help with Solver - Modified an existing solver and broke it
    By ncknick43 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-29-2015, 03:59 PM
  2. Replies: 0
    Last Post: 07-20-2014, 12:45 PM
  3. macro not keeping solver solutions when solver is successful
    By jimmypants in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2014, 01:45 AM
  4. Replies: 6
    Last Post: 05-18-2013, 05:49 AM
  5. Can't start Solver. Error message says Solver.xlam already open.
    By DaveHills in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 10-21-2012, 11:02 AM
  6. solver macro + simulation code + not updating solver values
    By sabinemaria in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2012, 11:37 AM
  7. Interesting Solver problem (Solver encounters an error)
    By MrShorty in forum Excel General
    Replies: 3
    Last Post: 12-22-2005, 06:55 PM

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