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

Move CSTWmarket into ConsAggShocksModel #54

Closed
mnwhite opened this issue Jun 6, 2016 · 1 comment
Closed

Move CSTWmarket into ConsAggShocksModel #54

mnwhite opened this issue Jun 6, 2016 · 1 comment

Comments

@mnwhite
Copy link
Contributor

mnwhite commented Jun 6, 2016

As is, cstwMPC defines the relevant Market subclass for doing consumption-saving problems with aggregate shocks (to find a dynamic general equilibrium). This class should be moved to ConsAggShocksModel (and renamed). Further, the relevant simulation (etc) methods should be moved to a ConsumerType extension in this module as well. cstwMPC.py should import these classes, and should only contain functions that could only plausibly be used for cstwMPC.

A necessary subtask of this is to rework the slope_prev and intercept_prev functionality, as storing these in a different module/namespace is clunky and weird. The dynamics calculator should be a class method, not a function; this will allow us to store the previous parameters inside the class.

@mnwhite
Copy link
Contributor Author

mnwhite commented Jun 13, 2016

Done in recent commit to comments-and-cleanup branch.

@mnwhite mnwhite closed this as completed Jun 13, 2016
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

No branches or pull requests

1 participant