MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

nonlinear fit question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60823] nonlinear fit question
  • From: Kevin Towles <kbt22 at drexel.edu>
  • Date: Thu, 29 Sep 2005 05:42:21 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

I am trying to do a nonlinear fit using a model I have developed.  My  
problem is that my model is discontinuous and I only want to allow  
the NonlinearFit function to search a range for the value of one of  
the parameters. The actual implementation would be something like:

NonlinearFit[data,Model[xVar,yParam],xVar,yParam]

but I want yParam to be confined to a range as: ymin <= yParam <= ymax

I tried using NonlinearFit[data,Model[xVar,yParam],xVar,{yParam, 
{ymin,ymax}}] but the function is obviously searching outside this  
range.  I know there is a good fit in the range that I am specifying,  
so I don't know why it insists on searching outside the start  
values.  Is there a way to confine my yParam?

Any help is greatly appreciated.

Kevin Towles


  • Prev by Date: Re: Bug in Mathematica ?
  • Next by Date: Re: Bug in Mathematica ?
  • Previous by thread: Re: Re: Sorting Strings: How and Why so f$&!ing hard?
  • Next by thread: Re: nonlinear fit question