Methods - Accessing fields
Index
EnergyModelsFlex.activation_consumptionEnergyModelsFlex.cap_priceEnergyModelsFlex.cap_price_periodsEnergyModelsFlex.cap_resourceEnergyModelsFlex.heat_resourceEnergyModelsFlex.limitsEnergyModelsFlex.number_of_periodsEnergyModelsFlex.period_demandEnergyModelsFlex.period_indexEnergyModelsFlex.period_length
PeriodDemandSink types
EnergyModelsFlex.period_demand — Function
period_demand(n::AbstractPeriodDemandSink)
period_demand(n::AbstractPeriodDemandSink, i::Int)Returns the period demand of AbstractPeriodDemandSink n as Array or in demand period i.
EnergyModelsFlex.period_length — Function
period_length(n::AbstractPeriodDemandSink)Returns the length of the demand period of AbstractPeriodDemandSink n.
EnergyModelsFlex.period_index — Function
period_index(n::AbstractPeriodDemandSink, t)Returns the index of the period (e.g., day) that a operational period t belongs to.
EnergyModelsFlex.number_of_periods — Function
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.
ActivationCostNode types
EnergyModelsFlex.activation_consumption — Function
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.
CapacityCostLink types
EnergyModelsFlex.cap_price_periods — Function
cap_price_periods(l::CapacityCostLink)Returns the number of sub-periods within a year for which a price is calculated of a capacity cost link l.
EnergyModelsFlex.cap_resource — Function
cap_resource(l::CapacityCostLink)Returns the resource for which the capacity is limited and has a price of a capacity cost link l.
EnergyModelsFlex.cap_price — Function
cap_price(l::CapacityCostLink)Returns the price per unit of maximum capacity usage of a capacity cost link l.
Combustion types
EnergyModelsFlex.limits — Function
limits(n::Combustion, p::Resource)Returns the limit of a resource p for a Combustion node n.
limits(n::Combustion)Returns all resources with defined limits for a Combustion node n.
EnergyModelsFlex.heat_resource — Function
heat_resource(n::Combustion)Returns the heat residual resource of a Combustion node n.