> I am quite new to Octave and provided I have a quite "heavy" optimisation
> problem (> 2 hours machine running time).
> I would like to print the iteration # during the running of fminunc so
> I can check the progress made. however, I do not seem to succeed - i.e.
> nothing is printed:
> options = optimset('Display', 'iter', 'MaxIter', 50);
> [nn_params, cost] = fminunc(costFunction, initial_nn_params, options);
> Any idea on how can I solve that?
Which Octave version are you running? In versions < 4.4.0 the pager is
active by default. This means, that the output of the computation is
deferred until it's done. To avoid this, you should start your computation
And you might see the iteration progress when it happens.
> Hi Kai,
> Thank you for your reply.
> I am running the 4.2.2 version on a Mac and I do not seem to be able to
> visualise the number of iteration the fminunc is currently processing even
> after running the
> more off
> command. What I would like to have is something similar to the Iterative
> Display shown on
> https://www.mathworks.com/help/optim/ug/iterative-display.html, any idea
> how I can get on my version of Octave?