area
The Area model defines the description of the electrical demand (load), generation fleet (clusters).
Classes:
-
AdequacyPatchMode–Adequacy patch mode to fix the sharing of Energy not Served (ENS) between market areas.
-
Area–Represents an area of the study.
-
AreaProperties–Represents all the properties for an area.
-
AreaPropertiesUpdate–Represents all the properties for an area.
-
AreaUi–Area UI properties.
-
AreaUiUpdate–Update for area UI properties
AdequacyPatchMode
Adequacy patch mode to fix the sharing of Energy not Served (ENS) between market areas.
- outside: The area is a physical area not included in the adequacy patch domain
- inside: The area is a physical area included in the adequacy patch domain
- virtual: The area is a virtual area
Only available if study version >= 830.
Area
Area(
name: str,
area_service: BaseAreaService,
storage_service: BaseShortTermStorageService,
thermal_service: BaseThermalService,
renewable_service: BaseRenewableService,
hydro_service: BaseHydroService,
*,
renewables: Optional[dict[str, RenewableCluster]] = None,
thermals: Optional[dict[str, ThermalCluster]] = None,
st_storages: Optional[dict[str, STStorage]] = None,
hydro: Optional[Hydro] = None,
properties: Optional[AreaProperties] = None,
ui: Optional[AreaUi] = None,
)
Represents an area of the study.
Provides access to data associated with that area, and to objects that are connected to it, for example thermal clusters, renewable clusters, binding constraints, etc.
Methods:
-
create_renewable_cluster–Creates a new renewable cluster in the current area.
-
create_st_storage–Creates a new short term storage in this area.
-
create_thermal_cluster–Creates a new thermal cluster in the current area.
-
delete_renewable_cluster–Delete a single renewable cluster in this area.
-
delete_renewable_clusters–Delete a list of renewable clusters in this area.
-
delete_st_storage–Delete a short-term storage in this area.
-
delete_st_storages–Delete a list of short-term storages in this area.
-
delete_thermal_cluster–Delete a single thermal cluster in this area.
-
delete_thermal_clusters–Delete a list of thermal clusters in this area.
-
get_load_matrix–Get the load time-series for the area.
-
get_misc_gen_matrix–Get the miscellaneous generation time-series for the area.
-
get_renewables–Renewable clusters connected to this area.
-
get_reserves_matrix–Get the reserves time-series for the area.
-
get_solar_matrix–Get the solar time-series for the area.
-
get_st_storages–Short term storages connected to this area.
-
get_thermals–Thermal clusters connected to this area.
-
get_wind_matrix–Get the wind time-series for the area.
-
set_load–Set the load time-series for this area
-
set_misc_gen–Set the miscellaneous generation time-series for this area
-
set_reserves–Set the reserves time-series for this area
-
set_solar–Set the solar time-series for this area
-
set_wind–Set the wind time-series for this area
Attributes:
-
hydro(Hydro) –Hydro properties of this area.
-
id(str) –The ID of this area.
-
name(str) –The name of this area.
-
properties(AreaProperties) –Properties of this area.
-
ui(AreaUi) –UI (display) properties of this area.
Source code in src/antares/craft/model/area.py
create_renewable_cluster
create_renewable_cluster(
renewable_name: str, properties: Optional[RenewableClusterProperties] = None
) -> RenewableCluster
Creates a new renewable cluster in the current area.
Parameters:
-
(renewable_namestr) –The name of the new renewable cluster.
-
(propertiesOptional[RenewableClusterProperties], default:None) –The properties of the new renewable cluster.
Returns:
-
RenewableCluster–The newly created renewable cluster.
Source code in src/antares/craft/model/area.py
create_st_storage
create_st_storage(
st_storage_name: str, properties: Optional[STStorageProperties] = None
) -> STStorage
Creates a new short term storage in this area.
Parameters:
-
(st_storage_namestr) –The name of the new short term storage.
-
(propertiesOptional[STStorageProperties], default:None) –The properties of the new short term storage.
Returns:
-
STStorage–The newly created short term storage.
Source code in src/antares/craft/model/area.py
create_thermal_cluster
create_thermal_cluster(
thermal_name: str, properties: Optional[ThermalClusterProperties] = None
) -> ThermalCluster
Creates a new thermal cluster in the current area.
Parameters:
-
(thermal_namestr) –The name of the new thermal cluster.
-
(propertiesOptional[ThermalClusterProperties], default:None) –The properties of the new thermal cluster.
Returns:
-
ThermalCluster–The newly created thermal cluster.
Source code in src/antares/craft/model/area.py
delete_renewable_cluster
delete_renewable_cluster(renewable_cluster: RenewableCluster) -> None
Delete a single renewable cluster in this area.
Parameters:
-
(renewable_clusterRenewableCluster) –The renewable cluster to delete
Source code in src/antares/craft/model/area.py
delete_renewable_clusters
delete_renewable_clusters(renewable_clusters: list[RenewableCluster]) -> None
Delete a list of renewable clusters in this area.
Parameters:
-
(renewable_clusterslist[RenewableCluster]) –The list of renewable clusters to delete
Source code in src/antares/craft/model/area.py
delete_st_storage
Delete a short-term storage in this area.
Parameters:
-
(storageSTStorage) –The short-term storage to delete
delete_st_storages
Delete a list of short-term storages in this area.
Parameters:
Source code in src/antares/craft/model/area.py
delete_thermal_cluster
delete_thermal_cluster(thermal_cluster: ThermalCluster) -> None
Delete a single thermal cluster in this area.
Parameters:
-
(thermal_clusterThermalCluster) –A thermal cluster
delete_thermal_clusters
delete_thermal_clusters(thermal_clusters: list[ThermalCluster]) -> None
Delete a list of thermal clusters in this area.
Parameters:
-
(thermal_clusterslist[ThermalCluster]) –The list of thermal clusters to delete
Source code in src/antares/craft/model/area.py
get_load_matrix
Get the load time-series for the area.
Returns:
-
DataFrame–The load time-series.
get_misc_gen_matrix
Get the miscellaneous generation time-series for the area.
Returns:
-
DataFrame–The miscellaneous generation time-series.
get_renewables
get_renewables() -> MappingProxyType[str, RenewableCluster]
Renewable clusters connected to this area.
Returns:
-
MappingProxyType[str, RenewableCluster]–Renewable clusters connected to this area, as a mapping of cluster ID to cluster.
Source code in src/antares/craft/model/area.py
get_reserves_matrix
Get the reserves time-series for the area.
Returns:
-
DataFrame–The reserves time-series.
get_solar_matrix
Get the solar time-series for the area.
Returns:
-
DataFrame–The solar time-series.
get_st_storages
get_st_storages() -> MappingProxyType[str, STStorage]
Short term storages connected to this area.
Returns:
-
MappingProxyType[str, STStorage]–Short term storages connected to this area, as a mapping of storage ID to storage.
Source code in src/antares/craft/model/area.py
get_thermals
get_thermals() -> MappingProxyType[str, ThermalCluster]
Thermal clusters connected to this area.
Returns:
-
MappingProxyType[str, ThermalCluster]–Thermal clusters connected to this area, as a mapping of cluster ID to cluster.
Source code in src/antares/craft/model/area.py
get_wind_matrix
Get the wind time-series for the area.
Returns:
-
DataFrame–The wind time-series.
set_load
set_load(series: DataFrame) -> None
Set the load time-series for this area
Parameters:
-
(seriesDataFrame) –The time-series
set_misc_gen
set_misc_gen(series: DataFrame) -> None
Set the miscellaneous generation time-series for this area
Parameters:
-
(seriesDataFrame) –The time-series
set_reserves
set_reserves(series: DataFrame) -> None
Set the reserves time-series for this area
Parameters:
-
(seriesDataFrame) –The time-series
set_solar
set_solar(series: DataFrame) -> None
Set the solar time-series for this area
Parameters:
-
(seriesDataFrame) –The time-series
set_wind
set_wind(series: DataFrame) -> None
Set the wind time-series for this area
Parameters:
-
(seriesDataFrame) –The time-series
AreaProperties
dataclass
AreaProperties(
energy_cost_unsupplied: float = 0.0,
energy_cost_spilled: float = 0.0,
non_dispatch_power: bool = True,
dispatch_hydro_power: bool = True,
other_dispatch_power: bool = True,
filter_synthesis: set[FilterOption] = (lambda: FILTER_VALUES)(),
filter_by_year: set[FilterOption] = (lambda: FILTER_VALUES)(),
adequacy_patch_mode: AdequacyPatchMode = OUTSIDE,
spread_unsupplied_energy_cost: float = 0.0,
spread_spilled_energy_cost: float = 0.0,
)
Represents all the properties for an area.
Attributes:
-
energy_cost_unsupplied(float) –Cost of unsupplied energy, in €/MWh.
-
energy_cost_spilled(float) –Cost of spilled energy, in €/MWh.
-
non_dispatch_power(bool) –Whether non-dispatchable power sources are enabled.
-
dispatch_hydro_power(bool) –Whether dispatchable hydro power is enabled.
-
other_dispatch_power(bool) –Whether other dispatchable power sources are enabled.
-
filter_synthesis(set[FilterOption]) –Set of filter options for synthesis (hourly, daily, weekly, monthly, annual).
-
filter_by_year(set[FilterOption]) –Set of filter options for output (hourly, daily, weekly, monthly, annual).
-
adequacy_patch_mode(AdequacyPatchMode) –Mode to include or not the area in adequacy patching.
-
spread_unsupplied_energy_cost(float) –Cost spread for unsupplied energy in €/MWh.
-
spread_spilled_energy_cost(float) –Cost spread for spilled energy in €/MWh.
AreaPropertiesUpdate
dataclass
AreaPropertiesUpdate(
energy_cost_unsupplied: Optional[float] = None,
energy_cost_spilled: Optional[float] = None,
non_dispatch_power: Optional[bool] = None,
dispatch_hydro_power: Optional[bool] = None,
other_dispatch_power: Optional[bool] = None,
filter_synthesis: Optional[set[FilterOption]] = None,
filter_by_year: Optional[set[FilterOption]] = None,
adequacy_patch_mode: Optional[AdequacyPatchMode] = None,
spread_unsupplied_energy_cost: Optional[float] = None,
spread_spilled_energy_cost: Optional[float] = None,
)
Represents all the properties for an area.
Attributes:
-
energy_cost_unsupplied(Optional[float]) –Cost of unsupplied energy, in €/MWh.
-
energy_cost_spilled(Optional[float]) –Cost of spilled energy, in €/MWh.
-
non_dispatch_power(Optional[bool]) –Whether non-dispatchable power sources are enabled.
-
dispatch_hydro_power(Optional[bool]) –Whether dispatchable hydro power is enabled.
-
other_dispatch_power(Optional[bool]) –Whether other dispatchable power sources are enabled.
-
filter_synthesis(Optional[set[FilterOption]]) –Set of filter options for synthesis (hourly, daily, weekly, monthly, annual).
-
filter_by_year(Optional[set[FilterOption]]) –Set of filter options for output (hourly, daily, weekly, monthly, annual).
-
adequacy_patch_mode(Optional[AdequacyPatchMode]) –Mode to include or not the area in adequacy patching.
-
spread_unsupplied_energy_cost(Optional[float]) –Cost spread for unsupplied energy in €/MWh.
-
spread_spilled_energy_cost(Optional[float]) –Cost spread for spilled energy in €/MWh.