Learn R Programming

antaresEditObject

Edit an Antares study before running a simulation.

Installation

Install from CRAN:

install.packages("antaresEditObject")

Or install dev version from GitHub:

remotes::install_github("rte-antares-rpackage/antaresEditObject", build_vignettes = TRUE)

Goal

This package allows to edit an Antares study. Methods are provided to create (and remove) areas, links between them, thermal clusters and binding constraints. These steps may be useful before running an Antares simulation.

See website for more documentation: https://rte-antares-rpackage.github.io/antaresEditObject/

Usage

Usage of the package is detailed in the vignette: vignette("antaresEditObject").

Copy Link

Version

Install

install.packages('antaresEditObject')

Monthly Downloads

561

Version

0.9.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Tatiana Vargas

Last Published

February 14th, 2025

Functions in antaresEditObject (0.9.0)

computeTimeStampFromHourly

Compute daily, weekly, monthly and annual mc-ind from hourly data.
create-study

Create an empty Antares study
convertConfigToAdq

Read adequacy patch config.yml into Antares (v8.5+)
createDSR

Create a Demand Side Response (DSR)
createLink

Create a link between two areas
createPSP

Create a Pumped Storage Power plant (PSP)
copyOutput

Copy of the output files of an Antares study
createBindingConstraintBulk

Create multiple binding constraint at once.
createCluster

Create a cluster
dicoOutputSettings

Correspondence between arguments of updateOutputSettings and actual Antares parameters.
createArea

Create an area in an Antares study
.api_command_execute_edit_area

Edit area's parameters in API mode.
createBindingConstraint

Create a binding constraint
dicoGeneralSettings

Correspondence between arguments of updateGeneralSettings and actual Antares parameters.
editBindingConstraint

Update an existing binding constraint
dicoOptimizationSettings

Correspondence between arguments of updateOptimizationSettings and actual Antares parameters.
editCluster

Edit an existing cluster
createClusterBulk

Create serial thermal cluster
.initializeLinksArea

Initialize links data for a new area. For disk mode only.
.format_playlist_weights

Generate playlist_year_weight section in the appropriate format.
.hourlyToOther

Computation function for rebuild mc-ind daily, monthly and annual from hourly data.
createDistrict

Create a district
.initializeRenewablesArea

Initialize renewables data for a new area. For disk mode only.
detect_pattern_in_binding_constraint

Detect a pattern in a binding constraint coefficient
dicoAdequacySettings

Correspondence between arguments of updateAdequacySettings and actual Antares parameters.
.format_ini_rhs

Format a value to a suitable format to rhs in an .ini file.
.dailyToWeekly

Computation function for rebuild mc-ind weekly from daily data.
filteringOptions

Output profile options for creating an area
getJobs

Retrieve API jobs
mockSimulationAPI

Mock API usage
getJobLogs

Retrieve job log from API
nodalOptimizationOptions

Nodal optimization parameters for creating an area
get_default_hydro_ini_values

Get default hydro.ini values
createClusterST

Create a short-term storage cluster
create_scb_referential_series_type

Create the correspondence data frame between the symbol and the type in scenario builder
.split_nodalOptimization_by_target

Split list nodalOptimization by target file.
deleteStudy

Delete a study or a simulation
.is_version_9

function that ensures the transition to 9
.initializeThermalArea

Initialize thermal data for a new area. For disk mode only.
fill_empty_hydro_ts_file

Write default input time series if mingen.txt or/and mod.txt is empty
fill_empty_hydro_ini_file

Write default values in hydro.ini file if the section is empty
playlist

Get the playlist of an Antares study
propertiesLinkOptions

Properties for creating a link
list_pollutants_values

Output pollutants list for thermal clusters
importZipStudyWeb

Import a local study to Antares Web
editArea

Edit an area in an Antares study
editLink

Edit a link between two areas
group_values_meta_check

Check dimension of time series for binding constraints
get_type_check_mingen_vs_maxpower_to_trigger

Get the type of control to execute between mingen data and maxpower data
editClusterST

Edit a short-term storage cluster
runSimulation

Run an Antares Simulation
get_type_check_mingen_vs_hydrostorage

Get the type of control to execute using the 3 necessary booleans
get_type_check_mingen_vs_hydrostorage_to_trigger

Get the type of control to execute between mingen data and hydro storage data
removeArea

Remove an area from an Antares study
removeBindingConstraint

Remove a Binding Constraint
scenario-builder

Read, create, update & deduplicate scenario builder
runTsGenerator

Run Time-Series Generator
update_generaldata_by_section

Update a specific section in generaldata.ini file
variant-commands

Get API commands generated
removeCluster

Remove a cluster
removeLink

Remove a link between two areas
setAPImode

Set API mode
setSolverPath

Set path to Antares Solver
variant

Create a study's variant
write-ini

Write configuration options in file or API
updateGeneralSettings

Update general parameters of an Antares study
replicate_missing_ts

Replicate a data.table as many times as needed to get the same number of time series between 2 data.tables
searchStudy

Search study in AntaREST
updateOptimizationSettings

Update optimization parameters of an Antares study
updateOutputSettings

Update output parameters of an Antares study
writeEconomicOptions

Write Economic Options
rollback_to_previous_data

Rollback to previous hydro data if the data is not consistent
updateInputSettings

Update input parameters of an Antares study
writeIniHydro

Edit hydro.ini values
writeInputTS

Write input time series
storage_values_default

Short Term Storage Property List
writeWaterValues

Write water values
writeHydroValues

Write Hydro Values
writeSeriesPrepro

Write prepro data
updateAdequacySettings

Update adequacy parameters of an Antares study
writeMiscGen

Write Misc Gen data
writeOutputValues

Write output value for Antares
adequacyOptions

Adequacy patch parameters for creating an area
add_week_number_column_to_ts

Add week number column to a data.time of time series type
antaresEditObject-package

antaresEditObject: Edit an 'Antares' Simulation
cleanUpOutput

Clean up output based on geographic trimming
computeOtherFromHourlyMulti

Compute daily, weekly, monthly and annual mc-ind from hourly data multiyear. (new)
api_patch

API methods
activateRES

Activate RES in an Antares study
computeOtherFromHourlyYear

Compute daily, weekly, monthly and annual mc-ind from hourly data for one year. (new)
activateST

Activate st-storage in an Antares study
checkRemovedArea

Seek for a removed area
check_consistency_reservoir_values

For a given area, check consistency between reservoir and reservoir capacity values
copyStudyWeb

Import physical study to Antares Web (managed study)
check-version

Is study an Antares v7 study ?
backupStudy

Create a backup with an Antares Study
check_mingen_vs_maxpower

Check if mingen data and maxpower data are consistent
check_mingen_vs_hydro_storage

Check if mingen data and hydro storage data are consistent