el1xr_opt.Modules.oM_Community#

el1xr_opt.Modules.oM_Community.community_active(model)[source]#

True if the energy-community layer is enabled for this case.

Return type:

bool

el1xr_opt.Modules.oM_Community.create_community_variables(model, optmodel, indlog)[source]#

Create the per-member share variables. No-op (and no vars) when the community layer is off, so existing cases are untouched. Must run before create_constraints because the retail balance references these variables.

el1xr_opt.Modules.oM_Community.create_community_constraints(model, optmodel, indlog)[source]#

Per-zone pool conservation: contributed energy equals received energy within each community (zone), at every period/scenario/load level. Lossless, local virtual sharing. No-op when the community layer is off.