From 2f230761a693a9403d0f701ae5309794203d0029 Mon Sep 17 00:00:00 2001 From: Abdoulbari Zakir Date: Mon, 16 Dec 2024 09:48:47 +0100 Subject: [PATCH] update --- src/libs/antares/study/parts/short-term-storage/container.cpp | 1 + .../optimisation/constraints/ShortTermStorageCumulation.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/libs/antares/study/parts/short-term-storage/container.cpp b/src/libs/antares/study/parts/short-term-storage/container.cpp index cff38dedbe..0f9b68de82 100644 --- a/src/libs/antares/study/parts/short-term-storage/container.cpp +++ b/src/libs/antares/study/parts/short-term-storage/container.cpp @@ -199,6 +199,7 @@ std::size_t STStorageInput::cumulativeConstraintCount() const { result += cluster.additional_constraints.size(); } + return result; } std::size_t STStorageInput::count() const diff --git a/src/solver/optimisation/constraints/ShortTermStorageCumulation.cpp b/src/solver/optimisation/constraints/ShortTermStorageCumulation.cpp index 926100c7bc..5dd0d15379 100644 --- a/src/solver/optimisation/constraints/ShortTermStorageCumulation.cpp +++ b/src/solver/optimisation/constraints/ShortTermStorageCumulation.cpp @@ -72,6 +72,7 @@ void ShortTermStorageCumulation::add(int pays){ for (const auto& storage: data.ShortTermStorage[pays]) { + // TODO global index for constraints for data.CorrespondanceCntNativesCntOptimHebdomadaires.ShortTermStorageCumulation[index] for(const auto& constraint: storage.additional_constraints){ //sum (var[h]) sign rhs, h in list provied by user