Re: Problem with Integrate and FindMinimum

*To*: mathgroup at smc.vnet.net*Subject*: [mg49591] Re: Problem with Integrate and FindMinimum*From*: "Curt Fischer" <crf3 at po.cwru.edu>*Date*: Sat, 24 Jul 2004 03:47:21 -0400 (EDT)*References*: <cdqpss$kh4$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

csg at umich.edu wrote: > Hi I'm having a problem with Mathematica. I'm trying to find the > minimum of a function f[a,b,...] defined as > > f[a,b,...]:=NIntegrate[h[x,a,b,...],{x,-inf,inf}] > > where h[x,a,b,...] is some complicated function. I'm trying to use > FindMinimum to find the values of a,b,... that minimize f[a,b,...] > but everytime I try to use Find Minimum I get the error message > "Inegrand h[] is not numerical at *some point r*". I'm running > Mathematica 5.0 student version at Windows XP. To address your problem it would be helpful to have your exact code, as you typed it into Mathematica. If what you wrote above is what you typed into Mathematica, you need to read the help browser, as you have many typos. -- Curt Fischer