51 return "Marginal Price, throughout all MC years";
69 & (Category::FileLevel::id
70 | Category::FileLevel::va);
81 static constexpr uint8_t spatialAggregateMode = Category::spatialAggregateEachYear;
82 static constexpr uint8_t spatialAggregatePostProcessing = Category::
83 spatialAggregatePostProcessingPrice;
90 typedef std::vector<IntermediateValues> IntermediateValuesType;
121 template<
int CDataLevel,
int CFile>
137 pNbYearsParallel = study.maxNbYearsInParallel;
143 pValuesForTheCurrentYear.resize(pNbYearsParallel);
144 for (
unsigned int numSpace = 0; numSpace < pNbYearsParallel; numSpace++)
146 pValuesForTheCurrentYear[numSpace].initializeFromStudy(study);
150 NextType::initializeFromStudy(study);
156 VariableAccessorType::InitializeAndReset(
results, study);
162 NextType::initializeFromArea(study, area);
168 NextType::initializeFromAreaLink(study, link);
171 void simulationBegin()
174 NextType::simulationBegin();
179 NextType::simulationEnd();
182 void yearBegin(uint year,
unsigned int numSpace)
185 pValuesForTheCurrentYear[numSpace].reset();
187 NextType::yearBegin(year, numSpace);
190 void yearEndBuild(
State& state,
unsigned int year,
unsigned int numSpace)
193 NextType::yearEndBuild(state, year, numSpace);
196 void yearEnd(uint year,
unsigned int numSpace)
199 pValuesForTheCurrentYear[numSpace].computeAveragesForCurrentYearFromHourlyResults();
202 NextType::yearEnd(year, numSpace);
205 void computeSummary(std::map<unsigned int, unsigned int>& numSpaceToYear,
206 unsigned int nbYearsForCurrentSummary)
208 for (
unsigned int numSpace = 0; numSpace < nbYearsForCurrentSummary; ++numSpace)
212 pValuesForTheCurrentYear[numSpace]);
216 NextType::computeSummary(numSpaceToYear, nbYearsForCurrentSummary);
219 void hourBegin(uint hourInTheYear)
222 NextType::hourBegin(hourInTheYear);
225 void hourForEachArea(
State& state,
unsigned int numSpace)
230 pValuesForTheCurrentYear[numSpace][state.hourInTheYear] -= state.hourlyResults
231 ->CoutsMarginauxHoraires
232 [state.hourInTheWeek];
234 NextType::hourForEachArea(state, numSpace);
237 Antares::Memory::Stored<double>::ConstReturnType retrieveRawHourlyValuesForCurrentYear(
239 unsigned int numSpace)
const
241 return pValuesForTheCurrentYear[numSpace].hour;
244 void localBuildAnnualSurveyReport(SurveyResults&
results,
247 unsigned int numSpace)
const
250 results.isCurrentVarNA = AncestorType::isNonApplicable;
252 if (AncestorType::isPrinted[0])
257 pValuesForTheCurrentYear[numSpace]
258 .template buildAnnualSurveyReport<VCardType>(
results, fileLevel, precision);
264 typename VCardType::IntermediateValuesType pValuesForTheCurrentYear;
265 unsigned int pNbYearsParallel;