From d545097e728ece925ddf03e5d964c30faaad0fd9 Mon Sep 17 00:00:00 2001 From: "Chakrabarti, Sambuddha (Sam)" Date: Fri, 12 Jan 2024 20:00:27 -0500 Subject: [PATCH] Update vre_stor.jl Fix minor typos --- src/model/resources/vre_stor/vre_stor.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/model/resources/vre_stor/vre_stor.jl b/src/model/resources/vre_stor/vre_stor.jl index b5eb11ecd7..77c6b7f1d0 100644 --- a/src/model/resources/vre_stor/vre_stor.jl +++ b/src/model/resources/vre_stor/vre_stor.jl @@ -2034,28 +2034,28 @@ function vre_stor_capres!(EP::Model, inputs::Dict, setup::Dict) #Variable costs of DC "virtual charging" for technologies "y" during hour "t" in zone "z" @expression(EP, eCVar_Charge_DC_virtual[y in DC_CHARGE,t=1:T], - inputs["omega"][t]*setup["VirtualCHargeDischargeCost"]*vCAPRES_DC_CHARGE[y,t]/by_rid(y,:EtaInverter)) + inputs["omega"][t]*setup["VirtualChargeDischargeCost"]*vCAPRES_DC_CHARGE[y,t]/by_rid(y,:EtaInverter)) @expression(EP, eTotalCVar_Charge_DC_T_virtual[t=1:T], sum(eCVar_Charge_DC_virtual[y,t] for y in DC_CHARGE)) @expression(EP, eTotalCVar_Charge_DC_virtual, sum(eTotalCVar_Charge_DC_T_virtual[t] for t in 1:T)) EP[:eObj] += eTotalCVar_Charge_DC_virtual #Variable costs of DC "virtual discharging" for technologies "y" during hour "t" in zone "z" @expression(EP, eCVar_Discharge_DC_virtual[y in DC_DISCHARGE,t=1:T], - inputs["omega"][t]*setup["VirtualCHargeDischargeCost"]*by_rid(y,:EtaInverter)*vCAPRES_DC_DISCHARGE[y,t]) + inputs["omega"][t]*setup["VirtualChargeDischargeCost"]*by_rid(y,:EtaInverter)*vCAPRES_DC_DISCHARGE[y,t]) @expression(EP, eTotalCVar_Discharge_DC_T_virtual[t=1:T], sum(eCVar_Discharge_DC_virtual[y,t] for y in DC_DISCHARGE)) @expression(EP, eTotalCVar_Discharge_DC_virtual, sum(eTotalCVar_Discharge_DC_T_virtual[t] for t in 1:T)) EP[:eObj] += eTotalCVar_Discharge_DC_virtual #Variable costs of AC "virtual charging" for technologies "y" during hour "t" in zone "z" @expression(EP, eCVar_Charge_AC_virtual[y in AC_CHARGE,t=1:T], - inputs["omega"][t]*setup["VirtualCHargeDischargeCost"]*vCAPRES_AC_CHARGE[y,t]) + inputs["omega"][t]*setup["VirtualChargeDischargeCost"]*vCAPRES_AC_CHARGE[y,t]) @expression(EP, eTotalCVar_Charge_AC_T_virtual[t=1:T], sum(eCVar_Charge_AC_virtual[y,t] for y in AC_CHARGE)) @expression(EP, eTotalCVar_Charge_AC_virtual, sum(eTotalCVar_Charge_AC_T_virtual[t] for t in 1:T)) EP[:eObj] += eTotalCVar_Charge_AC_virtual #Variable costs of AC "virtual discharging" for technologies "y" during hour "t" in zone "z" @expression(EP, eCVar_Discharge_AC_virtual[y in AC_DISCHARGE,t=1:T], - inputs["omega"][t]*setup["VirtualCHargeDischargeCost"]*vCAPRES_AC_DISCHARGE[y,t]) + inputs["omega"][t]*setup["VirtualChargeDischargeCost"]*vCAPRES_AC_DISCHARGE[y,t]) @expression(EP, eTotalCVar_Discharge_AC_T_virtual[t=1:T], sum(eCVar_Discharge_AC_virtual[y,t] for y in AC_DISCHARGE)) @expression(EP, eTotalCVar_Discharge_AC_virtual, sum(eTotalCVar_Discharge_AC_T_virtual[t] for t in 1:T)) EP[:eObj] += eTotalCVar_Discharge_AC_virtual