HARK icon indicating copy to clipboard operation
HARK copied to clipboard

PerfForesightConsumerType can't handle CRRA of 1.0

Open DominicWC opened this issue 1 year ago • 3 comments

Describe the bug Trying to run the .solve() method for an PerfForesightConsumerType throws an error when CRRA is 1.0. Other agent types don't throw this error.

To Reproduce from HARK.ConsumptionSaving.ConsIndShockModel import PerfForesightConsumerType agent=PerfForesightConsumerType() agent.CRRA=1.0 agent.solve()

Expected behavior The model should be able to compile without errors.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Browser Firefox
  • Econ-ARK and Python version 0.13.0 and Python 3.9.13

Additional context

DominicWC avatar Jun 28 '23 00:06 DominicWC