* Fixed the evaluation of the distance to the deterministic steady
state in perfect_foresight_simulation.m (when options_.terminal_condition==2).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3299 ac1d8469-bf42-47a9-8791-bf33cf982152
algorithm) with the solution of the linearized model.
* Bug fixes
* Cosmetic changes.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3295 ac1d8469-bf42-47a9-8791-bf33cf982152
(the terminal condition is y_{T} = y^{\star}), other possible values
are 1 (terminal condition is y_{T+1}=y_{T}) and 2 (terminal
condition is y_{T+1}=TransitionMatrix*y_{T}, where TransitionMatrix
is given by the first order approximation of the reduced form model).
* Added mode options_.terminal_condition=2 in perfect_foresight_simulation.m.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3176 ac1d8469-bf42-47a9-8791-bf33cf982152
* Break Newton loop if err is NaN or if err is increasing (save useless iterations).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3152 ac1d8469-bf42-47a9-8791-bf33cf982152