Skip to content
Snippets Groups Projects
Verified Commit 85bea5a6 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

:bug: Fix crash of perfect foresight w/ expectation errors + marginal...

:bug: Fix crash of perfect foresight w/ expectation errors + marginal linearization + several learnt_in blocks
parent 08348dcc
No related branches found
No related tags found
No related merge requests found
Pipeline #11436 passed
...@@ -75,11 +75,11 @@ while info_period <= periods ...@@ -75,11 +75,11 @@ while info_period <= periods
options_.simul.last_simulation_period = dates(); options_.simul.last_simulation_period = dates();
if info_period > 1 && homotopy_completion_share < 1 && options_.simul.homotopy_marginal_linearization_fallback > 0 if info_period > 1 && homotopy_completion_share < 1 && options_.simul.homotopy_marginal_linearization_fallback > 0
marginal_linearization_previous_raw_sims.sim1.endo_simul = oo_.deterministic_simulation.sim1.endo_simul(:, info_period:end); marginal_linearization_previous_raw_sims.sim1.endo_simul = oo_.deterministic_simulation.sim1.endo_simul(:, increment+1:end);
marginal_linearization_previous_raw_sims.sim1.exo_simul = oo_.deterministic_simulation.sim1.exo_simul(info_period:end, :); marginal_linearization_previous_raw_sims.sim1.exo_simul = oo_.deterministic_simulation.sim1.exo_simul(increment+1:end, :);
marginal_linearization_previous_raw_sims.sim1.homotopy_completion_share = oo_.deterministic_simulation.sim1.homotopy_completion_share; marginal_linearization_previous_raw_sims.sim1.homotopy_completion_share = oo_.deterministic_simulation.sim1.homotopy_completion_share;
marginal_linearization_previous_raw_sims.sim2.endo_simul = oo_.deterministic_simulation.sim2.endo_simul(:, info_period:end); marginal_linearization_previous_raw_sims.sim2.endo_simul = oo_.deterministic_simulation.sim2.endo_simul(:, increment+1:end);
marginal_linearization_previous_raw_sims.sim2.exo_simul = oo_.deterministic_simulation.sim2.exo_simul(info_period:end, :); marginal_linearization_previous_raw_sims.sim2.exo_simul = oo_.deterministic_simulation.sim2.exo_simul(increment+1:end, :);
marginal_linearization_previous_raw_sims.sim2.homotopy_completion_share = oo_.deterministic_simulation.sim2.homotopy_completion_share; marginal_linearization_previous_raw_sims.sim2.homotopy_completion_share = oo_.deterministic_simulation.sim2.homotopy_completion_share;
else else
marginal_linearization_previous_raw_sims = []; marginal_linearization_previous_raw_sims = [];
......
...@@ -32,6 +32,12 @@ endval(learnt_in = 5); ...@@ -32,6 +32,12 @@ endval(learnt_in = 5);
LoggedProductivityInnovation = 1; LoggedProductivityInnovation = 1;
end; end;
shocks(learnt_in = 3);
var LoggedProductivityInnovation;
periods 4;
values 0.2;
end;
perfect_foresight_with_expectation_errors_setup(periods=200); perfect_foresight_with_expectation_errors_setup(periods=200);
perfect_foresight_with_expectation_errors_solver(homotopy_max_completion_share = 0.8, homotopy_marginal_linearization_fallback, steady_solve_algo = 13); perfect_foresight_with_expectation_errors_solver(homotopy_max_completion_share = 0.8, homotopy_marginal_linearization_fallback, steady_solve_algo = 13);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment