From 6cb18b34fb55e13937fdfe61eb2f2915cb9b0794 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Scylla=29?=
 <stephane.adjemian@univ-lemans.fr>
Date: Wed, 11 Dec 2013 11:27:19 +0100
Subject: [PATCH] Added the possibilty to set the initial condition of the
 (stochastic) extended path simulations with the histval block.

---
 matlab/ep/extended_path.m | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/matlab/ep/extended_path.m b/matlab/ep/extended_path.m
index 01b964fe3..0efdfeb12 100644
--- a/matlab/ep/extended_path.m
+++ b/matlab/ep/extended_path.m
@@ -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.
-- 
GitLab