+ Reply to Thread
Results 1 to 6 of 6

Exponential curve fitting

  1. #1
    Registered User
    Join Date
    11-06-2009
    Location
    Zagreb, Croatia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Exponential curve fitting

    Can anyone help me to use the LINEST() function to fit the curve y = a *(1 - exp(-b*u)) to my dataset?

    Would someone be able to explain what is the best way to fit.

    Thanks,
    Jactex

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

    Re: Exponential curve fitting

    Are you certain that the function can be transformed into a linear function? Assuming a and b are the fitting parameters, I don't immediately see a way to transform that function into a linear function. I think that non-linear regression techniques (using Solver in Excel) may be necessary for this problem.

    Can you show us a linear form for that function? Are you familiar with non-linear regression using Solver?
    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
    11-06-2009
    Location
    Zagreb, Croatia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Exponential curve fitting

    When running the "GRG Nonlinear" method of the Solver Add-In I frequently almost instantly get an error report with message "Solver encountered an error value...". I have tested all boundary conditions and can't find any variable values that produce errors.

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

    Re: Exponential curve fitting

    Then it must have encountered an error value of some kind during the algorithm. The error value need not necessarily occur at the boundary conditions, but may occur elsewhere in the solution space. When it displayed the warning message, did you click on "keep current solution" or "Restore original values"? I would have expected that, if you had picked "keep current solution", the values that triggered the error would be retained, and you could see what error was returned, what values triggered the error, and be able to debug further.

    I'm not sure how much we can help on this side of the internet based on the information given. If you can upload a sample file to the forum (go advanced -> manage attachments) that exhibits the error, then we can look at your file and see the Solver model and spreadsheet model that you are using in context.

  5. #5
    Registered User
    Join Date
    11-06-2009
    Location
    Zagreb, Croatia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Exponential curve fitting

    Thanks for the instructions. Here you go.
    Attached Files Attached Files

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

    Re: Exponential curve fitting

    I don't recreate the error. With no changes to either the spreadsheet or the Solver model, I click on Solve, and it converges to a believable solution (A~-3500, B~-0.39). I tried other starting values for A and B, and it sometimes converged on something unreasonable, but it never gave a "Solver encountered an error." I could get a #DIV/0 error if either A or B are exactly 0, but Solver did not seem to have a tendency to make either parameter exactly 0.

    Have you got a different example that illustrates the problem?

+ 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. 3D Curve Fitting
    By EssoExplJoe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-30-2017, 04:56 PM
  2. Curve Fitting and interpolation
    By salmanisn in forum Excel General
    Replies: 3
    Last Post: 01-24-2011, 04:18 AM
  3. [SOLVED] curve fitting
    By [email protected] in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-03-2006, 02:10 PM
  4. curve fitting a charging capacitor type curve
    By mcgradys in forum Excel General
    Replies: 4
    Last Post: 11-15-2005, 08:50 AM
  5. Best fitting curve
    By ladee_bird in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-27-2005, 09:05 AM
  6. best curve fitting
    By ladee_bird in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-20-2005, 03:05 AM
  7. Fitting Exponential to data?
    By clueless_05 in forum Excel General
    Replies: 3
    Last Post: 05-15-2005, 06:26 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