MathGroup Archive 2009

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

Search the Archive

no message from Minimize[] on a weird function(x^x) !?!

Hello MathGroup:

I have:


What makes this a weird function is that when x<0, the function is
discontinuous and non-differentiable and has a global minimum at -1.

To answer the question: "what is the minimum of this function", I

FindMinimum[f[x],{x,2}] (* this appears correct *)
> {0.692201, {x -> 0.367879}}
FindMinimum[f[x],{x,2}] (* this complains about the gradient, but
appears correct *)
> FindMinimum::nrgnum: The gradient is not a vector of real numbers at {x} = {-1.}. >>
> {-1., {x -> -1.}}
NMinimize[f[x], x] (* this gives the minimum in the positive domain *)
> {0.692201, {x -> 0.367879}}
Minimize[f[x], x] (* this gives no answer and no error message *)
> Minimize[x^x, x]

Is this expected behavior?


Roger Williams
Franklin Laboratory

  • Prev by Date: Re: please is it possible with mathematica, thank you!
  • Next by Date: Could someone run this on Mathematica 7.0?
  • Previous by thread: Re: follow up on pde nonlinear modeling
  • Next by thread: Re: no message from Minimize[] on a weird function(x^x) !?!