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

feat: implement NPV function #95

Merged
merged 2 commits into from
Jul 27, 2021
Merged

feat: implement NPV function #95

merged 2 commits into from
Jul 27, 2021

Conversation

ToddFincannon
Copy link
Collaborator

@ToddFincannon ToddFincannon commented Jul 27, 2021

Fixes #94

This was a straightforward adaptation of the code for the TREND function with the added wrinkle of needing to generate two level vars instead of just one. This shows up when we add reference, but is otherwise unremarkable. The code for the NPV function is taken from the Vensim docs. I committed a test model that validates the expansion in the docs, but removed that in the final version, since we don't need it to validate SDEverywhere code generation.

@ToddFincannon ToddFincannon added this to the 0.6.0 milestone Jul 27, 2021
Copy link
Contributor

@chrispcampbell chrispcampbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I verified that the new npv test passes as expected. I'll merge this to develop shortly.

@chrispcampbell chrispcampbell changed the title Todd/94 npv feat: implement NPV function Jul 27, 2021
@chrispcampbell chrispcampbell merged commit 9fa17eb into develop Jul 27, 2021
@chrispcampbell chrispcampbell deleted the todd/94-npv branch July 27, 2021 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement NPV
2 participants