econ-ark/HARK

Make `add_stable_points` optional in `IndShockConsumer`

Closed this issue · 8 comments

Mv77 commented

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 commented

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

Mv77 commented

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

This was taken care of a while back, closing.