Skip to content

Commit

Permalink
Update write_net_revenue.jl
Browse files Browse the repository at this point in the history
Gotten rid of extra comments that are unnecessary
  • Loading branch information
sambuddhac authored Jan 13, 2024
1 parent 8a047e9 commit d4de39c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/write_outputs/write_net_revenue.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@ function write_net_revenue(path::AbstractString, inputs::Dict, setup::Dict, EP::
CO2ZONES = findall(x->x==1, inputs["dfCO2CapZones"][:,cap])
GEN_IN_ZONE = dfGen[[y in CO2ZONES for y in dfGen[:, :Zone]], :R_ID]
if setup["CO2Cap"]==1 || setup["CO2Cap"]==2 # Mass-based or Demand + Rate-based
# For Mass-based
# Cost = sum(sum(emissions of gen y * dual(CO2 constraint[cap]) for z in Z) for cap in setup["NCO2"])
# OR for Demand + Rate-based
# Cost = sum(sum(emissions for zone z * dual(CO2 constraint[cap]) for z in Z) for cap in setup["NCO2"])
temp_vec = value.(EP[:eEmissionsByPlant][GEN_IN_ZONE, :]) * inputs["omega"]
dfNetRevenue.EmissionsCost[GEN_IN_ZONE] += - co2_cap_dual * temp_vec
Expand Down

0 comments on commit d4de39c

Please sign in to comment.