This pull request is for replacing sum() with more efficient sum_expression. It can be benchmarked with a macro written. To use this macro, one needs to set the flag to be true in the New England ThreeZones example's global settings file at Example_Systems/SmallNewEngland/ThreeZones/Settings/global_model_settings.yml. Look for the flag labelled: Benchmark.
Fixes issue \
Feature #213
Note not all sum() got replaced by sum_expression() for files in sr/HSC/model. It is the ones that are more efficient with sum_expression().
Type of change
Please delete options that are not relevant.
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
[x] Example_Systems/SmallNewEngland/ThreeZones
Test Configuration:
OS: Mac OS
Solver: HiGHS
Julia version: 1.9
Solver version: n/a
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] I have run tests with my code to avoid compatibility issues
[ ] Any dependent changes have been merged and published in downstream modules
Description
This pull request is for replacing sum() with more efficient sum_expression. It can be benchmarked with a macro written. To use this macro, one needs to set the flag to be true in the New England ThreeZones example's global settings file at Example_Systems/SmallNewEngland/ThreeZones/Settings/global_model_settings.yml. Look for the flag labelled: Benchmark.
Fixes issue \
Feature #213
Note not all sum() got replaced by sum_expression() for files in sr/HSC/model. It is the ones that are more efficient with sum_expression().
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
Test Configuration:
Checklist: