From db99b93bf49e91d8f568273ec56483478792b0d3 Mon Sep 17 00:00:00 2001 From: Marco Ratto <marco.ratto@ec.europa.eu> Date: Tue, 15 Nov 2022 23:03:56 +0100 Subject: [PATCH] missing line that stores info on violation of constraint in expectation (needed to check for periodic solutions) (cherry picked from commit b0ce054c00a436b08a55ba1d5a35f43172836fce) --- matlab/+occbin/solve_two_constraints.m | 1 + 1 file changed, 1 insertion(+) diff --git a/matlab/+occbin/solve_two_constraints.m b/matlab/+occbin/solve_two_constraints.m index 55fff162d7..80744ac509 100644 --- a/matlab/+occbin/solve_two_constraints.m +++ b/matlab/+occbin/solve_two_constraints.m @@ -234,6 +234,7 @@ for shock_period = 1:n_shocks_periods err_relax = err_relaxed_constraint_new(relaxed_constraint_new & my_binding_indicator(:)); max_err(iter) = max(abs([err_violation;err_relax])); regime_change_this_iteration = true; + regime_violates_constraint_in_expectation(iter) = any(binding_constraint_new & ~binding_indicator(:)); else regime_change_this_iteration = false; max_err(iter) = 0; -- GitLab