MathGroup Archive 2005

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

Search the Archive

Re: FindMinimum is not obeying my bounds


On 30 Nov 2005, at 14:07, Chris Chiasson wrote:

> Dear MathGroup,
>
> FindMinimum is not obeying my bounds:
>
> In[1]:=
> FindMinimum[(x-1)^2,{x,-80,-100,-70}]
> Out[1]=
> {0.,{x\[Rule]1.}}
>
> Version Number: 5.2.0.0
> Platform: Windows
>
> How does this turn out on your computers?
>
> Regards,
> --
> http://chrischiasson.com/contact/chris_chiasson
>


Yes, there is definitely something funny here, for note the following:


FindMinimum[(x-1)^2,{x,-80,-100,-70}]


{0.,{x->1.}}


FindMinimum[Expand[(x-1)^2],{x,-80,-100,-70}]


The point -70. is at the edge of the search region in coordinate 1and  
the computed search direction points outside the region.

{5041.,{x->-70.}}

I would say this indicates a bug, wouldn't you? (This is with  
Mathematica 5.1 for Mac OS X).

Actually, I think problems with polynomial input and restrictions are  
better done by Minimize:


Minimize[{(x - 1)^2, -100 <= x <= -70}, x]


{5041, {x -> -70}}

Andrzej Kozlowski




  • Prev by Date: Re: FindMinimum is not obeying my bounds
  • Next by Date: Re: MiniMaxApproximation question
  • Previous by thread: FindMinimum is not obeying my bounds
  • Next by thread: Re: FindMinimum is not obeying my bounds