-
Notifications
You must be signed in to change notification settings - Fork 15
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
Jd/fix cost functions #87
Conversation
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.
I think you're missing some code looks good aside from some duplication and maybe a bug thereby caused
return base_sys | ||
end | ||
|
||
function build_linear_fuel_test_sys(; kwargs...) |
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.
Nitpick: could eliminate duplication by defining a helper function
function build_cost_test_sys(gen_func; kwargs...)
...
test_gen = gen_func(node)
...
end
(or fold this into _build_cost_base_test_sys
) and then each of these is like
function build_linear_fuel_test_sys(; kwargs...) | |
build_linear_fuel_test_sys(; kwargs...) = | |
build_cost_test_sys(thermal_generator_linear_fuel; kwargs...) |
Depends on NREL-Sienna/PowerSystemsTestData#54 |
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.
This looks good. I can take care of testing all of these in NREL-Sienna/PowerSimulations.jl#1104
I'll merge, and if we need more, we should open more. I don't want to make these very large PRs a common thing. @rodrigomha, note that in some cases, there is non-sensical existing data already |
This PR adds new cases for cost function implementation testing