-
Notifications
You must be signed in to change notification settings - Fork 138
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
OK to remove sefe and fete? #931
Comments
I use them in ECEMF code that will be soon merged to REMIND, and ARIADNE uses them also in other code that should be also merged to REMIND. I just didn't do that yet as this was a much wider change to the model and R libraries than simply adding a new set. |
But you can still use |
I could, but this would force me to control the |
For example, check the FE balance equations in the demand modules.
Referring to For parameters and variable bounds this is even worst, as you need to add an extra loop over
you need to write:
|
I disagree. I think having just one set linking
Because you defined them one dimension short.
works just fine (at no extra cost of memory). I would suggest we ask Lavinia to make a ruling on this. In my view it is a deviation from established REMIND coding practice. We should be positive it is not something we do not want, before lots of code gets merged. Is there already As a general note, you can use mappings directly as index lists, without the dollar notation, shortening code and improving readability.
|
@LaviniaBaumstark, see discussion above. TL;DR
|
If you want to follow a consistent naming convention you need to firstly rename the |
By the way, including extra unnecessary dimensions to any parameter or variable, even if it is a one to one relationship, increases memory usage (not substantially, but it does), code length, reduces readability and requires additional filtering in R reporting code. |
Yes, I know. But from a code reading perspective it is usually clearer to instate which dimensions are actually controlled by the sum, versus which ones are controlled by some other part of the equation. |
I disagree. I am not defining one dimension short my parameter, because in my case there is no possible relationship between the |
I'm not much here or there in this issue, just stumbled on the sets while reviewing Simon's code. If it (the ECEMF and ARIADNE code) gets merged, then it should get merged as a positive decision to do things this way. |
You added these two sets a while back
remind/core/sets.gms
Lines 2504 to 2505 in 043449b
but they are used nowhere. Also they don't comply to the naming convention (no sacred "2" in there) and is there a case where
se2fe
can't be used with eitherentySE
orte
ignored?OK to remove them?
The text was updated successfully, but these errors were encountered: