Skip to content
Snippets Groups Projects
Commit db99b93b authored by Marco Ratto's avatar Marco Ratto Committed by Johannes Pfeifer
Browse files

missing line that stores info on violation of constraint in expectation...

missing line that stores info on violation of constraint in expectation (needed to check for periodic solutions)

(cherry picked from commit b0ce054c)
parent 5c6d7322
Branches
Tags
1 merge request!2102Port recent bugfixes to 5.x
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment