From 62b1ed79236162a4d81aad2b51070ee326c2d741 Mon Sep 17 00:00:00 2001 From: Michel Juillard Date: Sat, 21 Jan 2012 14:55:17 +0100 Subject: [PATCH] correcting bug in extended path and added a test --- matlab/ep/extended_path.m | 14 +++++++++++-- tests/ep/linear.mod | 41 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 tests/ep/linear.mod diff --git a/matlab/ep/extended_path.m b/matlab/ep/extended_path.m index e566145bd..beda19f10 100644 --- a/matlab/ep/extended_path.m +++ b/matlab/ep/extended_path.m @@ -70,7 +70,8 @@ end options_.minimal_solving_period = options_.ep.periods; % Get indices of variables with non zero steady state -idx = find(abs(oo_.steady_state)>0); +idx = find(abs(oo_.steady_state)>1e-6); +indx = find(abs(oo_.steady_state)<=1e-6); % Initialize the exogenous variables. make_ex_; @@ -228,7 +229,16 @@ while (t 1e-14 + error('extended path algorithm fails in ./tests/ep/linear.mod') +end \ No newline at end of file