-
Notifications
You must be signed in to change notification settings - Fork 142
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
Using an out-of-scope variable - ref extensions #668
Comments
Good catch! The |
Actually, it is a nice feature and does make sense. Some one would like to add a ref extension without building a model. But it is just that the input to the |
Good point, if you like we can change the API of the |
Consider this - I have some new expansion planning model that I want to build from scratch (stand-anlone: think PowerModelsAnnex type) with data having additional fields. I would use the plain build_ref and add additional fields that include the expansion options into ref according to my need. |
Fair point, but why do you want to add these options via the |
Yes, but my use case was for GasModels. Basically I am reading in the static data using |
Sounds good. I am open to making this API change the new standard approach. |
Great, thanks |
@ccoffrin How do you make changes to the data if you have additional fields. For instance lets say you read in additional fields from the matpower extension format. Where does the code for making every additional field go? |
so far every set of data extensions have been associated with a specific problem definition. A |
closed in v0.16 |
PowerModels.jl/src/core/base.jl
Line 244 in d1ab450
@ccoffrin what is
pm
in the lineref_ext(pm)
. It is not in scope. But I guess the tests does not capture this.The text was updated successfully, but these errors were encountered: