Skip to content
Snippets Groups Projects
Commit b0ce054c authored by Marco Ratto's avatar Marco Ratto
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)
parent c74cba4a
Branches
Tags
1 merge request!2101two small bug fixes
......@@ -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