Skip to content

Commit

Permalink
[DEV] use PMinOfClusters
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Nov 17, 2023
1 parent 29c206c commit aa833fa
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/solver/variable/economy/profitByPlant.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,16 @@ class ProfitByPlant : public Variable::IVariable<ProfitByPlant<NextT>, NextT, VC
auto* cluster = state.area->thermal.clusters[clusterIndex];
double hourlyClusterProduction
= thermal[area->index].thermalClustersProductions[clusterIndex];
double pMin = thermal[area->index].PMinOfClusters[clusterIndex];
uint tsIndex = cluster->series.timeseriesNumbers[0][state.year];

double pMin = 0;
if (!state.problemeHebdo->PaliersThermiquesDuPays[area->index].PuissanceDisponibleEtCout.empty())
{
pMin = state.problemeHebdo->PaliersThermiquesDuPays[area->index]
.PuissanceDisponibleEtCout[cluster->index]
.PuissanceMinDuPalierThermique[hourInTheYear];
}
/* double pMin = 0; */
/* if (!state.problemeHebdo->PaliersThermiquesDuPays[area->index].PuissanceDisponibleEtCout.empty()) */
/* { */
/* pMin = state.problemeHebdo->PaliersThermiquesDuPays[area->index] */
/* .PuissanceDisponibleEtCout[cluster->index] */
/* .PuissanceMinDuPalierThermique[hourInTheYear]; */
/* } */

// Thermal cluster profit
pValuesForTheCurrentYear[numSpace][cluster->areaWideIndex].hour[hourInTheYear]
Expand Down

0 comments on commit aa833fa

Please sign in to comment.