Added the possibilty to set the initial condition of the (stochastic) extended path simulations with the histval block.

time-shift
Stéphane Adjemian (Scylla) 2013-12-11 11:27:19 +01:00
parent cd3b5bf3d9
commit 6cb18b34fb
1 changed files with 5 additions and 1 deletions

View File

@ -46,7 +46,11 @@ dynatol = options_.dynatol;
% Set default initial conditions.
if isempty(initial_conditions)
initial_conditions = oo_.steady_state;
if isempty(M_.endo_histval)
initial_conditions = oo_.steady_state;
else
initial_conditions = M_.endo_histval;
end
end
% Set maximum number of iterations for the deterministic solver.