Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9067 > unrolled thread
| Started by | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| First post | 2012-03-15 05:41 +0000 |
| Last post | 2012-03-15 05:41 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: Message using FindFit with LevenbergMarquardt Method Bill Rowe <readnews@sbcglobal.net> - 2012-03-15 05:41 +0000
| From | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| Date | 2012-03-15 05:41 +0000 |
| Subject | Re: Message using FindFit with LevenbergMarquardt Method |
| Message-ID | <jjrvec$9hu$1@smc.vnet.net> |
On 3/14/12 at 12:41 AM, geraldine.oliveux@free.fr (geraldine oliveux)
wrote:
>I'm a new user of Mathematica. I'm trying to fit data to a model in
>which I have one parameter. I try to determine this parameter by
>Levenberg-Marquardt Method. I wrote the following lines : data =
>{{0., 0.425}, {60.6, 0.224}, {91.2, 0.1314}, {119.4, 0.0716}, {150.,
>0.040}, {181.8, 0.0241}} u = t*(a*sqrt[e0])/2 x =
>Tanh[t*(a*sqrt[e0])/2] Etac = e0*(1 - x^2) fit = FindFit[data, Etac,
>a, t, Method -> "LevenbergMarquardt"]
<error messages snipped>
While FindFit is a fairly powerful routine that often finds the
best fit parameters with no help, there are also a great many
problems where you will need to supply some help.
To make effective use of FindFit you really do need to look at
the documentation. Pay particular attention to the Possible
Issues section at the bottom of the documentation page that
talks about starting values. For non-linear problems with
special functions, good selection for starting values is often
key. The default starting values are often not adequate and lead
to the error messages you saw.
Other things you can do is add constraints to the parameters so
that FindFit will not try values that do not lead to real values
using your model.
Other documentation you should read and understand to use
functions like FindFit effectively are the tutorials on
constrained and unconstrained optimization. Links to these
tutorials can be found at the bottom of the documentation page
for FindFit
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web