Methods - Internal

Index

Check methods

EnergyModelsFlex.check_period_tsFunction
check_period_ts(ts::RepresentativePeriods, n::PeriodDemandSink, msg::String)
check_period_ts(ts::OperationalScenarios, n::PeriodDemandSink, msg::String)
check_period_ts(ts::SimpleTimes, n::PeriodDemandSink, msg::String)

Function for checking that the timestructure is valid in combination with the chosen period structure in a [PeriodDemandSink(@ref).

source
EnergyModelsFlex.check_inputFunction
check_input(n::Union{LimitedFlexibleInput, Combustion})

This function checks that the input of a LimitedFlexibleInput or Combustion node are valid.

source
EnergyModelsFlex.check_cap_price_periodsFunction
check_cap_price_periods(l::CapacityCostLink, 𝒯, price_pers::Int64)
check_cap_price_periods(l::CapacityCostLink, 𝒯, price_pers::Vector{<:Number})

This method checks that the field check_cap_price_periods is correct.

Checks

  • If the field is an Int64, the field check_cap_price_periods is required to be positive.
  • If the field is an Vector{<:Number}, the field check_cap_price_periods is required to sum up to the value op_per_strat and each value in the Vector must be positive.
  • The individual capacity price periods must be able to represent the operational time structure
source
EnergyModelsFlex.get_sub_pers_durationsFunction
get_sub_pers_durations(l::CapacityCostLink, 𝒯)
get_sub_pers_durations(l::CapacityCostLink, 𝒯, price_pers::Int64)
get_sub_pers_durations(l::CapacityCostLink, 𝒯, price_pers::Vector{<:Number})

Returns the individual durations of the different sub periods within a time structure 𝒯 and CapacityCostLink l.

source