Skip to content
Prev 244044 / 398503 Next

Optimize multiple variable sets

On Dec 6, 2010, at 15:15 , Jonathan P Daily wrote:

            
You're wrong --- slightly. The returned $minimum is the x, the y is  $objective. But the interval given doesn't bracket the minimum, as you'll clearly see if you put int=c(-10,10). The only puzzling bit is that optimize() doesn't actually return the left endpoint, but rather the first evaluation point inside the interval. The rather wide tolerance of .Machine$double.eps^0.25  == 0.0001220703 probably plays a role in this.