Re: Algorithm in NDSolve and FindMinimum
- To: mathgroup at smc.vnet.net
- Subject: [mg70163] Re: Algorithm in NDSolve and FindMinimum
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Fri, 6 Oct 2006 01:58:16 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <eg2eg8$78u$1@smc.vnet.net>
Texas A&M wrote: > FindMinimum[ > Block[{}, > if1 = NDSolve[{fun[z1] == 0, h[0] == unknown1, h'[0] == 0}, > h, {z1, 0, a}]; vans1 = (h[a])^2 /. if1[[1]]; > vans1], {unknown1, 0.1, 1.2}] > > What this command really does? > Do NDSolve (or FindMinimum) always use the same Algorithm? > > Thanks, > > Kai > > Not sure what you are trying to do. As written, the Block function is useless, you have not fed NDSolve with a differential equation, and the range of the variable is not made of numeric values. NDSolve[{fun[z1] == 0, h[0] == unknown1, Derivative[1][h][0] == 0}, h, {z1, 0, a}] --> NDSolve::"ndode" : "Input is not an ordinary differential equation. Jean-Marc