[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Optimset applied to fminunc
From: |
siko1056 |
Subject: |
Re: Optimset applied to fminunc |
Date: |
Fri, 11 May 2018 10:38:06 -0700 (MST) |
lucam1968 wrote
> Hello,
>
> 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
> that
> 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?
>
> Thanks,
>
> Luca
Dear Luca,
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
with
more off
And you might see the iteration progress when it happens.
HTH,
Kai
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html