MathGroup Archive 2009

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

Search the Archive

Re: FindRoot inside FindMinimum

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100434] Re: FindRoot inside FindMinimum
  • From: dh <dh at metrohm.com>
  • Date: Wed, 3 Jun 2009 05:28:48 -0400 (EDT)
  • References: <h050l6$ac5$1@smc.vnet.net>


Hi,

here is a simple example for FindRoot inside FindMinimum. Note that we 

eunsure that f is only called with a numeric argument.

=====================================

f[a_?NumericQ] := Abs[x /. FindRoot[x + a, {x, 1}]];

FindMinimum[

  f[a]

  , {a, 2}]

====================================

Daniel



"Versiane Leão (UFOP)" wrote:

> I would like some help with a problem I'm facing using mathematica to

> model chemical kinetics. The specific question is about the use of

> FindRoot and FindMinimum. In the code attached I am trying to solve an

> non linear equation (blue) using FindRoot inside a FindMinimum loop (to

> fit 3 differents constant). As I am not successuful with the

> implementaion I wondering if FindRoot can be used insde FindMinimum. Is

> that possible? Can anyone can help.  

> 

> 

> Mixed control - kinetics.pdf

> http://docs.google.com/fileview?id=F.295c483e-bb6d-4c74-808b-06be644a876c

> 

>  

> Best regards,

> 

> --

> Professor Versiane Albis Le=E3o

> Laborat=F3rio de Hidrometalurgia/ Hydrometallurgy laboratory

> Departamento de Engenharia Metal=FArgica e de Materiais / Metallurgical and=

>  Materials Engineering

> Address: Campus Morro do Cruzeiro, s.n.- 35400-000, Ouro Preto, MG, Brazil

> Tel/Phone: +55.31.3559.1102

> Fax: +55.31.3559.1561

> Email alternativo: va.leao at uol.com.br

> skype:versiane.albis.leao

> 




  • Prev by Date: Re: Graphics saving nightmare
  • Next by Date: Re: proper way of posing a non-autonomous ode in mathematica?
  • Previous by thread: FindRoot inside FindMinimum
  • Next by thread: Re: Print numbers to ASCII file with precise column widths