Skip to content

Commit

Permalink
run it only once if finding the stst the first time
Browse files Browse the repository at this point in the history
  • Loading branch information
Thore Kockerols authored and Thore Kockerols committed Nov 11, 2024
1 parent fb8ec6b commit 5ca3ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MacroModelling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5ca3ea5

Please sign in to comment.