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

Improve current IRR implementation #1

Open
malexejev opened this issue May 14, 2018 · 0 comments
Open

Improve current IRR implementation #1

malexejev opened this issue May 14, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@malexejev
Copy link
Owner

malexejev commented May 14, 2018

Especially consider cases of multiple roots.
As stated in http://www.utstat.utoronto.ca/~alexander/irr-soln.pdf, it may be a good idea to

  1. modify equation into "canonical" form
    • there is more that 1 form to experiment with, for example depending on the base date
    • may also affect solver performance
  2. add ndpv(x) > 0 condition on valid root, or "ascending curve" criterion
  3. descend from the right side to find the largest valid root
  4. first group and sum transactions by date to improve performance

But, before doing any work on this topic, I need to see how my bond pricing curves look like. Maybe its not yet an issue in my situation.

@malexejev malexejev added the enhancement New feature or request label May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant