MathGroup Archive 2010

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

Search the Archive

Re: How to stop Nminimize...

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110433] Re: How to stop Nminimize...
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Fri, 18 Jun 2010 01:24:02 -0400 (EDT)
  • References: <hvcdtu$5jh$1@smc.vnet.net>

f[x_, y_] := (x^2 + y^2)^2 + 20 Sin[x y] Sin[x - y];

pts = {};

Dynamic[ContourPlot[f[x, y], {x, -3, 3}, {y, -3, 3},
  Epilog -> Line[pts]]]


NMinimize[f[x, y], {{x, -3, 3}, {y, -3, 3}},
  EvaluationMonitor :> {AppendTo[pts, {x, y}]}];

Cheers -- Sjoerd

On Jun 17, 8:04 am, Ala_Yahoo <ala06w... at yahoo.de> wrote:
> Hello all together,
>
> I have a question about NMinimize function. There are some open source
> optimization softwares in which user can follow goal function during
> calculation.
> Is there any possibilities to follow goal function graphically with
> respect to time? or how could I stop NMinimize function for instance
> after one hour in order to observe the goal function?
>
> best regards
>
> Ala



  • Prev by Date: Re: Ballistic launch trajectory code
  • Next by Date: Re: Ballistic launch trajectory code
  • Previous by thread: How to stop Nminimize...
  • Next by thread: Ballistic launch trajectory code