Skip to content

Commit

Permalink
Add NetPositionHoraire
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Jan 2, 2025
1 parent 01780aa commit ea05a63
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,14 @@ void OPT_InitialiserLesBornesDesVariablesDuProblemeLineaire(PROBLEME_HEBDO* prob
AdresseOuPlacerLaValeurDesVariablesOptimisees[var] = adresseDuResultat;
}
}
for (uint32_t pays = 0; pays < problemeHebdo->NombreDePays; pays++)
{
int var = problemeHebdo->CorrespondanceVarNativesVarOptim[pdtHebdo]
.NumeroDeVariableNetPosition[pays];
double* adresseDuResultat = &(
problemeHebdo->ResultatsHoraires[pays].NetPositionHoraire[pdtHebdo]);
AdresseOuPlacerLaValeurDesVariablesOptimisees[var] = adresseDuResultat;
}
}

setBoundsForUnsuppliedEnergy(problemeHebdo,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ struct RESULTATS_HORAIRES
std::vector<double> CoutsMarginauxHoraires;
std::vector<PRODUCTION_THERMIQUE_OPTIMALE> ProductionThermique; // index is pdtHebdo

std::vector<double> NetPositionHoraire;

std::vector<::ShortTermStorage::RESULTS> ShortTermStorage;
};

Expand Down
3 changes: 3 additions & 0 deletions src/solver/simulation/sim_alloc_probleme_hebdo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ void SIM_AllocateAreas(PROBLEME_HEBDO& problem,

problem.ResultatsHoraires[k].TurbinageHoraire.assign(NombreDePasDeTemps, 0.);
problem.ResultatsHoraires[k].PompageHoraire.assign(NombreDePasDeTemps, 0.);

problem.ResultatsHoraires[k].NetPositionHoraire.assign(NombreDePasDeTemps, 0.);

problem.ResultatsHoraires[k].CoutsMarginauxHoraires.assign(NombreDePasDeTemps, 0.);
problem.ResultatsHoraires[k].niveauxHoraires.assign(NombreDePasDeTemps, 0.);
problem.ResultatsHoraires[k].valeurH2oHoraire.assign(NombreDePasDeTemps, 0.);
Expand Down

0 comments on commit ea05a63

Please sign in to comment.