Skip to content

Commit

Permalink
[DEV] Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Sep 19, 2023
1 parent 0d027e5 commit f6c7d97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/solver/variable/economy/STStorageCashFlowByCluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,10 @@ class STstorageCashFlowByCluster : public Variable::IVariable<STstorageCashFlowB
++clusterIndex)
{
// ST storage injection for the current cluster and this hour
// CashFlow[h] = (withdrawal - injection) * MRG. PRICE
pValuesForTheCurrentYear[numSpace][clusterIndex].hour[state.hourInTheYear]
= state.hourlyResults->ShortTermStorage[state.hourInTheWeek].injection[clusterIndex]
- state.hourlyResults->ShortTermStorage[state.hourInTheWeek].withdrawal[clusterIndex]
= (state.hourlyResults->ShortTermStorage[state.hourInTheWeek].withdrawal[clusterIndex]
- state.hourlyResults->ShortTermStorage[state.hourInTheWeek].injection[clusterIndex])
* state.hourlyResults->CoutsMarginauxHoraires[state.hourInTheWeek];
// Note: The marginal price provided by the solver is negative (naming convention).
}
Expand Down

0 comments on commit f6c7d97

Please sign in to comment.