econ-ark/HARK

PerfForesightConsumerType can't handle CRRA of 1.0

Opened this issue · 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

there's a lot of hardcoded 1.0 - self.CRRA throughout the code base. I'm surprised other models run for CRRA = 1.0