From de7c893e8ba0748584e89d9e19247d0f21976bae Mon Sep 17 00:00:00 2001 From: Abdoulbari Zakir Date: Fri, 20 Dec 2024 12:35:30 +0100 Subject: [PATCH] update unpacked constraints --- .../optimisation/constraints/ShortTermStorageCumulation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/solver/optimisation/constraints/ShortTermStorageCumulation.cpp b/src/solver/optimisation/constraints/ShortTermStorageCumulation.cpp index bf6cf51f94..d72adac1e2 100644 --- a/src/solver/optimisation/constraints/ShortTermStorageCumulation.cpp +++ b/src/solver/optimisation/constraints/ShortTermStorageCumulation.cpp @@ -141,10 +141,10 @@ void ShortTermStorageCumulation::add(int pays) for (const auto& [hours, globalIndex, localIndex]: additional_constraints.constraints) { namer.ShortTermStorageCumulation( - constraintHelper->name() + std::to_string(localIndex), + constraintHelper->name(), builder.data.nombreDeContraintes, storage.name, - additional_constraints.name); + additional_constraints.name + std::to_string(localIndex)); const auto index = storage.clusterGlobalIndex; data.CorrespondanceCntNativesCntOptimHebdomadaires .ShortTermStorageCumulation[globalIndex]