MathGroup Archive 2006

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

Search the Archive

Re: Points sampled by FindMinimum


Thanks for your responses. I see now that Mathematica is evaluating the
function at three nearby points as part of its finite-difference
approximation to the derivative.

Cheers,
Andrew


On Nov 9, 8:39 pm, "dimitris" <dimmec... at yahoo.com> wrote:
> See the following commands
>
> FindMinimum[func[x], {x, 0.1}, EvaluationMonitor :> Print[x]]
> 0.1
> 0.1
> 0.10000000149011612
> 0.6
> 0.6
> 0.6000000089406967
> 0.9999999776482598
> 0.9999999776482598
> 0.9999999925494206
> 0.9999999925494208
> 0.9999999925494208
> 1.000000007450582
>
> {1., {{a, {2, 28}} -> 0.9999999925494208}}
>
> FindMinimum[func[x], {x, 0.1}, StepMonitor :> Print[x]]
> 0.6
> 0.9999999776482598
> 0.9999999925494208
> {1., {{a, {2, 28}} -> 0.9999999925494208}}
>
> After read carefully the reply of Andrzej Kozlowski to a similar query
> of mine
> regarding FindRoot which appeared here
>
> http://groups.google.com/group/comp.soft-sys.math.mathematica/browse_...
>
> More specifiacally watch there he said that
>
> "... In general EvaluationMonitor (and also Print statement I add) will
> produce more
> values than StepMonitor, because it records each time the specified
> numerical
> function is evaluated. Sometimes to make one step in an iterative
> procedure you need to evaluate the function several times at
> different points (the standard example is when you need to compute a
> numerical derivative using finite differences) and all these
> computations will be part of one step (so will not be recorded by
> StepMonitor) but will be recored by EvaluationMonitor..."
> 
> Regards
> Dimitris


  • Prev by Date: Re: animation question
  • Next by Date: Re: Singularity-handling transformation employed by NIntegrate
  • Previous by thread: Re: Points sampled by FindMinimum
  • Next by thread: Re: Evaluating integral with varying upper limit?