Skip to content

Commit

Permalink
Unused function in opt
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Nov 6, 2024
1 parent 2f4896e commit c56bb7e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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*);

/*------------------------------*/

Expand Down
16 changes: 0 additions & 16 deletions src/solver/optimisation/opt_alloc_probleme_a_optimiser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit c56bb7e

Please sign in to comment.