From 8c4508ba5a5f5c0889d05f29bb4064a8bffc0557 Mon Sep 17 00:00:00 2001 From: Florian OMNES <26088210+flomnes@users.noreply.github.com> Date: Wed, 11 Sep 2024 16:17:02 +0200 Subject: [PATCH] Remove unused class computeTimeStepLevel --- .../sim_structure_probleme_economique.h | 66 ------------------- 1 file changed, 66 deletions(-) diff --git a/src/solver/simulation/include/antares/solver/simulation/sim_structure_probleme_economique.h b/src/solver/simulation/include/antares/solver/simulation/sim_structure_probleme_economique.h index 1261077c0b..506357e35e 100644 --- a/src/solver/simulation/include/antares/solver/simulation/sim_structure_probleme_economique.h +++ b/src/solver/simulation/include/antares/solver/simulation/sim_structure_probleme_economique.h @@ -324,72 +324,6 @@ struct ENERGIES_ET_PUISSANCES_HYDRAULIQUES bounding constraint on final level*/ }; -class computeTimeStepLevel -{ -private: - int step; - double level; - - double capacity; - std::vector& inflows; - std::vector& ovf; - std::vector& turb; - double pumpRatio; - std::vector& pump; - double excessDown; - -public: - computeTimeStepLevel(const double& startLvl, - std::vector& infl, - std::vector& overfl, - std::vector& H, - double pumpEff, - std::vector& Pump, - double rc): - step(0), - level(startLvl), - capacity(rc), - inflows(infl), - ovf(overfl), - turb(H), - pumpRatio(pumpEff), - pump(Pump), - excessDown(0.) - { - } - - void run() - { - excessDown = 0.; - - level = level + inflows[step] - turb[step] + pumpRatio * pump[step] - ovf[step]; - - if (level > capacity) - { - level = capacity; - } - - if (level < 0) - { - excessDown = -level; - level = 0.; - inflows[step] += excessDown; - } - } - - void prepareNextStep() - { - step++; - - inflows[step] -= excessDown; - } - - double getLevel() - { - return level; - } -}; - struct RESERVE_JMOINS1 { std::vector ReserveHoraireJMoins1;