|
Antares Simulator
Power System Simulator
|
General data for a study. More...
#include <parameters.h>
Classes | |
| struct | Compatibility |
| struct | IncludeOptions |
| struct | RenewableGeneration |
| struct | UCMode |
Public Member Functions | |
Simulation mode | |
| bool | economy () const |
| Get if the simulation is in economy mode. | |
| bool | adequacy () const |
| Get if the simulation is in adequacy mode. | |
| void | resetPlaylist (uint nbOfYears) |
| Reset the playlist (played years and associated years) | |
| bool | loadFromFile (const std::filesystem::path &filename, const StudyVersion &version) |
| Load data from a file. More... | |
| bool | loadFromINI (const IniFile &ini, const StudyVersion &version) |
| Load data from an INI file. | |
| void | prepareForSimulation (const StudyLoadOptions &options) |
| Prepare all settings for a simulation. More... | |
| bool | saveToFile (const AnyString &filename) const |
| Save data to an ini file. More... | |
| bool | isTSGeneratedByPrepro (const TimeSeriesType ts) const |
| Get if a time-series must be generated by the preprocessor. More... | |
| void | reset () |
| Reset to default all values in a structure for general data. | |
| void | resetSeeds () |
| Reset to default all seeds. | |
| void | fixBadValues () |
| Try to detect then fix any bad value. | |
| void | validateOptions (const StudyLoadOptions &) |
| void | fixGenRefreshForNTC () |
| Try to detect then fix TS generation/refresh parameters for NTC. | |
| void | resetYearsWeigth () |
| Reset MC year weight to 1 for all years. | |
| std::vector< float > | getYearsWeight () const |
| Get MC years weight dependending on playlist configuration. More... | |
| float | getYearsWeightSum () const |
| Get MC years weight sum dependending on playlist configuration. More... | |
| void | setYearWeight (uint year, float weight) |
| Define weight for a MC year. More... | |
| bool | haveToImport (int tsKind) const |
| void | saveToINI (IniFile &ini) const |
| Save the internal settings into an INI file. | |
Public Attributes | |
| SheddingPolicy | policy |
| Shedding policy. | |
| PowerFluctuations | fluctuations |
| Power fluctuations. | |
| NumberOfCoresMode | ncMode |
| Number of Cores Mode. | |
| HydroHeuristicPolicy | hhPolicy |
| Hydro heuristic policy. | |
| HydroPricingMode | hpMode |
| Hydro Pricing Mode. | |
Mode | |
| SimulationMode | mode |
| Mode of the study (adequacy, economy...) | |
Horizon | |
| Yuni::String | horizon |
| Horizon year, not used by the solver. | |
Calendar | |
| uint | nbYears |
| Number of years to study. | |
| Date::DayInterval | simulationDays |
| Simulation days interval. | |
| DayOfTheWeek | dayOfThe1stJanuary |
| Day of the 1st january. | |
| DayOfTheWeek | firstWeekday |
| First day in the week. | |
| MonthName | firstMonthInYear |
| The first month of the simulation year. | |
| bool | leapYear |
| Leap year. | |
Additional | |
| bool | yearByYear |
| Export results each year. | |
| bool | derated |
| Derated. | |
| bool | useCustomScenario |
| Custom scenario. | |
| bool | userPlaylist |
| Custom playlist (each year will be manually selected by the user) | |
| std::vector< bool > | yearsFilter |
| Flag to perform the calculations or not from the solver. | |
| bool | thematicTrimming |
| Custom variable selection (each variable will be manually selected for print by the user) | |
| AllVariablesPrintInfo | variablesPrintInfo |
| List of all output variables print info. | |
| uint | effectiveNbYears |
| The number of years that will be really performed. | |
| bool | geographicTrimming |
TimeSeries | |
| uint | nbTimeSeriesLoad |
| Nb of timeSeries : Load. | |
| uint | nbTimeSeriesHydro |
| Nb of timeSeries : Hydro. | |
| uint | nbTimeSeriesWind |
| Nb of timeSeries : Wind. | |
| uint | nbTimeSeriesThermal |
| Nb of timeSeries : Thermal. | |
| uint | nbTimeSeriesSolar |
| Nb of timeSeries : Solar. | |
Archives | |
| uint | timeSeriesToArchive |
| TimeSeries to archive. More... | |
Pre-Processor | |
| uint | timeSeriesToGenerate |
| TimeSeries to generate. More... | |
Import Time-Series to HardDrive | |
| uint | exportTimeSeriesInInput |
| TimeSeries to Import. More... | |
Correlated draws | |
| uint | intraModal |
| TimeSeries where the draws are correlated. More... | |
| uint | interModal |
| Inter-modal. | |
Timeseries numbers | |
| bool | storeTimeseriesNumbers |
| Store the sampled timeseries numbers. | |
| bool | readonly |
| Read-only mode. More... | |
| bool | synthesis |
| Write the simulation synthesis into the output. | |
| uint | timeSeriesAccuracyOnCorrelation |
| Accuracy on correlation. | |
Optimization preferences | |
| struct Antares::Data::Parameters::IncludeOptions | include |
| Compatibility | compatibility |
| struct { | |
| SheddingPolicy policy | |
| Shedding policy. | |
| } | shedding |
| struct { | |
| PowerFluctuations fluctuations | |
| Power fluctuations. | |
| } | power |
| UCMode | unitCommitment |
| struct { | |
| NumberOfCoresMode ncMode | |
| Number of Cores Mode. | |
| } | nbCores |
| RenewableGeneration | renewableGeneration |
| struct { | |
| HydroHeuristicPolicy hhPolicy | |
| Hydro heuristic policy. | |
| } | hydroHeuristicPolicy |
| struct { | |
| HydroPricingMode hpMode | |
| Hydro Pricing Mode. | |
| } | hydroPricing |
| bool | accurateShavePeaksIncludeShortTermStorage = false |
| GlobalTransmissionCapacities | transmissionCapacities |
| Transmission capacities. | |
| SimplexOptimization | simplexOptimizationRange |
| Simplex optimization range (day/week) | |
| AdequacyPatch::AdqPatchParams | adqPatchParams |
Scenariio Builder - Rules | |
| RulesScenarioName | activeRulesScenario |
| The current active rules for building scenarios (useful if building mode == custom) | |
Output | |
| bool | noOutput = false |
| No output. | |
| bool | hydroDebug |
| bool | remixStorageDebug = false |
| Used to create debug informations for both hydro and short term storages. | |
Seeds | |
| uint | seed [seedMax] |
| Seeds. | |
| ResultFormat | resultFormat = legacyFilesDirectories |
| bool | namedProblems |
| Antares::Solver::Optimization::OptimizationOptions | optOptions |
General data for a study.
Those data are located into the file generalData.ini
| std::vector< float > Antares::Data::Parameters::getYearsWeight | ( | ) | const |
Get MC years weight dependending on playlist configuration.
| float Antares::Data::Parameters::getYearsWeightSum | ( | ) | const |
Get MC years weight sum dependending on playlist configuration.
| bool Antares::Data::Parameters::isTSGeneratedByPrepro | ( | const TimeSeriesType | ts | ) | const |
Get if a time-series must be generated by the preprocessor.
| mask | The time-serie to test |
| bool Antares::Data::Parameters::loadFromFile | ( | const std::filesystem::path & | filename, |
| const StudyVersion & | version | ||
| ) |
Load data from a file.
This routine ensures that the structure is properly initialized with default values, whatever is the result. If the filename is empty, or it does not exists, or the file can not be opened, the routine will return 0.
| filename | The file to load |
| version | Current study version |
| void Antares::Data::Parameters::prepareForSimulation | ( | const StudyLoadOptions & | options | ) |
Prepare all settings for a simulation.
The solver must be able to rely on all variables for performance reasons. The first case scenario can be the user who might not have disabled all settings, like the refresh, that can have a non-zero value even if the ts-generator is disabled. Another case would be the directives given by the command line.
loadFromFile() if the flag options.usedByTheSolver is set. | bool Antares::Data::Parameters::saveToFile | ( | const AnyString & | filename | ) | const |
Save data to an ini file.
| filename | The target filename |
| void Antares::Data::Parameters::setYearWeight | ( | uint | year, |
| float | weight | ||
| ) |
Define weight for a MC year.
| year | MC year index |
| weight | MC year weight |
| uint Antares::Data::Parameters::exportTimeSeriesInInput |
TimeSeries to Import.
This value is a mask bits for timeSeries. All generated timeseries will be re-written into the input
| bool Antares::Data::Parameters::geographicTrimming |
Enable/Disable filtering by files : for an area or a link, print (or not) a file associated to :
| uint Antares::Data::Parameters::intraModal |
TimeSeries where the draws are correlated.
This value is a mask bits for timeSeries.
| bool Antares::Data::Parameters::readonly |
Read-only mode.
This value can only be set by the property read-only in the generaldata.ini. The default value is false.
| uint Antares::Data::Parameters::timeSeriesToArchive |
TimeSeries to archive.
Only generated timeSeries will be archived. This value is a mask bits for timeSeries.
| uint Antares::Data::Parameters::timeSeriesToGenerate |