Methods - Accessing fields

Index

PeriodDemandSink types

EnergyModelsFlex.period_demandFunction
period_demand(n::AbstractPeriodDemandSink)
period_demand(n::AbstractPeriodDemandSink, i::Int)

Returns the period demand of AbstractPeriodDemandSink n as Array or in demand period i.

source
EnergyModelsFlex.period_indexFunction
period_index(n::AbstractPeriodDemandSink, t)

Returns the index of the period (e.g., day) that a operational period t belongs to.

source
EnergyModelsFlex.number_of_periodsFunction
number_of_periods(n::AbstractPeriodDemandSink)
number_of_periods(n::AbstractPeriodDemandSink, 𝒯::TimeStructure)

Returns the number of periods for a PeriodDemandSink n. If a TimeStructure is provided it calculates it based on the chosen time structure.

source

ActivationCostNode types

EnergyModelsFlex.activation_consumptionFunction
activation_consumption(n::ActivationCostNode)
activation_consumption(n::ActivationCostNode, p::Resource)

Returns the demand during activation of ActivationCostNode n as dictionary or for input Resource p. If p is not included in the dictionary, it returns a value of 0.

source