From 13fe60d0bea27638dc487e023466e7483a046a91 Mon Sep 17 00:00:00 2001 From: "Chakrabarti, Sambuddha (Sam)" Date: Mon, 8 Jan 2024 14:55:19 -0500 Subject: [PATCH] Get rid of costs to virtual charging & discharging in storage_all.jl Since virtual operations are theoretical and often lead to absurd outcomes. --- src/model/resources/storage/storage_all.jl | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/model/resources/storage/storage_all.jl b/src/model/resources/storage/storage_all.jl index d0ff71ce1a..99e22622a5 100644 --- a/src/model/resources/storage/storage_all.jl +++ b/src/model/resources/storage/storage_all.jl @@ -58,21 +58,6 @@ function storage_all!(EP::Model, inputs::Dict, setup::Dict) @expression(EP, eTotalCVarIn, sum(eTotalCVarInT[t] for t in 1:T)) add_to_expression!(EP[:eObj], eTotalCVarIn) - - if CapacityReserveMargin > 0 - #Variable costs of "virtual charging" for technologies "y" during hour "t" in zone "z" - @expression(EP, eCVar_in_virtual[y in STOR_ALL,t=1:T], inputs["omega"][t]*dfGen[y,:Var_OM_Cost_per_MWh_In]*vCAPRES_charge[y,t]) - @expression(EP, eTotalCVarInT_virtual[t=1:T], sum(eCVar_in_virtual[y,t] for y in STOR_ALL)) - @expression(EP, eTotalCVarIn_virtual, sum(eTotalCVarInT_virtual[t] for t in 1:T)) - EP[:eObj] += eTotalCVarIn_virtual - - #Variable costs of "virtual discharging" for technologies "y" during hour "t" in zone "z" - @expression(EP, eCVar_out_virtual[y in STOR_ALL,t=1:T], inputs["omega"][t]*dfGen[y,:Var_OM_Cost_per_MWh]*vCAPRES_discharge[y,t]) - @expression(EP, eTotalCVarOutT_virtual[t=1:T], sum(eCVar_out_virtual[y,t] for y in STOR_ALL)) - @expression(EP, eTotalCVarOut_virtual, sum(eTotalCVarOutT_virtual[t] for t in 1:T)) - EP[:eObj] += eTotalCVarOut_virtual - end - ## Power Balance Expressions ## # Term to represent net dispatch from storage in any period