Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Constraints to parameters in FindFit?

  • To: mathgroup at
  • Subject: [mg51227] Re: Constraints to parameters in FindFit?
  • From: p-valko at (Peter Valko)
  • Date: Sat, 9 Oct 2004 04:18:43 -0400 (EDT)
  • References: <ck5e57$oio$>
  • Sender: owner-wri-mathgroup at

For sign restiction an old trick is to use instead of paramold the
expression  Exp[paramnew] or -Exp[paramnew] in your model, and search
for paramnew (instead of paramold).


Jill Foley <efoley at> wrote in message news:<ck5e57$oio$1 at>...
> Hi All,
> I am using FindFit to fit a series of peaks to some data. I would like 
> to be able to constrain some of the parameters of my fit to correspond 
> to physical reality. For example, some peaks should have a negative 
> amplitude, others positive, where the amplitudes are the parameters 
> that Mathematica is finding in FindFit. The peaks are all very near 
> each other, so without any constraint, it is making the wrong ones 
> negative. I'd like to specify that a given parameter should always be 
> negative. I am already giving an initial guess of the proper sign, but 
> it doesn't fix the problem.
> Please advise - Thanks!
> Jill.

  • Prev by Date: Mini-Courses Provide Specialized Mathematica Training Online
  • Next by Date: symbol replace
  • Previous by thread: Re: Constraints to parameters in FindFit?
  • Next by thread: Re: Re: Constraints to parameters in FindFit?