Methods - Internal
Index
EnergyModelsFlex.check_cap_price_periodsEnergyModelsFlex.check_inputEnergyModelsFlex.check_limits_defaultEnergyModelsFlex.check_period_tsEnergyModelsFlex.get_avg_cap_priceEnergyModelsFlex.get_sub_periodsEnergyModelsFlex.get_sub_pers_durations
Check methods
EnergyModelsFlex.check_period_ts — Function
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).
EnergyModelsFlex.check_limits_default — Function
check_limits_default(n::Union{LimitedFlexibleInput, Combustion})This function checks that the limits of a LimitedFlexibleInput or Combustion node are valid.
EnergyModelsFlex.check_input — Function
check_input(n::Union{LimitedFlexibleInput, Combustion})This function checks that the input of a LimitedFlexibleInput or Combustion node are valid.
EnergyModelsFlex.check_cap_price_periods — Function
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 fieldcheck_cap_price_periodsis required to be positive. - If the field is an
Vector{<:Number}, the fieldcheck_cap_price_periodsis required to sum up to the valueop_per_stratand each value in theVectormust be positive. - The individual capacity price periods must be able to represent the operational time structure
Utility functions
EnergyModelsFlex.get_avg_cap_price — Function
get_avg_cap_price(l::CapacityCostLink, t_sub::Vector{TS.TimePeriod})Return the average capacity price over the sub period t_sub for the CapacityCostLink l.
EnergyModelsFlex.get_sub_periods — Function
get_sub_periods(l::CapacityCostLink, 𝒯)Return the vector of sub periods of the CapacityCostLink l.
EnergyModelsFlex.get_sub_pers_durations — Function
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.