Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: Points sampled by FindMinimum

  • To: mathgroup at
  • Subject: [mg71128] Re: Points sampled by FindMinimum
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at>
  • Date: Thu, 9 Nov 2006 03:37:31 -0500 (EST)
  • Organization: The Open University, Milton Keynes, UK
  • References: <eisfsu$mrp$>

Andrew Moylan wrote:
> Hi all,
> Please consider the following code, which asks FindMinimum to minimise
> a simple parabolic function while tracking at which which points
> FindMinimum evaluates the function:
> func[x_?NumericQ] := (Print[x]; 1 + (x - 1)^2)
> FindMinimum[func[x], {x, 0.1}]

The option *StepMonitor* is better suited to this purpose

func[(x_)?NumericQ] := 1 + (x - 1)^2
FindMinimum[func[x], {x, 0.1}, StepMonitor :> {Print[x]}]

 From In[1]:=

 From In[1]:=

 From In[1]:=



  • Prev by Date: Re: Insertion into sorted list
  • Next by Date: I could do with a list of geometric shape names can anyone help????
  • Previous by thread: Re: Points sampled by FindMinimum
  • Next by thread: Re: Points sampled by FindMinimum