Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cfe316 committed Dec 13, 2023
1 parent fe964d1 commit 616e981
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/write_outputs/write_net_revenue.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,18 +185,18 @@ function write_net_revenue(path::AbstractString, inputs::Dict, setup::Dict, EP::
end

dfNetRevenue.Revenue = dfNetRevenue.EnergyRevenue .+ dfNetRevenue.SubsidyRevenue .+ dfNetRevenue.ReserveMarginRevenue .+ dfNetRevenue.ESRRevenue .+ dfNetRevenue.RegSubsidyRevenue
dfNetRevenue.Cost = dfNetRevenue.Inv_cost_MW .+
dfNetRevenue.Inv_cost_MWh .+
dfNetRevenue.Inv_cost_charge_MW .+
dfNetRevenue.Fixed_OM_cost_MW .+
dfNetRevenue.Fixed_OM_cost_MWh .+
dfNetRevenue.Fixed_OM_cost_charge_MW .+
dfNetRevenue.Var_OM_cost_out .+
dfNetRevenue.Var_OM_cost_in .+
dfNetRevenue.Fuel_cost .+
dfNetRevenue.Charge_cost .+
dfNetRevenue.EmissionsCost .+
dfNetRevenue.StartCost
dfNetRevenue.Cost = (dfNetRevenue.Inv_cost_MW
.+ dfNetRevenue.Inv_cost_MWh
.+ dfNetRevenue.Inv_cost_charge_MW
.+ dfNetRevenue.Fixed_OM_cost_MW
.+ dfNetRevenue.Fixed_OM_cost_MWh
.+ dfNetRevenue.Fixed_OM_cost_charge_MW
.+ dfNetRevenue.Var_OM_cost_out
.+ dfNetRevenue.Var_OM_cost_in
.+ dfNetRevenue.Fuel_cost
.+ dfNetRevenue.Charge_cost
.+ dfNetRevenue.EmissionsCost
.+ dfNetRevenue.StartCost)
dfNetRevenue.Profit = dfNetRevenue.Revenue .- dfNetRevenue.Cost

CSV.write(joinpath(path, "NetRevenue.csv"), dfNetRevenue)
Expand Down

0 comments on commit 616e981

Please sign in to comment.