From 29c206cf8776c7a8c3503747f056a5ab73605e21 Mon Sep 17 00:00:00 2001 From: Vincent Payet Date: Fri, 17 Nov 2023 12:22:43 +0100 Subject: [PATCH] [DEV] if syntax --- src/solver/variable/economy/profitByPlant.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/solver/variable/economy/profitByPlant.h b/src/solver/variable/economy/profitByPlant.h index 4d353531b4..681f5db099 100644 --- a/src/solver/variable/economy/profitByPlant.h +++ b/src/solver/variable/economy/profitByPlant.h @@ -281,9 +281,11 @@ class ProfitByPlant : public Variable::IVariable, NextT, VC double pMin = 0; if (!state.problemeHebdo->PaliersThermiquesDuPays[area->index].PuissanceDisponibleEtCout.empty()) + { pMin = state.problemeHebdo->PaliersThermiquesDuPays[area->index] - .PuissanceDisponibleEtCout[cluster->index] - .PuissanceMinDuPalierThermique[hourInTheYear]; + .PuissanceDisponibleEtCout[cluster->index] + .PuissanceMinDuPalierThermique[hourInTheYear]; + } // Thermal cluster profit pValuesForTheCurrentYear[numSpace][cluster->areaWideIndex].hour[hourInTheYear]