Skip to content

Commit

Permalink
Remove unused CoutDeDefaillanceEnReserve (#2392)
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes authored Sep 12, 2024
1 parent 7947b36 commit 3eaa8df
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ bool OPT_PilotageOptimisationLineaire(const OptimizationOptions& options,
{
if (problemeHebdo->TypeDOptimisation == OPTIMISATION_LINEAIRE)
{
for (uint32_t pays = 0; pays < problemeHebdo->NombreDePays; pays++)
{
problemeHebdo->CoutDeDefaillanceEnReserve[pays] = 1.e+6;
}

problemeHebdo->NombreDeJours = (int)(problemeHebdo->NombreDePasDeTemps
/ problemeHebdo->NombreDePasDeTempsDUneJournee);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ struct PROBLEME_HEBDO

std::vector<double> CoutDeDefaillancePositive;
std::vector<double> CoutDeDefaillanceNegative;
std::vector<double> CoutDeDefaillanceEnReserve;

std::vector<PALIERS_THERMIQUES> PaliersThermiquesDuPays;
std::vector<ENERGIES_ET_PUISSANCES_HYDRAULIQUES> CaracteristiquesHydrauliques;
Expand Down
1 change: 0 additions & 1 deletion src/solver/simulation/sim_alloc_probleme_hebdo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ void SIM_AllocationProblemeDonneesGenerales(PROBLEME_HEBDO& problem,

problem.CoutDeDefaillancePositive.assign(nbPays, 0);
problem.CoutDeDefaillanceNegative.assign(nbPays, 0);
problem.CoutDeDefaillanceEnReserve.assign(nbPays, 0);

problem.NumeroDeContrainteEnergieHydraulique.assign(nbPays, 0);
problem.NumeroDeContrainteMinEnergieHydraulique.assign(nbPays, 0);
Expand Down
2 changes: 0 additions & 2 deletions src/solver/simulation/sim_calcul_economique.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ void SIM_InitialisationProblemeHebdo(Data::Study& study,

problem.CoutDeDefaillanceNegative[i] = area.thermal.spilledEnergyCost;

problem.CoutDeDefaillanceEnReserve[i] = area.thermal.unsuppliedEnergyCost;

problem.DefaillanceNegativeUtiliserPMinThermique[i] = (anoOtherDispatchPower
& area.nodalOptimization)
!= 0;
Expand Down

0 comments on commit 3eaa8df

Please sign in to comment.