-
Notifications
You must be signed in to change notification settings - Fork 122
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
Possible bug: different comments/formulations but duplicated code in write_net_revenue #115
Comments
This may be related to lines in
|
Thanks @cfe316 .... Taking a look and fixing shortly. |
I don't know if somehow the math works out so that it doesn't need to be scaled. As it's written it's confusing. If it's true that it doesn't need to be scaled then the two lines should probably just be combined; no need to have two copies. |
Even with the recent vectorizations, this issue stands. Are CO2 being accounted for correctly? |
They can be combined; but they will disappear if my new carbon cap formulation is added in. |
This will be fixed in |
@xuqingyu , is this the PR that you once retracted? Or, is the fix merged already? |
Because I don't see the duplication any more, it now appears under |
This seems resolved? |
Reviewing and merging PR #610 will close this issue |
Merge of PR #610 addresses this. |
In write_net_revenue.jl the same expression is written twice for two different values of the
CO2Cap
setting:the comments are different - one says "Mass based" and one is "Demand + rate based" so it's suspicious to me that the mathematical expressions are the same. I haven't looked into this in detail, so maybe these two should really be the same mathematically. If so, it could be good to have a note that these are really the same, and even better, combine the two expressions with
if setup["CO2Cap"] == 1 || setup["CO2Cap"] == 2
.The text was updated successfully, but these errors were encountered: