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

pm_SEprice assignment repeated unnecessarily all over the model. #1149

Open
Renato-Rodrigues opened this issue Jan 11, 2023 · 0 comments
Open
Labels
code cleaning Code that could/should be cleaned up

Comments

@Renato-Rodrigues
Copy link
Member

There is unnecessary code repetition for the definition of pm_SEprice in the model.

It is currently repeated in multiple places in the model. However, most probably only two assignments are really required: one at the core/preloop, and another in the core/postsolve.

Repeating the assignment at every power sector module realization, and at every presolve is quite unnecessary, extends the code length and can create potential oversight issues on any future change that can affect this parameter.

@Renato-Rodrigues Renato-Rodrigues added the code cleaning Code that could/should be cleaned up label Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleaning Code that could/should be cleaned up
Projects
None yet
Development

No branches or pull requests

1 participant