MathGroup Archive 2009

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

Search the Archive

FindFit constrains when parameters are in table form?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg105778] FindFit constrains when parameters are in table form?
  • From: Vindhya Mishra <vindhya.mishra at gmail.com>
  • Date: Fri, 18 Dec 2009 06:24:08 -0500 (EST)

Hi
   I have a problem with specifying constrants and initial values for
FindFit, when the parameters are defined as a table.

This is my model and the parameters (params)

model = a*(.5 + Sum[b[i]*Cos[2.00000*i*t*Pi/180], {i, 1, 500}]);
params = Join[{a}, Table[b[i], {i, 1, 500}]]
B[i_] = FindFit[data, model, params, t, MaxIterations -> 1000, AccuracyGoal
-> 4]

However I would like to constrain the b[i] parameters to be less than one.
Also if possible , that b[n+1]<=b[n]. What should the syntax be for this?
The number of parameters is too large to specify the constrains
individually.

Thanks,

VM



  • Prev by Date: Bug with Regular Expression?
  • Next by Date: Re: MathematicaMark7 compare with AMD 3.2 GHz
  • Previous by thread: Bug with Regular Expression?
  • Next by thread: Re: MathematicaMark7 compare with AMD 3.2 GHz