Internal types

Internal supertypes

TimeStruct.TimeStructurePeriodType
abstract type TimeStructurePeriod{T} <: TimeStructure{T}

Abstract type representing different time structures that consists of one or more time periods. It is used for TimeStructures that can also act as index for periods, e.g., AbstractStrategicPeriod.

The type 'T' gives the data type used for the duration of the time periods.

source
TimeStruct.TimeStructInnerIterType
abstract type TimeStructInnerIter{T<:Duration}

Abstract type representing different iterators for individual time structures. The difference to TimeStructure is that iterating through a TimeStructInnerIter will not provide a TimePeriod, but a TimeStructure.

Note

TimeStructInnerIter and TimeStructOuterIter are comparable. The former is implemented for the inner level, that is if you want to use, e.g., opscenarios(OperationalScenarios()) while the latter is used for the outer level, e.g., opscenarios(StrategicPeriod()).

source
TimeStruct.TimeStructOuterIterType
abstract type TimeStructOuterIter{T<:Duration}

Abstract type representing different iterators for individual time structures. The difference to TimeStructure is that iterating through a TimeStructOuterIter will not provide a TimePeriod, but a TimeStructure.

Note

TimeStructInnerIter and TimeStructOuterIter are comparable. The former is implemented for the inner level, that is if you want to use, e.g., opscenarios(OperationalScenarios()) while the latter is used for the outer level, e.g., opscenarios(StrategicPeriod()).

source

Strategic period types (TwoLevelTree)

Single types

TimeStruct.StrategicScenarioType
struct StrategicScenario

Desription of an individual strategic scenario. It includes all strategic nodes corresponding to a scenario, including the probability. It can be utilized within a decomposition algorithm.

source

Iterator types

TimeStruct.StratTreeNodesType
struct StratTreeNodes{S,T,OP<:TimeStructure{T}} <: AbstractStratPers{T}

Type for iterating through the individual strategic nodes of a TwoLevelTree. It is automatically created through the function strat_periods, and hence, strategic_periods.

Iterating through StratTreeNodes using the WithPrev iterator changes the behaviour, although the meaning remains unchanged.

source

Strategic period types (TwoLevel)

Single types

TimeStruct.AbstractStrategicPeriodType
abstract type AbstractStrategicPeriod{S,T} <: TimeStructurePeriod{T}

Abstract type used for time structures that represent a strategic period. These periods are obtained when iterating through the strategic periods of a time structure declared by the function strat_periods.

source
TimeStruct.StrategicPeriodType
struct StrategicPeriod{S,T,OP<:TimeStructure{T}} <: AbstractStrategicPeriod{S,T}

A type representing a single strategic period supporting iteration over its time periods. It is created when iterating through StratPers.

source

Iterator types

TimeStruct.AbstractStratPersType
abstract type AbstractStratPers{S,T} <: TimeStructInnerIter

Abstract type used for time structures that represent a collection of strategic periods, obtained through calling the function strat_periods.

source
TimeStruct.StratPersType
struct StratPers{S,T,OP} <: AbstractStratPers{T}

Type for iterating through the individual strategic periods of a TwoLevel time structure. It is automatically created through the function strat_periods.

source

Representative period types

Single types

TimeStruct.AbstractRepresentativePeriodType
abstract type AbstractRepresentativePeriod{T} <: TimeStructurePeriod{T}

Abstract type used for time structures that represent a representative period. These periods are obtained when iterating through the representative periods of a time structure declared by the function repr_periods.

source
TimeStruct.SingleReprPeriodType
struct SingleReprPeriod{T,OP<:TimeStructure{T}} <: AbstractRepresentativePeriod{T}

A type representing a single representative period supporting iteration over its time periods. It is created when iterating through SingleReprPeriodWrapper.

source
TimeStruct.RepresentativePeriodType
struct RepresentativePeriod{T,OP<:TimeStructure{T}} <: AbstractRepresentativePeriod{T}

A type representing a single representative period supporting iteration over its time periods. It is created when iterating through ReprPers.

source
TimeStruct.StratReprPeriodType
struct StratReprPeriod{T,OP<:TimeStructure{T}} <: AbstractRepresentativePeriod{T}

A type representing a single representative period supporting iteration over its time periods. It is created when iterating through StratReprPers.

source

Iterator types

Operational scenarios types

Single types

TimeStruct.AbstractOperationalScenarioType
abstract type AbstractOperationalScenario{T} <: TimeStructurePeriod{T}

Abstract type used for time structures that represent an operational scenario. These periods are obtained when iterating through the operational scenarios of a time structure declared by the function opscenarios.

source
TimeStruct.SingleScenarioType
struct SingleScenario{T,SC<:TimeStructure{T}} <: AbstractRepresentativePeriod{T}

A type representing a single operational scenario supporting iteration over its time periods. It is created when iterating through SingleScenarioWrapper.

source
TimeStruct.OperationalScenarioType
struct OperationalScenario{T,OP<:TimeStructure{T}} <: AbstractOperationalScenario{T}

A type representing a single operational scenario supporting iteration over its time periods. It is created when iterating through OpScens.

source
TimeStruct.ReprOpScenarioType
struct ReprOpScenario{T,OP<:TimeStructure{T}} <: AbstractOperationalScenario{T}

A type representing a single operational scenarios supporting iteration over its time periods. It is created when iterating through RepOpScens.

source
TimeStruct.StratOpScenarioType
struct StratOpScenario{T,OP<:TimeStructure{T}} <: AbstractOperationalScenario{T}

A type representing a single operational scenario supporting iteration over its time periods. It is created when iterating through StratOpScens.

source
TimeStruct.StratReprOpScenarioType
struct StratReprOpScenario{T, OP<:TimeStructure{T}} <: AbstractRepresentativePeriod{T}

A type representing a single representative period supporting iteration over its time periods. It is created when iterating through StratReprPers.

source
TimeStruct.StratNodeReprOpScenarioType
struct StratNodeReprOpScenario{T} <: AbstractOperationalScenario{T}

A structure representing a single operational scenario for a representative period in A TwoLevelTree structure supporting iteration over its time periods.

source

Iterator types

TimeStruct.StratOpScensType
struct StratOpScens{T,OP<:TimeStructInnerIter{T}} <: TimeStructOuterIter{T}

Type for iterating through the individual operational scenarios of a StrategicPeriod time structure. It is automatically created through the function opscenarios.

source

Operational period types

TimeStruct.TimePeriodType
abstract type TimePeriod

Abstract type used for a uniform interface for iterating through time structures and indexing of time profiles.

source
TimeStruct.CalendarPeriodType
struct CalendarPeriod{T} <: TimePeriod

Time period for a single operational period. It is created through iterating through a CalendarTimes time structure with duration measured in hours (by default).

source
TimeStruct.OperationalPeriodType
struct OperationalPeriod{P} <: TimePeriod where {P<:TimePeriod}

Time period for a single operational period. It is created through iterating through a TwoLevel time structure.

source
TimeStruct.TreePeriodType
struct TreePeriod{P} <: TimePeriod where {P<:TimePeriod}

Time period for iteration of a TwoLevelTree time structure. This period has in addition to an operational period also the two fields branch and prob_branch corresponding to the respective branch and probability of the branch

Using OperationalScenarios

The probability will always only correspond to the branch probability, even when you utilize OperationalScenarios. Using the function probability includes however the scenario probability.

source