-
Notifications
You must be signed in to change notification settings - Fork 21
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
ERP CHP fuel HHV bug #325
ERP CHP fuel HHV bug #325
Conversation
f1d0c2d
to
ae9dc2d
Compare
ae9dc2d
to
1ba1227
Compare
@@ -95,10 +95,10 @@ end | |||
|
|||
|
|||
function add_MG_Gen_fuel_burn_constraints(m,p) | |||
fuel_slope_gal_per_kwhe, fuel_intercept_gal_per_hr = generator_fuel_slope_and_intercept( | |||
fuel_slope_gal_per_kwhe, fuel_intercept_gal_per_hr = fuel_slope_and_intercept( |
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.
Should we do this for CHP fuel burn below as well?
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.
Yeah sure! Added it in two more places to eliminate dupe code
@@ -27,6 +27,9 @@ Classify the change according to the following categories: | |||
### Fixed | |||
- Added `export_rate_beyond_net_metering_limit` to list of inputs to be converted to type Real, to avoid MethodError if type is vector of Any. | |||
- Fix blended CRB processing when one or more load types have zero annual energy | |||
- When calculating CHP fuel intercept and slope, use 1 for the HHV because CHP fuel measured in units of kWh, instead of using non-existent **CHP.fuel_higher_heating_value_kwh_per_gal** |
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.
Where was this implemented?
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.
REopt.jl/src/outagesim/backup_reliability.jl
Line 803 in 54dbb3f
fuel_higher_heating_value_kwh_per_unit=1 |
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.
Not sure why the Ubuntu tests always take forever since the switch to all tests with HiGHS, while the Windows and Mac ones finish reasonably quickly.
Fixed
Changed
generator_fuel_slope_and_intercept
tofuel_slope_and_intercept
and generalize to not be specific to diesel measured in units of gal