Fixed integration test.
Need to increase accuracy (set tolf 1e-9 instead of 1e-6) if some endogenous variables appear under logs (which is the case for x3).time-shift
parent
8e1528c1cb
commit
ad73aac0ad
|
@ -122,6 +122,7 @@ init = ones(10, M_.endo_nbr+M_.exo_nbr);
|
|||
initialconditions = dseries(init, 2000Q1, vertcat(M_.endo_names,M_.exo_names));
|
||||
|
||||
// Simulate the model for 500 periods
|
||||
options_.solve_tolf = 1e-9;
|
||||
TrueData = simul_backward_model(initialconditions, 5000);
|
||||
TrueData_ = copy(TrueData);
|
||||
|
||||
|
@ -144,4 +145,4 @@ fprintf('Max. abs. error is %s.\n', num2str(max(abs(TrueData.x3.data(12:end)-Tru
|
|||
|
||||
if max(abs(TrueData.x3.data(12:end)-TrueData_.x3.data(12:end)))>1e-5
|
||||
error('equation.evaluate() returned wrong values.')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue