macroenergy / Dolphyn.jl

DOLPHYN: Decision Optimization for Low Carbon Power and Hydrogen Nexus
https://macroenergy.github.io/Dolphyn.jl/
GNU General Public License v2.0
36 stars 20 forks source link

213 replace sum with sum expression in HSC/model #218

Closed bennettm closed 6 months ago

bennettm commented 7 months ago

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: