fix: include aux consumption in hourly client_end loss calculation
Some checks are pending
CI / Engine — lint / typecheck / test (push) Waiting to run
CI / API — lint / typecheck / test (push) Waiting to run
CI / Web — typecheck / lint / build (push) Waiting to run

- Also includes aux consumption in loss_factor alongside transmission and DSM

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Manohar Gupta 2026-05-16 13:11:41 +05:30
parent 38797736a4
commit 48fe2129bf

View file

@ -488,8 +488,8 @@ def run_scenario(inputs: ScenarioInput) -> ScenarioResult:
if client_load_mw is None: if client_load_mw is None:
client_load_mw = inputs.commercial.ppa_capacity_mw client_load_mw = inputs.commercial.ppa_capacity_mw
# Transmission loss factor for client_end # Transmission + aux loss factor for client_end
loss_factor = 1.0 - inputs.commercial.transmission_loss_pct - inputs.commercial.dsm_loss_pct loss_factor = 1.0 - inputs.commercial.aux_consumption_pct - inputs.commercial.transmission_loss_pct - inputs.commercial.dsm_loss_pct
# Generate hourly data: 25 years × 8760 hours = 219,000 rows # Generate hourly data: 25 years × 8760 hours = 219,000 rows
# Start from Apr 1 of cod_year # Start from Apr 1 of cod_year