Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OMNES Florian committed Sep 12, 2024
1 parent ba54eed commit 69d4ef7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,6 @@ int OPT_DecompteDesVariablesEtDesContraintesDuProblemeAOptimiser(PROBLEME_HEBDO*
variations (14a in the reference
document) */
}
if (!Pump && !TurbEntreBornes && MonitorHourlyLev)
{
const std::string areaName(problemeHebdo->NomsDesPays[pays]);
throw FatalError("Level explicit modeling requires flexible generation in area "
+ areaName);
}
}

// Short term storage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ struct ENERGIES_ET_PUISSANCES_HYDRAULIQUES

bool TurbinageEntreBornes;
bool SansHeuristique;
const bool SuiviNiveauHoraire = true;
bool SuiviNiveauHoraire;

std::vector<double> NiveauHoraireSup;
std::vector<double> NiveauHoraireInf;
Expand Down
2 changes: 2 additions & 0 deletions src/solver/simulation/sim_calcul_economique.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ void SIM_InitialisationProblemeHebdo(Data::Study& study,
.useHeuristicTarget
|| area.hydro.useLeeway);

problem.CaracteristiquesHydrauliques[i].SuiviNiveauHoraire = area.hydro.reservoirManagement;

problem.CaracteristiquesHydrauliques[i].DirectLevelAccess = false;
problem.CaracteristiquesHydrauliques[i].AccurateWaterValue = false;
if (problem.WaterValueAccurate && area.hydro.useWaterValue)
Expand Down

0 comments on commit 69d4ef7

Please sign in to comment.