From 7947b36276d86cb2bfd647e53d190786f3444255 Mon Sep 17 00:00:00 2001 From: payetvin <113102157+payetvin@users.noreply.github.com> Date: Thu, 12 Sep 2024 13:01:56 +0200 Subject: [PATCH] Revert "Fix bug hydro heuristic with mingen (ANT-1825) (#2258)" (#2394) This reverts commit 8cc64f998723b7facb69a0fa2c63d47eeb175482. --- src/solver/simulation/sim_calcul_economique.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/solver/simulation/sim_calcul_economique.cpp b/src/solver/simulation/sim_calcul_economique.cpp index e14f85e945..b6984936aa 100644 --- a/src/solver/simulation/sim_calcul_economique.cpp +++ b/src/solver/simulation/sim_calcul_economique.cpp @@ -837,6 +837,12 @@ void SIM_RenseignementProblemeHebdo(const Study& study, } marginGen = weekGenerationTarget; + + if (problem.CaracteristiquesHydrauliques[k].NiveauInitialReservoir + < weekTarget_tmp) + { + marginGen = problem.CaracteristiquesHydrauliques[k].NiveauInitialReservoir; + } } if (not problem.CaracteristiquesHydrauliques[k].TurbinageEntreBornes)