From 908c0bdc072de9b4f9fc2b1223821288cc4f2b7b Mon Sep 17 00:00:00 2001 From: Thore Kockerols Date: Tue, 3 Dec 2024 10:27:42 +0000 Subject: [PATCH] fail fast solver for scale == 1 --- src/MacroModelling.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MacroModelling.jl b/src/MacroModelling.jl index f3711faa..ea1ebe61 100644 --- a/src/MacroModelling.jl +++ b/src/MacroModelling.jl @@ -3213,11 +3213,11 @@ function solve_steady_state!(𝓂::ℳ, symbolic_SS, Symbolics::symbolics; verbo solved_scale = 0 # range_length = [ 1, 2, 4, 8,16,32,64,128,1024] scale = 1.0 - fail_fast_solvers_only = true + # fail_fast_solvers_only = true # TODO: try have this run for 1000 and and use closest_solution based on the previous result and not on the cache. that way you dont crowd out good and diverse solutions in the cache and make sure he finds the other SS. rely on previous commit for way of implementing closest_solution while range_iters <= (cold_start ? 1 : 500) && !(solution_error < 1e-12 && solved_scale == 1) range_iters += 1 - # fail_fast_solvers_only = scale == 1.0 ? false : true + fail_fast_solvers_only = scale == 1.0 ? false : true # println(range_iters) # println(scale) # println(solved_scale)