diff --git a/src/solver/optimisation/HydroPower.cpp b/src/solver/optimisation/HydroPower.cpp index d6f36ecdd9..6b0f019489 100644 --- a/src/solver/optimisation/HydroPower.cpp +++ b/src/solver/optimisation/HydroPower.cpp @@ -21,8 +21,7 @@ void HydroPower::add(int pays) for (int pdt = 0; pdt < NombreDePasDeTempsPourUneOptimisation; pdt++) { builder.updateHourWithinWeek(pdt); - builder.HydProd(pays, 1.0) - .include(Variable::Pumping(pays), -pumpingRatio); + builder.HydProd(pays, 1.0).Pumping(pays, -pumpingRatio); } } else