Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model runs indefinitely without converging #40

Open
TamerKhraisha opened this issue Jul 19, 2019 · 1 comment
Open

Model runs indefinitely without converging #40

TamerKhraisha opened this issue Jul 19, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@TamerKhraisha
Copy link

KrusellSmith

# Construct the economy, make an initial history, then solve 

KSAgent.getEconomyData(KSEconomy) # Makes attributes of the economy, attributes of the agent

KSEconomy.makeAggShkHist() # Make a simulated history of the economy

# Solve macro problem by finding a fixed point for beliefs

KSEconomy.solve() # Solve the economy using the market method. 
# i.e. guess the saving function, and iterate until a fixed point
@TamerKhraisha TamerKhraisha changed the title Model runs infinitely without converging Model runs indefinitely without converging Jul 19, 2019
@llorracc llorracc added the bug Something isn't working label Jul 19, 2019
@llorracc llorracc self-assigned this Jul 19, 2019
@TaoWangEcon
Copy link

@TamerKhraisha

As an easy fix for you to let the codes to run through, you may want to set a higher tolerance level for the solver. Specifically, put one more line of code before KSEconomy.solve(): KSEconomy.tolerance = 0.01. Currenctly, the default tolerance level is 0.00001. "Tolerance" is the attribute that governs the degree of converenge for the solver of the market class to stop.

But we will try to provide a further explanation when it is understood better why the same configurations that used to work now takes more time to converge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants