32 return "MIN DTG by plant";
38 return "MIN GEN - MWh";
44 return "Min power by cluster";
59 & (Category::FileLevel::de);
70 static constexpr uint8_t spatialAggregateMode = Category::spatialAggregateEachYear;
71 static constexpr uint8_t spatialAggregatePostProcessing = 0;
78 typedef std::vector<IntermediateValues> IntermediateValuesBaseType;
79 typedef std::vector<IntermediateValuesBaseType> IntermediateValuesType;
89 VCardMinDispatchableGenByPlant>
110 template<
int CDataLevel,
int CFile>
130 pNbYearsParallel = study->maxNbYearsInParallel;
131 pValuesForTheCurrentYear.resize(pNbYearsParallel);
134 nbClusters_ = area->thermal.list.enabledCount();
139 for (
unsigned int numSpace = 0; numSpace < pNbYearsParallel; numSpace++)
141 pValuesForTheCurrentYear[numSpace].resize(nbClusters_);
144 for (
unsigned int numSpace = 0; numSpace < pNbYearsParallel; numSpace++)
146 for (
unsigned int i = 0; i != nbClusters_; ++i)
148 pValuesForTheCurrentYear[numSpace][i].initializeFromStudy(*study);
152 for (
unsigned int i = 0; i != nbClusters_; ++i)
163 NextType::initializeFromArea(study, area);
166 size_t getMaxNumberColumns()
const
171 void yearBegin(
unsigned int year,
unsigned int numSpace)
174 for (
unsigned int i = 0; i != nbClusters_; ++i)
176 pValuesForTheCurrentYear[numSpace][i].reset();
179 NextType::yearBegin(year, numSpace);
182 void yearEnd(
unsigned int year,
unsigned int numSpace)
186 for (
unsigned int i = 0; i < nbClusters_; ++i)
189 pValuesForTheCurrentYear[numSpace][i].computeStatisticsForTheCurrentYear();
193 NextType::yearEnd(year, numSpace);
196 void computeSummary(std::map<unsigned int, unsigned int>& numSpaceToYear,
197 unsigned int nbYearsForCurrentSummary)
199 for (
unsigned int numSpace = 0; numSpace < nbYearsForCurrentSummary; ++numSpace)
201 for (
unsigned int i = 0; i < nbClusters_; ++i)
205 pValuesForTheCurrentYear[numSpace][i]);
210 NextType::computeSummary(numSpaceToYear, nbYearsForCurrentSummary);
213 void hourForEachArea(
State& state,
unsigned int numSpace)
215 auto& area = state.area;
216 auto& thermal = state.thermal;
217 for (
auto& cluster: area->thermal.list.each_enabled())
219 double minGen = cluster->PthetaInf[state.hourInTheYear];
220 double production = thermal[area->index]
221 .thermalClustersProductions[cluster->enabledIndex];
223 pValuesForTheCurrentYear[numSpace][cluster->enabledIndex].hour[state.hourInTheYear]
224 += std::min(production, minGen);
228 NextType::hourForEachArea(state, numSpace);
231 inline void buildDigest(SurveyResults&
results,
int digestLevel,
int dataLevel)
const
234 NextType::buildDigest(
results, digestLevel, dataLevel);
237 Antares::Memory::Stored<double>::ConstReturnType retrieveRawHourlyValuesForCurrentYear(
239 unsigned int numSpace)
const
241 return pValuesForTheCurrentYear[numSpace][column].hour;
244 void localBuildAnnualSurveyReport(SurveyResults&
results,
247 unsigned int numSpace)
const
250 results.isCurrentVarNA = AncestorType::isNonApplicable;
252 if (AncestorType::isPrinted[0])
254 assert(NULL !=
results.data.area);
255 const auto& thermal =
results.data.area->thermal;
258 for (
auto& cluster: thermal.list.each_enabled())
261 results.variableCaption = cluster->name();
263 pValuesForTheCurrentYear[numSpace][cluster->enabledIndex]
264 .template buildAnnualSurveyReport<VCardType>(
results, fileLevel, precision);
271 typename VCardType::IntermediateValuesType pValuesForTheCurrentYear;
272 size_t nbClusters_ = 0;
273 unsigned int pNbYearsParallel;