22#define WIN32_LEAN_AND_MEAN
23#include "antares/solver/simulation/economy.h"
24#include "antares/solver/simulation/simulation.h"
25#include "antares/study/scenario-builder/rules.h"
26#include "antares/study/scenario-builder/sets.h"
27#include "antares/study/study.h"
29using namespace Antares::Solver;
30using namespace Antares::Solver::Simulation;
31using namespace Antares::Data::ScenarioBuilder;
33void initializeStudy(
Study* study);
34void configureLinkCapacities(
AreaLink* link);
47 unsigned rowCount = HOURS_PER_YEAR);
70std::shared_ptr<ThermalCluster> addClusterToArea(
Area* area,
const std::string& clusterName);
71void addScratchpadToEachArea(
Study& study);
84 double hour(
unsigned int hour)
86 return averageResults_.hourly[hour];
89 double day(
unsigned int day)
91 return averageResults_.daily[day];
94 double week(
unsigned int week)
96 return averageResults_.weekly[week];
107 simulation_(simulation)
120 template<
class VCard>
123 template<
class VCard>
126 template<
class VCard>
137 simulation_.variables.retrieveResultsForArea<VCard>(&result, area);
145 simulation_.variables.retrieveResultsForLink<VCard>(&result, link);
154 simulation_.variables.retrieveResultsForThermalCluster<VCard>(&result, cluster);
170 return rules_->binding_constraints;
175 return rules_->hydro;
208 std::shared_ptr<ISimulation<Economy>> simulation_;
224 void simulationBetweenDays(
const unsigned int firstDay,
const unsigned int lastDay);
225 Area* addAreaToStudy(
const std::string& areaName);
226 void setNumberMCyears(
unsigned int nbYears);
227 void playOnlyYear(
unsigned int year);
228 void giveWeightToYear(
float weight,
unsigned int year);
231 std::unique_ptr<Study> study;
232 std::shared_ptr<SimulationHandler> simulation;
235std::shared_ptr<Antares::Data::BindingConstraint> addBindingConstraints(
Antares::Data::Study& study,
Definition of a link between two areas (Interconnection)
Definition links.h:50
Definition for a single area.
Definition area.h:52
Definition BindingConstraintsTSNumbersData.h:32
std::shared_ptr< Rules > Ptr
Smart pointer.
Definition rules.h:55
Definition HydroTSNumberData.h:29
Definition LoadTSNumberData.h:29
A single thermal cluster.
Definition cluster.h:78
A n-by-n matrix.
Definition jit.h:30
The NullSimulationObserver class is a null object for the ISimulationObserver interface.
Definition ISimulationObserver.h:57
Definition averagedata.h:38
Definition DurationCollector.h:36
Definition in-memory-study.h:104
Definition in-memory-study.h:159
Command line settings for launching the simulation.
Definition options.h:37
Definition in-memory-study.h:187
Definition in-memory-study.h:55
Definition in-memory-study.h:77
VariableAccessor< typenameVCardT::ResultsType, VCardT::columnCount >::Type ResultsType
The true type used for the results.
Definition info.h:764
Definition in-memory-study.h:221