Oh, ok
If the subset is always included in GEN_TECHS, you can write directly the sum on the subset like this:
eldemand_data[i, t] + sum(Generation_Dispatch[i, x, t] / gentechdata[x].efficiency for x in ["CHP", "HeatPumps", "Boilers"]) ≤ ...
Oh, ok
If the subset is always included in GEN_TECHS, you can write directly the sum on the subset like this:
eldemand_data[i, t] + sum(Generation_Dispatch[i, x, t] / gentechdata[x].efficiency for x in ["CHP", "HeatPumps", "Boilers"]) ≤ ...