sbenthall / SHARKFin

Simulating Heterogeneous Agents with Finance
7 stars 5 forks source link

Lucas 0 should use infinite horizon agents #186

Closed sbenthall closed 1 year ago

sbenthall commented 1 year ago

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 commented 1 year ago

A few elements to this:

alanlujan91 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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