Skip to content

Commit

Permalink
if precompile = true, start from 0 init guess SS
Browse files Browse the repository at this point in the history
  • Loading branch information
thorek1 committed Nov 15, 2024
1 parent 6db4670 commit 8987351
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/MacroModelling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3635,6 +3635,13 @@ function solve_steady_state!(𝓂::ℳ; verbose::Bool = false)
end
end

# Zero initial value if startin without guess
for i in 1:2:length(closest_solution)
if !isfinite(sum(abs,closest_solution[i+1]))
closest_solution[i] = zeros(length(closest_solution[i]))
end
end

# println(closest_solution)

if all(isfinite,closest_solution[end]) && initial_parameters != closest_solution_init[end]
Expand Down

0 comments on commit 8987351

Please sign in to comment.