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

324 pass annuity of capex to optimize function instead of capex #325

Merged

Conversation

markushal
Copy link
Collaborator

No description provided.

@markushal markushal linked an issue Apr 16, 2024 that may be closed by this pull request
Copy link
Collaborator Author

@markushal markushal left a comment

Choose a reason for hiding this comment

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

@wingechr can you check this please? I had to mess around in the API a bit because the optimize function needs annuities of capex, not capex

Comment on lines +114 to +118
"CAPEX_A": annuity(
periods=proc_data["LIFETIME"],
rate=input_data["parameter"]["WACC"],
value=proc_data["CAPEX"],
),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@wingechr this is the interesting bit

Copy link
Collaborator

Choose a reason for hiding this comment

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

looks correct

@markushal markushal marked this pull request as ready for review April 16, 2024 15:57
@markushal markushal requested a review from wingechr April 17, 2024 07:18
@markushal markushal self-assigned this Apr 17, 2024
@wingechr wingechr merged commit c7edb96 into develop Apr 17, 2024
3 checks passed
@wingechr wingechr deleted the 324-pass-annuity-of-capex-to-optimize-function-instead-of-capex branch April 19, 2024 13:59
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

Successfully merging this pull request may close these issues.

pass annuity of capex to optimize function (instead of capex)
2 participants