FindMinimum Problem
- To: mathgroup at smc.vnet.net
- Subject: [mg44602] FindMinimum Problem
- From: Jiang Xiao <jiang.xiao at physics.gatech.edu>
- Date: Mon, 17 Nov 2003 03:38:37 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hi, all
I want to findminimum of a function f[x,a[0]]=x^2+a[0]*x over
{x,0,1}, where a[0] is the solution of a differential equation, say
{a'[z] = x*z, a[1]==1}. The code is
like,
FindMinimum[x^2+a[0]*x/.NDSolve[{a'[z]==x*z,a[1]==1},a,{z,0,1}],{x,0,1}]
now the problem is that I can run this code in mathematica 4.2, but
can't in mathematica 5.0, do anybody know what is the problem? or what
should I modify to do this FindMinimum in mathematica 5.0?
thanks,
Jiang