Re: FindMinimum is not obeying my bounds
- To: mathgroup at smc.vnet.net
- Subject: [mg62664] Re: FindMinimum is not obeying my bounds
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Wed, 30 Nov 2005 05:40:38 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
On 11/30/05 at 12:07 AM, chris.chiasson at gmail.com (Chris Chiasson) wrote: >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? The same with 5.2 running on MacOS 10.4.3 My first reaction when I saw this was this is what should be expected of FindMinimum. However, on checking the documentation, I see the syntax you used should never go outside the bounds of -100 to -70. But, when I want to ensure these types of bounds are respected, I always use NMinimize, i.e., In[2]:=NMinimize[{(x - 1)^2, -100 <= x <= -70}, x] Out[2]={5041., {x -> -70.}} -- To reply via email subtract one hundred and four