From: Ala_Yahoo on
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

From: Sjoerd C. de Vries on
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...(a)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