From 5ca3ea5c4b6265b34284b5a32a89ae19efe099a3 Mon Sep 17 00:00:00 2001 From: Thore Kockerols Date: Mon, 11 Nov 2024 16:20:07 +0000 Subject: [PATCH] run it only once if finding the stst the first time --- src/MacroModelling.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MacroModelling.jl b/src/MacroModelling.jl index 77131b66..e228c48a 100644 --- a/src/MacroModelling.jl +++ b/src/MacroModelling.jl @@ -3199,7 +3199,7 @@ function solve_steady_state!(𝓂::ℳ, symbolic_SS, Symbolics::symbolics; verbo # range_length = [ 1, 2, 4, 8,16,32,64,128,1024] scale = 1.0 # 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 < 500 && !(solution_error < 1e-12 && solved_scale == 1) + while range_iters < (cold_start ? 1 : 500) && !(solution_error < 1e-12 && solved_scale == 1) range_iters += 1 # println(range_iters) # println(scale)