From c56bb7ef44d44dd2218e8ee2e8f4437b26eae976 Mon Sep 17 00:00:00 2001 From: Vincent Payet Date: Wed, 6 Nov 2024 15:36:55 +0100 Subject: [PATCH] Unused function in opt --- .../antares/solver/optimisation/opt_fonctions.h | 1 - .../opt_alloc_probleme_a_optimiser.cpp | 16 ---------------- 2 files changed, 17 deletions(-) diff --git a/src/solver/optimisation/include/antares/solver/optimisation/opt_fonctions.h b/src/solver/optimisation/include/antares/solver/optimisation/opt_fonctions.h index f215ae5dd1..18551a08b5 100644 --- a/src/solver/optimisation/include/antares/solver/optimisation/opt_fonctions.h +++ b/src/solver/optimisation/include/antares/solver/optimisation/opt_fonctions.h @@ -99,7 +99,6 @@ void OPT_AllocateFromNumberOfVariableConstraints(PROBLEME_ANTARES_A_RESOUDRE* Pr int); void OPT_AllocDuProblemeAOptimiser(PROBLEME_HEBDO*); int OPT_DecompteDesVariablesEtDesContraintesDuProblemeAOptimiser(PROBLEME_HEBDO*); -void OPT_AugmenterLaTailleDeLaMatriceDesContraintes(PROBLEME_ANTARES_A_RESOUDRE*); /*------------------------------*/ diff --git a/src/solver/optimisation/opt_alloc_probleme_a_optimiser.cpp b/src/solver/optimisation/opt_alloc_probleme_a_optimiser.cpp index 20b448bde7..ecf694c530 100644 --- a/src/solver/optimisation/opt_alloc_probleme_a_optimiser.cpp +++ b/src/solver/optimisation/opt_alloc_probleme_a_optimiser.cpp @@ -145,19 +145,3 @@ void OPT_AllocDuProblemeAOptimiser(PROBLEME_HEBDO* problemeHebdo) optimisationAllocateProblem(problemeHebdo, mxPaliers); } -void OPT_AugmenterLaTailleDeLaMatriceDesContraintes(PROBLEME_ANTARES_A_RESOUDRE* ProblemeAResoudre) -{ - int NbTermes = ProblemeAResoudre->NombreDeTermesAllouesDansLaMatriceDesContraintes; - NbTermes += ProblemeAResoudre->IncrementDAllocationMatriceDesContraintes; - - logs.info(); - logs.info() << " Expected Number of Non-zero terms in Problem Matrix : increased to : " - << NbTermes; - logs.info(); - - ProblemeAResoudre->CoefficientsDeLaMatriceDesContraintes.resize(NbTermes); - - ProblemeAResoudre->IndicesColonnes.resize(NbTermes); - - ProblemeAResoudre->NombreDeTermesAllouesDansLaMatriceDesContraintes = NbTermes; -}