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

Make add_stable_points optional in IndShockConsumer #1344

Closed
Mv77 opened this issue Aug 24, 2023 · 8 comments
Closed

Make add_stable_points optional in IndShockConsumer #1344

Mv77 opened this issue Aug 24, 2023 · 8 comments

Comments

@Mv77
Copy link
Contributor

Mv77 commented Aug 24, 2023

The solver for our most widely used class IndShockConsumerType calculates various points of theoretical interest via its method add_stable_points.

solution = self.add_stable_points(solution)

@mnwhite recently pointed out that this method can take up to 70% of the total time that it takes to solve a model.

These points are often not needed and, as user, I would like to have the option to not try to find them if I am doing structural estimation or calculating a Jacobian.

I want to propose that we disable the calculation of these points in the default solver, keeping them as an option to be activated by the user if he wants to calculate them.

@Mv77
Copy link
Contributor Author

Mv77 commented Aug 24, 2023

Marking with high priority as this is taking up 70% of the computing time of our most popular agent type.

@mnwhite
Copy link
Contributor

mnwhite commented Aug 24, 2023 via email

@llorracc
Copy link
Collaborator

llorracc commented Aug 24, 2023 via email

@mnwhite
Copy link
Contributor

mnwhite commented Aug 24, 2023 via email

@Mv77
Copy link
Contributor Author

Mv77 commented Aug 24, 2023

An issue is that the stable points are being searched for even in life cycle calibrations.

@mnwhite
Copy link
Contributor

mnwhite commented Aug 24, 2023 via email

@llorracc
Copy link
Collaborator

llorracc commented Aug 24, 2023 via email

@mnwhite
Copy link
Contributor

mnwhite commented Jun 14, 2024

This was taken care of a while back, closing.

@mnwhite mnwhite closed this as completed Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants