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

IndexError when solving ConsPortfolioModel #1376

Open
sbenthall opened this issue Feb 1, 2024 · 2 comments
Open

IndexError when solving ConsPortfolioModel #1376

sbenthall opened this issue Feb 1, 2024 · 2 comments

Comments

@sbenthall
Copy link
Contributor

Trying to solve SequentialPortfolioConsumerType with the following parameters changed from the default:

CRRA=6.0,
DiscFac=0.9,
RiskyAvg=1.08,
RiskyStd=0.20,
PermShkStd=[0.1],
PermGroFac=[0.00],
UnempPrb=0.01
agent = SequentialPortfolioConsumerType(**agent_parameters)
agent.solve()

Results in this rather ugly and uninformative error:
https://gist.github.com/sbenthall/efc4e2610b2a2fe6590d12abf49b78b4

Looks like there's no well-defined optimal share value?
There probably should be a better error message for this.

@mnwhite
Copy link
Contributor

mnwhite commented Feb 1, 2024 via email

@sbenthall
Copy link
Contributor Author

Oh, the problem is PermGroFac=[0.00],, which is of course not a 'good' value for this parameter.

On the other hand, I put that value in by mistake while playing around with things, and discovering the problem would have been easier with a more informative error.

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

2 participants