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

Lucas 0 should use infinite horizon agents #186

Closed
sbenthall opened this issue Dec 15, 2022 · 4 comments · Fixed by #194 or econ-ark/HARK#1221
Closed

Lucas 0 should use infinite horizon agents #186

sbenthall opened this issue Dec 15, 2022 · 4 comments · Fixed by #194 or econ-ark/HARK#1221
Assignees

Comments

@sbenthall
Copy link
Owner

For the simplest Lucas case, the agents are infinite horizon agents.

cycles=0 must be passed to the solve method.

This can profoundly impact the run-time of our simulations, and is a good reason to break off the solution step into a subprocess that can be precomputed for equivalent ex ante populations before running ex post simulations.

This will probably require a core HARK improvement to allow for exported serialized solutions (AgentPopulation Solutions?)

@sbenthall sbenthall added this to the v0.4 FIRE SHARK milestone Dec 15, 2022
@sbenthall sbenthall changed the title Lucas 0 should use infnite horizon agents Lucas 0 should use infinite horizon agents Dec 15, 2022
@sbenthall
Copy link
Owner Author

A few elements to this:

@sbenthall sbenthall self-assigned this Jan 27, 2023
@alanlujan91
Copy link
Collaborator

At least for Lucas0 definition, since it's a trivial population setting cycles = 0 might increase the time of creating one solution, but there is only 1 solution to compute. So one solution might take longer, but overall it should probably take less time to compute the AgentPopulationSolution object.

@sbenthall
Copy link
Owner Author

Let's do this locally in the pure python approach first.

Then with advice from Gary and Bill write scripts that compute the solution and save them as a file.

@alanlujan91
Copy link
Collaborator

This creates a lot of issues with self.Rfree being a list instead of a float, will have to check if this is local bug or HARK bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants