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
Remove duplicated discounting #1028
Conversation
The discounting is already taken care of by the list comprehension above. As it discount starting with the temporal distance of optimization start and investment period.
No changes in any tests needed.... Shouldn't this have an effect on the objective and therefore change the LP file for any Investment test with fixed costs? |
TODO: Adjust tests!
Yes, it should. I was a bit shocked that there is no effect at first, but a brief glimpse into the code shed some light on it:
Thus:
|
Fixed costs were not included in the converter test and thus changes in fixed costs discounting not tested before.
I updated the LP files and checked them roughly. I also added fixed costs to the multi-period converter tests, this way the changes for the discounting are also checked with "standard" components. |
Former zero floats are now zero integers in the LP file.
pytest is now failing due to changes in pyomo which sometimes prints zero integers instead of floats in the LP-files. Not sure if this should be done separately as it's unrelated changes... I fixed it now in this PR as it was only one LP file @p-snft, what do you think? |
I fixed the same thing in another branch. XD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
close #1019
Remove duplicated discounting for fixed costs.
The discounting is already taken care of as the discount starts with the temporal distance of optimization start and investment period.