40 return "MRG. PRICE CSR";
52 return "Marginal Price CSR, throughout all MC years";
70 & (Category::FileLevel::id
71 | Category::FileLevel::va);
82 static constexpr uint8_t spatialAggregateMode = Category::spatialAggregateEachYear;
83 static constexpr uint8_t spatialAggregatePostProcessing = Category::
84 spatialAggregatePostProcessingPrice;
91 typedef std::vector<IntermediateValues> IntermediateValuesType;
122 template<
int CDataLevel,
int CFile>
138 pNbYearsParallel = study.maxNbYearsInParallel;
144 pValuesForTheCurrentYear.resize(pNbYearsParallel);
145 for (
unsigned int numSpace = 0; numSpace < pNbYearsParallel; numSpace++)
147 pValuesForTheCurrentYear[numSpace].initializeFromStudy(study);
151 NextType::initializeFromStudy(study);
157 VariableAccessorType::InitializeAndReset(
results, study);
163 NextType::initializeFromArea(study, area);
169 NextType::initializeFromAreaLink(study, link);
172 void simulationBegin()
175 NextType::simulationBegin();
180 NextType::simulationEnd();
183 void yearBegin(uint year,
unsigned int numSpace)
186 pValuesForTheCurrentYear[numSpace].reset();
188 NextType::yearBegin(year, numSpace);
191 void yearEndBuild(
State& state,
unsigned int year)
194 NextType::yearEndBuild(state, year);
197 void yearEnd(uint year,
unsigned int numSpace)
200 pValuesForTheCurrentYear[numSpace].computeAveragesForCurrentYearFromHourlyResults();
203 NextType::yearEnd(year, numSpace);
206 void computeSummary(std::map<unsigned int, unsigned int>& numSpaceToYear,
207 unsigned int nbYearsForCurrentSummary)
209 for (
unsigned int numSpace = 0; numSpace < nbYearsForCurrentSummary; ++numSpace)
213 pValuesForTheCurrentYear[numSpace]);
217 NextType::computeSummary(numSpaceToYear, nbYearsForCurrentSummary);
220 void hourBegin(uint hourInTheYear)
223 NextType::hourBegin(hourInTheYear);
226 void hourForEachArea(
State& state,
unsigned int numSpace)
228 pValuesForTheCurrentYear[numSpace][state.hourInTheYear] = -state.hourlyResults
229 ->CoutsMarginauxHorairesCSR
230 [state.hourInTheWeek];
232 NextType::hourForEachArea(state, numSpace);
235 Antares::Memory::Stored<double>::ConstReturnType retrieveRawHourlyValuesForCurrentYear(
237 unsigned int numSpace)
const
239 return pValuesForTheCurrentYear[numSpace].hour;
242 void localBuildAnnualSurveyReport(SurveyResults&
results,
245 unsigned int numSpace)
const
248 results.isCurrentVarNA = AncestorType::isNonApplicable;
250 if (AncestorType::isPrinted[0])
255 pValuesForTheCurrentYear[numSpace]
256 .template buildAnnualSurveyReport<VCardType>(
results, fileLevel, precision);
262 typename VCardType::IntermediateValuesType pValuesForTheCurrentYear;
263 unsigned int pNbYearsParallel;