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

Testsuite: add tolerance in neo_growth_ramsey_k_order.mod

My guess is that the slight variations across runs are probably due to
multithreading (depending on the order in which threads terminate, the
aggregation of results is done in a different order, which can lead to small
floating point differences).
parent f4e1dcd5
Branches
Tags
No related merge requests found
Pipeline #6508 passed
...@@ -35,7 +35,7 @@ evaluate_planner_objective; ...@@ -35,7 +35,7 @@ evaluate_planner_objective;
[condWelfare, U_dynpp, W_dynpp, U_dyn, W_dyn] = k_order_welfare(oo_.dr, M_, options_); [condWelfare, U_dynpp, W_dynpp, U_dyn, W_dyn] = k_order_welfare(oo_.dr, M_, options_);
if condWelfare~=oo_.planner_objective_value.conditional.steady_initial_multiplier if abs(condWelfare - oo_.planner_objective_value.conditional.steady_initial_multiplier) > 1e-13
error('Inaccurate conditional welfare with Lagrange multiplier set to its steady-state value'); error('Inaccurate conditional welfare with Lagrange multiplier set to its steady-state value');
end end
if ~exist(['neo_growth_k_order' filesep 'Output' filesep 'neo_growth_k_order_results.mat'],'file'); if ~exist(['neo_growth_k_order' filesep 'Output' filesep 'neo_growth_k_order_results.mat'],'file');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment