Skip to content

Commit

Permalink
read results visualization of results
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Franssens committed May 28, 2020
1 parent 546a6ba commit 22a5bea
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 109 deletions.
6 changes: 3 additions & 3 deletions dispaset/postprocessing/postprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ def get_units_operation_cost(inputs, results):
UnitOperationCost = pd.concat([PowerUnitOperationCost, ConsumptionCost], axis=1)

return UnitOperationCost
#%% change when heatdemand per zone
#%%
def shadowprices(results, zone):
"""
this function retrieves the schadowprices of DA, heat, 2U and 2D for 1 zone
Expand All @@ -691,7 +691,7 @@ def shadowprices(results, zone):

schadowprices.fillna(0)
return schadowprices
#%% change when heatdemand per zone add profit
#%%
def Cashflows(inputs,results,unit,Plot = True):
"""
This function calculates the different cashflows (DA,2U,2D,3U,Heat,costs) for one specific unit
Expand Down Expand Up @@ -737,7 +737,7 @@ def reserve_availability_demand(inputs,results):
hourly_availability['Down'] = pd.DataFrame()
hourly_availability['Up'] = pd.DataFrame()

#can 1 powerplant have 2U and 3U available at the same time !!! check this !!!

total_up_reserves = pd.concat([results['OutputReserve_2U'],results['OutputReserve_3U']],axis=1)
total_up_reserves = total_up_reserves.groupby(level=0, axis=1).sum()

Expand Down

0 comments on commit 22a5bea

Please sign in to comment.