+ Reply to Thread
Results 1 to 12 of 12

Solve Many equations

Hybrid View

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

    Re: Solve Many equations

    I know numerical methods can solve problem but I think I dont need to define these methods and excel can do this
    Solver/Goal Seek is how Excel implements (at least pre-programmed for us) numerical method.

    One possible approach might be to treat it like a "curve fitting" or "regression" type problem:

    1) Where you have "unkown", enter an initial guess for each x.
    2) Add a column where you calculate y using your equation for each of those X's
    3) Add a cell (or group of cells, depending on your style) that will calculate the "error" in the "regression" (=sumxmy2() is a good function for this http://office.microsoft.com/en-us/ex...in=HA102752955).
    4) Call Solver and tell it to set target cell with your "error" term to a minimum by changing your X values.
    5) Evaluate the result to see if Solver converged on a suitable solution.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  2. #2
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Solve Many equations

    Quote Originally Posted by MrShorty View Post
    Solver/Goal Seek is how Excel implements (at least pre-programmed for us) numerical method.

    One possible approach might be to treat it like a "curve fitting" or "regression" type problem:

    1) Where you have "unkown", enter an initial guess for each x.
    2) Add a column where you calculate y using your equation for each of those X's
    3) Add a cell (or group of cells, depending on your style) that will calculate the "error" in the "regression" (=sumxmy2() is a good function for this http://office.microsoft.com/en-us/ex...in=HA102752955).
    4) Call Solver and tell it to set target cell with your "error" term to a minimum by changing your X values.
    5) Evaluate the result to see if Solver converged on a suitable solution.
    Yes , I know but this approach is good for few unknown if I want to do this 5 step for all 100 cell's this approach is Boring
    I need a way to extend this approach , but I dont know how ? because I cannot drag&drop to extend or use Array in Goal Seek

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

    Re: Solve Many equations

    Quote Originally Posted by p30tec View Post
    Yes , I know but this approach is good for few unknown if I want to do this 5 step for all 100 cell's this approach is Boring
    I need a way to extend this approach , but I dont know how ? because I cannot drag&drop to extend or use Array in Goal Seek
    I am sorry if you find this approach boring. What kind of approach would you like that would be less boring? According to Frontline and Microsoft, Solver should be able to handle up to 200 "by changing" cells. Properly structured, it seems possible to structure a single Solver model to solve, in one step, for all 100 unkowns.

    I have frequently written my own NR (or other root finding algorithm) directly into the spreadsheet. This can be fun, though it would be significanlty more work -- especially if this will be your first attempt at writing a spreadsheet with intentional circular references and iteration enabled.

    Sometimes, I find it easier to write these kind of iterative algorithms into a programming language like VBA. Code the root finding algorithm into a user-defined function, then call the function from the spreadsheet. Would you be interested in this kind of approach?

    While I personally generally find it easier to code my own NR type algorithm, some users here prefer to write a loop in VBA that will call Solver for each row and solve each row separately.

    There are several different approaches we can use for a problem like this, let us know how you want to approach it, and we should be able to help you with programming that approach 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. [SOLVED] Using excel to solve a value in 2 equations
    By jackleesteere in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2014, 11:03 PM
  2. [SOLVED] Using 2 equations to solve a value
    By jackleesteere in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-05-2014, 10:55 PM
  3. Solve for variables using multiple equations
    By yashgupta25 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-08-2012, 06:17 AM
  4. Replies: 2
    Last Post: 10-10-2011, 09:42 AM
  5. [SOLVED] how do I use the solver to solve polynomial equations?
    By Cameron PE in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-20-2006, 05:25 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