From: Muhammad on
Hello,

Say I have a Rosenbrock function (n=2) and I want to see each iteration when I use fminsearch(ros,x0)

How can I do that?

Thanks
From: Alan Weiss on
Muhammad wrote:
> Hello,
>
> Say I have a Rosenbrock function (n=2) and I want to see each iteration
> when I use fminsearch(ros,x0)
>
> How can I do that?
>
> Thanks
Set the Display option to 'iter', as shown in
http://www.mathworks.com/access/helpdesk/help/techdoc/math/f2-14970.html#f2-23135

Alan Weiss
MATLAB mathematical toolbox documentation
From: James Allison on
The quickest way to see a plot of this is to type bandem at the command
prompt, then click simplex. Or, to have more control, you could specify
a plot function ('PlotFcns' with optimset).

-James

Alan Weiss wrote:
> Muhammad wrote:
>> Hello,
>>
>> Say I have a Rosenbrock function (n=2) and I want to see each
>> iteration when I use fminsearch(ros,x0)
>>
>> How can I do that?
>>
>> Thanks
> Set the Display option to 'iter', as shown in
> http://www.mathworks.com/access/helpdesk/help/techdoc/math/f2-14970.html#f2-23135
>
>
> Alan Weiss
> MATLAB mathematical toolbox documentation
From: Muhammad on
James Allison <james.allison(a)mathworks.com> wrote in message <hm0prb$qc7$1(a)fred.mathworks.com>...
> The quickest way to see a plot of this is to type bandem at the command
> prompt, then click simplex. Or, to have more control, you could specify
> a plot function ('PlotFcns' with optimset).
>
> -James
>
> Alan Weiss wrote:
> > Muhammad wrote:
> >> Hello,
> >>
> >> Say I have a Rosenbrock function (n=2) and I want to see each
> >> iteration when I use fminsearch(ros,x0)
> >>
> >> How can I do that?
> >>
> >> Thanks
> > Set the Display option to 'iter', as shown in
> > http://www.mathworks.com/access/helpdesk/help/techdoc/math/f2-14970.html#f2-23135
> >
> >
> > Alan Weiss
> > MATLAB mathematical toolbox documentation


Thanks a lot. Your recommendations helped me a lot. I've done it.