"wafaa kassir" wrote in message <o0i5nf$afm$1@newscl01ah.mathworks.com>...
> Hello,
> it's possible to print the optimization iterations in a text file? (for fminunc for example)
> I know that there is an option to display it on the secreen but I have no idea if there is such an option for the print.
>
> thanks in advance
>
> Best regards
>
I would go (and have used previously...) for the simple solution of adding
a file-handle to your target function, and then write the current parameter
array and the current function value at each function evaluation, occasionally
I might have gone through a slightly worse trail and used a file-name variable
and opened(...,'a')-written-closed the file inside the target function. That have
been simple and unsophisticated way to get the task done.
HTH
> Hello,
> it's possible to print the optimization iterations in a text file? (for fminunc for example)
> I know that there is an option to display it on the secreen but I have no idea if there is such an option for the print.
>
> thanks in advance
>
> Best regards
>
I would go (and have used previously...) for the simple solution of adding
a file-handle to your target function, and then write the current parameter
array and the current function value at each function evaluation, occasionally
I might have gone through a slightly worse trail and used a file-name variable
and opened(...,'a')-written-closed the file inside the target function. That have
been simple and unsophisticated way to get the task done.
HTH