output
Classes:
-
Frequency–Time span over which the results are assessed:
-
MCAllAreasDataType–Types of files generated by the simulation for each area,
-
MCAllLinksDataType–Types of files generated by the simulation for each area,
-
MCIndAreasDataType–Types of files generated by the simulation for each area, for each year.
-
MCIndLinksDataType–Types of files generated by the simulation for each link, for each year.
-
Output–Output of an Antares simulation with/without Xpansion.
-
XpansionOutputAntares–Output of Xpansion investment module.
-
XpansionOutputCandidate–Xpansion output candidate.
-
XpansionOutputCandidateInvest–Xpansion output candidate investment.
-
XpansionOutputCandidateSensitivity–Xpansion output candidate sensitivity study.
-
XpansionOutputIteration–Xpansion output for a given iteration.
-
XpansionOutputOptions–Options of Xpansion output.
-
XpansionOutputSensitivitySolution–Xpansion output sensitivity solution.
-
XpansionOutputSolution–Xpansion output solution.
-
XpansionResult–Xpansion results.
-
XpansionSensitivityResult–Xpansion sensitivity results.
Frequency
Time span over which the results are assessed: hourly detail, daily bundle, weekly bundle, monthly bundle, annual bundle.
Attributes:
-
HOURLY– -
DAILY– -
WEEKLY– -
MONTHLY– -
ANNUAL–
MCAllAreasDataType
Types of files generated by the simulation for each area, containing synthetic results over all years.
Attributes:
-
VALUES–General values of variables (price, load, generation, etc.). Files of this type have the same size for all areas. In the UI, it corresponds to displaying General values.
-
DETAILS–Values regarding dispatchable thermal generating plants. File sizes differ by area. In the UI, it corresponds to displaying Thermal plants.
-
DETAILS_ST_STORAGE–Values regarding the different short-term storages of each area. The sizes of these files differ from one area to another. In the UI, it corresponds to displaying ST storages.
-
DETAILS_RES–Values regarding the different renewable clusters of each area. The sizes of these files differ from one area to another. In the UI, it corresponds to displaying Ren. clusters.
-
ID–Identifier (number) of the Monte-Carlo years for which were observed the extreme values of the different variables presented in the
valuesfiles. In the UI, it corresponds to displaying RecordYear.
MCAllLinksDataType
Types of files generated by the simulation for each area, containing synthetic results over all years.
Attributes:
-
VALUES–values of different variables (flow, congestion rent) the list of which is common to all interconnections. The files of type
valueshave therefore the same size everywhere. In the UI, it corresponds to displaying General values. -
ID–Identifier (number) of the Monte-Carlo years for which were observed the extreme values of the different variables presented in the
valuesfiles. In the UI, it corresponds to displaying RecordYear.
MCIndAreasDataType
Types of files generated by the simulation for each area, for each year.
Attributes:
-
VALUES–General values of variables (price, load, generation, etc.). Files of this type have the same size for all areas. In the UI, it corresponds to displaying General values.
-
DETAILS–Values regarding dispatchable thermal generating plants. File sizes differ by area. In the UI, it corresponds to displaying Thermal plants.
-
DETAILS_ST_STORAGE–Values regarding the different short-term storages of each area. The sizes of these files differ from one area to another. In the UI, it corresponds to displaying ST storages.
-
DETAILS_RES–Values regarding the different renewable clusters of each area. The sizes of these files differ from one area to another. In the UI, it corresponds to displaying Ren. clusters.
MCIndLinksDataType
Types of files generated by the simulation for each link, for each year.
Attributes:
-
VALUES–values of different variables (flow, congestion rent) the list of which is common to all interconnections. The files of type
valueshave therefore the same size everywhere. In the UI, it corresponds to displaying General values.
Output
Output of an Antares simulation with/without Xpansion.
Methods:
-
aggregate_mc_all_areas–Return a matrix of aggregated raw data for areas with mc-all
-
aggregate_mc_all_links–Return a matrix of aggregated raw data for links with mc-all.
-
aggregate_mc_ind_areas–Return a matrix of aggregated raw data for areas with mc-ind
-
aggregate_mc_ind_links–Return a matrix of aggregated raw data for links with mc-ind
-
get_binding_constraint_ts_numbers–Get binding constraint time series numbers for a given constraint group.
-
get_hydro_ts_numbers–Get hydro time series numbers for a given area.
-
get_link_ts_numbers–Get wind time series numbers for a given link.
-
get_load_ts_numbers–Get load time series numbers for a given area.
-
get_mc_all_area–Get data for an area with mc-all.
-
get_mc_all_link–Get data for a link with mc-all.
-
get_mc_ind_area–Get data for an area with mc-ind.
-
get_mc_ind_link–Get data for a link with mc-ind.
-
get_solar_ts_numbers–Get solar time series numbers.
-
get_st_storage_additional_constraints_numbers–Get short-term storage additional constraints time series numbers for a given constraint.
-
get_st_storage_inflows_numbers–Get short-term storage inflows time series numbers for a given st-storage.
-
get_thermal_ts_numbers–Get thermal time series numbers for a given thermal cluster.
-
get_wind_ts_numbers–Get wind time series numbers for a given area.
-
get_xpansion_result–Get xpansion result.
-
get_xpansion_sensitivity_result–Get xpansion sensitivity results.
Attributes:
Source code in src/antares/craft/model/output.py
aggregate_mc_all_areas
aggregate_mc_all_areas(
data_type: MCAllAreasDataType,
frequency: Frequency,
areas_ids: Optional[list[str]] = None,
columns_names: Optional[list[str]] = None,
) -> DataFrame
Return a matrix of aggregated raw data for areas with mc-all
Parameters:
-
(data_typeMCAllAreasDataType) –values from McAllAreas
-
(frequencyFrequency) –values from Frequency
Returns:
-
DataFrame–Aggregated raw data
Source code in src/antares/craft/model/output.py
aggregate_mc_all_links
aggregate_mc_all_links(
data_type: MCAllLinksDataType,
frequency: Frequency,
links_ids: Optional[list[tuple[str, str]]] = None,
columns_names: Optional[list[str]] = None,
) -> DataFrame
Return a matrix of aggregated raw data for links with mc-all.
Parameters:
-
(data_typeMCAllLinksDataType) –values from McAllLinks
-
(frequencyFrequency) –values from Frequency
Returns:
-
DataFrame–Aggregated raw data.
Source code in src/antares/craft/model/output.py
aggregate_mc_ind_areas
aggregate_mc_ind_areas(
data_type: MCIndAreasDataType,
frequency: Frequency,
mc_years: Optional[list[int]] = None,
areas_ids: Optional[list[str]] = None,
columns_names: Optional[list[str]] = None,
) -> DataFrame
Return a matrix of aggregated raw data for areas with mc-ind
Parameters:
-
(data_typeMCIndAreasDataType) –values from McIndAreasDataType.
-
(frequencyFrequency) –values from Frequency.
Returns:
-
DataFrame–Aggregated raw data.
Source code in src/antares/craft/model/output.py
aggregate_mc_ind_links
aggregate_mc_ind_links(
data_type: MCIndLinksDataType,
frequency: Frequency,
mc_years: Optional[list[int]] = None,
links_ids: Optional[list[tuple[str, str]]] = None,
columns_names: Optional[list[str]] = None,
) -> DataFrame
Return a matrix of aggregated raw data for links with mc-ind
Parameters:
-
(data_typeMCIndLinksDataType) –values from McIndLinks
-
(frequencyFrequency) –values from Frequency
Returns:
-
DataFrame–Aggregated raw data
Source code in src/antares/craft/model/output.py
get_binding_constraint_ts_numbers
Get binding constraint time series numbers for a given constraint group.
Returns:
Source code in src/antares/craft/model/output.py
get_hydro_ts_numbers
Get hydro time series numbers for a given area.
Returns:
Source code in src/antares/craft/model/output.py
get_link_ts_numbers
Get wind time series numbers for a given link.
Returns:
Source code in src/antares/craft/model/output.py
get_load_ts_numbers
Get load time series numbers for a given area.
Returns:
Source code in src/antares/craft/model/output.py
get_mc_all_area
Get data for an area with mc-all.
Parameters:
-
(frequencyFrequency) –Whether "hourly", "daily", "weekly", "monthly", "annual".
-
(data_typeMCAllAreasDataType) –The data-type of mc-all areas.
-
(areastr) –The area name.
Returns:
-
DataFrame–A dataframe of mc-all data.
Source code in src/antares/craft/model/output.py
get_mc_all_link
get_mc_all_link(
frequency: Frequency, data_type: MCAllLinksDataType, area_from: str, area_to: str
) -> DataFrame
Get data for a link with mc-all.
Parameters:
-
(frequencyFrequency) –Whether "hourly", "daily", "weekly", "monthly", "annual".
-
(data_typeMCAllLinksDataType) –The data-type of mc-all links.
-
(area_fromstr) –area_fromID. -
(area_tostr) –area_toID.
Returns:
-
DataFrame–A dataframe of mc-all data.
Source code in src/antares/craft/model/output.py
get_mc_ind_area
get_mc_ind_area(
mc_year: int, frequency: Frequency, data_type: MCIndAreasDataType, area: str
) -> DataFrame
Get data for an area with mc-ind.
Parameters:
-
(mc_yearint) –Monte-Carlo year index.
-
(frequencyFrequency) –Whether "hourly", "daily", "weekly", "monthly", "annual".
-
(data_typeMCIndAreasDataType) –The data-type of mc-all areas.
-
(areastr) –The area name.
Returns:
-
DataFrame–A dataframe of mc-ind data.
Source code in src/antares/craft/model/output.py
get_mc_ind_link
get_mc_ind_link(
mc_year: int,
frequency: Frequency,
data_type: MCIndLinksDataType,
area_from: str,
area_to: str,
) -> DataFrame
Get data for a link with mc-ind.
Parameters:
-
(mc_yearint) –Monte-Carlo year index.
-
(frequencyFrequency) –"hourly", "daily", "weekly", "monthly", "annual".
-
(data_typeMCIndLinksDataType) –The data-type of mc-ind links.
-
(area_fromstr) –area_fromID. -
(area_tostr) –area_toID.
Returns:
-
DataFrame–A dataframe of mc-ind data.
Source code in src/antares/craft/model/output.py
get_solar_ts_numbers
Get solar time series numbers.
Returns:
Source code in src/antares/craft/model/output.py
get_st_storage_additional_constraints_numbers
get_st_storage_additional_constraints_numbers(
area_id: str, st_storage_id: str, constraint_id: str
) -> dict[int, int]
Get short-term storage additional constraints time series numbers for a given constraint.
Returns:
Source code in src/antares/craft/model/output.py
get_st_storage_inflows_numbers
Get short-term storage inflows time series numbers for a given st-storage.
Returns:
Source code in src/antares/craft/model/output.py
get_thermal_ts_numbers
Get thermal time series numbers for a given thermal cluster.
Returns:
Source code in src/antares/craft/model/output.py
get_wind_ts_numbers
Get wind time series numbers for a given area.
Returns:
Source code in src/antares/craft/model/output.py
get_xpansion_result
get_xpansion_result() -> XpansionResult
get_xpansion_sensitivity_result
get_xpansion_sensitivity_result() -> XpansionSensitivityResult
Get xpansion sensitivity results.
Returns:
-
XpansionSensitivityResult–Xpansion sensitivity results.
XpansionOutputAntares
dataclass
XpansionOutputAntares(version: str)
Output of Xpansion investment module.
Attributes:
-
version(str) –The version of the module used in the simulation.
XpansionOutputCandidate
dataclass
XpansionOutputCandidate(
solution: float,
max: float,
min: float,
iterations: list[XpansionOutputCandidateInvest],
)
Xpansion output candidate.
Attributes:
-
solution(float) –Invested capacity at the end of the algorithm.
-
max(float) –Maximum possible investment (in MW).
-
min(float) –Minimum possible investment (in MW).
-
iterations(list[XpansionOutputCandidateInvest]) –List of the output candidate investment for each iteration.
XpansionOutputCandidateInvest
dataclass
XpansionOutputCandidateInvest(invest: float)
Xpansion output candidate investment.
Attributes:
-
invest(float) –Amount of investment for a given candidate.
XpansionOutputCandidateSensitivity
dataclass
XpansionOutputCandidateSensitivity(
lb: float,
ub: float,
solution_max: XpansionOutputCandidateInvest,
solution_min: XpansionOutputCandidateInvest,
)
Xpansion output candidate sensitivity study.
Attributes:
-
lb(float) –Minimum possible invested capacity.
-
ub(float) –Maximum possible invested capacity.
-
solution_max(XpansionOutputCandidateInvest) –Maximum invested capacity in a near-optimal solution.
-
solution_min(XpansionOutputCandidateInvest) –Minimum invested capacity in a near-optimal solution.
XpansionOutputIteration
dataclass
XpansionOutputIteration(
best_ub: float,
cumulative_number_of_subproblem_resolutions: int,
investment_cost: float,
lb: float,
master_duration: float,
operational_cost: float,
optimality_gap: float,
overall_cost: float,
relative_gap: float,
subproblem_duration: float,
ub: float,
)
Xpansion output for a given iteration.
Attributes:
-
best_ub(float) –Best upper bound on the optimal cost.
-
cumulative_number_of_subproblem_resolutions(int) –Cumulative number of subproblems solved from the beginning of the Benders algorithm.
-
investment_cost(float) –Investment cost of the solution at the current iteration.
-
lb(float) –Lower bound on the optimal cost: this is the solution of the master problem as it is a relaxation of the investment problem.
-
master_duration(float) –Duration of the master problem resolution.
-
operational_cost(float) –Expectation of the yearly operational cost over all MC years of the linear relaxation of an Antares simulation for the system with the current iteration investment level.
-
optimality_gap(float) –Absolute gap between the lb and the best_ub (
(best_ub - lb)). -
overall_cost(float) –Sum of
investment costandoperational_cost. -
relative_gap(float) –At each iteration, the algorithm computes upper and lower bounds on the optimal cost. The algorithm stops as soon as the quantity
(best_ub - lb) / max(|best_ub|, |lb|)falls below relative_gap. For a relative gap \(\alpha\), the cost of the solution returned by the algorithm satisfies: $\(\frac{{\scriptstyle\texttt{xpansion solution cost}} - {\scriptstyle\texttt{optimal cost}}}{{\scriptstyle\texttt{optimal cost}}} < \alpha\)$. -
subproblem_duration(float) –Wall time for the resolution of all weekly Antares subproblems at the current iteration.
-
ub(float) –Overall cost of the solution of the current iteration. This may be greater than
best_ubif a previous iteration led to a better solution.
XpansionOutputOptions
dataclass
Options of Xpansion output.
Attributes:
-
log_level(int) –Solver's log severity in {0, 1, 2}.
-
master_name(str) –Name of the master problem file (automatically generated).
-
problem_format(str) –- MPS: Problems in MPS text format.
- OPTIMIZED: Problems in binary SVF format.
-
solver_name(str) –Solver used for the resolution of the optimization problem.
XpansionOutputSensitivitySolution
dataclass
XpansionOutputSensitivitySolution(
objective: float, problem_type: str, status: int, system_cost: float
)
Xpansion output sensitivity solution.
Attributes:
-
objective(float) –Objective value of the solution of the sensitivity analysis.
-
problem_type(str) –- "capex": Find a near-optimal solution with min or max capex.
- "investment
": Find a near-optimal solution that minimizes or maximizes the investment for a given asset.
-
status(int) –Problem status.
-
system_cost(float) –System cost with the solution of the sensitivity analysis.
XpansionOutputSolution
dataclass
XpansionOutputSolution(
investment_cost: float,
iteration: int,
operational_cost: float,
optimality_gap: float,
overall_cost: float,
problem_status: str,
relative_gap: float,
stopping_criterion: str,
)
Xpansion output solution.
Attributes:
-
investment_cost(float) –Optimal investment cost found by the algorithm.
-
iteration(int) –Corresponding iteration for the best solution.
-
operational_cost(float) –Expectation of the yearly operational cost over all MC years of the linear relaxation of an Antares simulation for the system with the best investment.
-
optimality_gap(float) –Absolute gap between the lb and the best_ub (
(best_ub - lb)). -
overall_cost(float) –Sum of investment cost and
operational_cost. -
problem_status(str) –Problem status.
-
relative_gap(float) –At each iteration, the algorithm computes upper and lower bounds on the optimal cost. The algorithm stops as soon as the quantity
(best_ub - lb) / max(|best_ub|, |lb|)falls below relative_gap. For a relative gap \(\alpha\), the cost of the solution returned by the algorithm satisfies: $\(\frac{{\scriptstyle\texttt{xpansion solution cost}} - {\scriptstyle\texttt{optimal cost}}}{{\scriptstyle\texttt{optimal cost}}} < \alpha\)$. -
stopping_criterion(str) –Stopping criterion for the optimization problem.
XpansionResult
dataclass
XpansionResult(
antares: XpansionOutputAntares,
antares_xpansion: XpansionOutputAntares,
begin: datetime,
end: datetime,
iterations: dict[int, XpansionOutputIteration],
nb_weeks: int,
options: XpansionOutputOptions,
run_duration: float,
solution: XpansionOutputSolution,
candidates: dict[str, XpansionOutputCandidate],
)
Xpansion results.
Attributes:
-
antares(XpansionOutputAntares) –Antares version information.
-
antares_xpansion(XpansionOutputAntares) –Antares-Xpansion version information.
-
begin(datetime) –Timestamp of the start of the problem resolution.
-
end(datetime) –Timestamp of the end of the problem resolution.
-
iterations(dict[int, XpansionOutputIteration]) –Dictionary of all Benders iteration outputs.
-
nb_weeks(int) –Number of subproblems (= number of MC years × number of weeks solved per year).
-
options(XpansionOutputOptions) –Options for Xpansion module.
-
run_duration(float) –Duration of the problem resolution.
-
solution(XpansionOutputSolution) –Final optimal solution.
-
candidates(dict[str, XpansionOutputCandidate]) –Dictionary of all candidates.
XpansionSensitivityResult
dataclass
XpansionSensitivityResult(
antares: XpansionOutputAntares,
antares_xpansion: XpansionOutputAntares,
best_benders_cost: float,
epsilon: float,
candidates: dict[str, XpansionOutputCandidateSensitivity],
solution_max: XpansionOutputSensitivitySolution,
solution_min: XpansionOutputSensitivitySolution,
)
Xpansion sensitivity results.
Attributes:
-
antares(XpansionOutputAntares) –Antares version information.
-
antares_xpansion(XpansionOutputAntares) –Antares-Xpansion version information.
-
best_benders_cost(float) –Optimal objective value of the investment problem before the sensitivity analysis.
-
epsilon(float) –Allowed gap with
best_benders_costto consider that a solution is near-optimal (i.e. will be considered in the sensitivity analysis). -
candidates(dict[str, XpansionOutputCandidateSensitivity]) –Dictionary of candidate solutions for the sensitivity analysis.
-
solution_max(XpansionOutputSensitivitySolution) –Solution of the sensitivity analysis that maximises the objective.
-
solution_min(XpansionOutputSensitivitySolution) –Solution of the sensitivity analysis that minimises the objective.