21 #ifndef __ANTARES_SOLVER_timeSeries_GENERATOR_H__
22 #define __ANTARES_SOLVER_timeSeries_GENERATOR_H__
24 #include <yuni/yuni.h>
26 #include <antares/series/series.h>
27 #include <antares/study/fwd.h>
28 #include <antares/study/parameters.h>
29 #include <antares/study/parts/thermal/cluster.h>
30 #include <antares/study/study.h>
32 #include "xcast/xcast.h"
34 namespace fs = std::filesystem;
35 using LinkPair = std::pair<std::string, std::string>;
36 using LinkPairs = std::vector<LinkPair>;
38 namespace Antares::TSGenerator
43 unsigned int nbLinkTStoGenerate = 1;
54 unsigned unitCount = 1;
55 double nominalCapacity = 0;
57 double forcedVolatility = 0.;
58 double plannedVolatility = 0.;
60 Data::StatisticalLaw forcedLaw = Data::LawUniform;
61 Data::StatisticalLaw plannedLaw = Data::LawUniform;
63 std::unique_ptr<Data::PreproAvailability> prepro;
68 bool forceNoGeneration =
false;
69 bool hasValidData =
true;
79 const std::string& name);
81 const unsigned& unitCount;
82 const double& nominalCapacity;
84 const double& forcedVolatility;
85 const double& plannedVolatility;
87 Data::StatisticalLaw& forcedLaw;
88 Data::StatisticalLaw& plannedLaw;
94 const std::string& name;
97 using listOfLinks = std::vector<Data::AreaLink*>;
104 template<enum Data::TimeSeriesType T>
108 const std::vector<Data::ThermalCluster*>& clusters,
111 void writeThermalTimeSeries(
const std::vector<Data::ThermalCluster*>& clusters,
112 const fs::path& savePath);
114 bool generateLinkTimeSeries(std::vector<LinkTSgenerationParams>& links,
116 const fs::path& savePath);
118 std::vector<Data::ThermalCluster*> getAllClustersToGen(
const Data::AreaList& areas,
119 bool globalThermalTSgeneration);
129 template<enum Data::TimeSeriesType T>
134 #include "generator.hxx"
A list of areas.
Definition: area.h:365
General data for a study.
Definition: parameters.h:51
Thermal.
Definition: prepro.h:35
A single thermal cluster.
Definition: cluster.h:76
A n-by-n matrix.
Definition: matrix.h:44
typename Antares::Memory::Stored< T >::Type ColumnType
Column type.
Definition: matrix.h:62
MersenneTwister Pseudo random number generator.
Definition: mersenne-twister.h:41
Definition: i_writer.h:32
Definition: generator.h:73
Definition: generator.h:51
Definition: generator.h:42