MathGroup Archive 2007

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

Search the Archive

Two successive FindMinimum -> Bug?

  • To: mathgroup at
  • Subject: [mg74312] Two successive FindMinimum -> Bug?
  • From: Dmitry Garanin <dgaranin at>
  • Date: Sun, 18 Mar 2007 00:47:26 -0500 (EST)

Hi All,

I am trying to solve a problem that requires application of FindMinimum (or similar rutines two times and it does not work. Here is a simplified example:

fxt[x_,t_]=(x^2-t)^2  (* Searching for a minimal t for which fxt turns to zero *)
tminx[x_]:=t/.FindMinimum[fxt[x,t],{t,1}][[2]] (* Finding the minimizing t for a given x *)
tminabs=FindMinimum[tminx[x],{x,1}]  (* Minimizing this t with respect to x. The result should be tminabs=0 at x=0 *)

The last command here does not work since, evidently tminx[x] (that is x^2 for us humans) is not treated as a regular function.

Is there a bug here or I am doing something wrong??

Help is appreciated.

  • Prev by Date: Re: How to choose real positive solutions?
  • Next by Date: Re: Interpolating Function
  • Previous by thread: a definite integral
  • Next by thread: Re: Two successive FindMinimum -> Bug?