Variables

In the following, all variables used in AnyMOD are listed. Information includes the name used throughout the model, the variables' unit, and its dimensions according to the symbols introduced in Sets and Mappings. Also, it is specified what determines the instances a variable is actually created for, in which constraints a variable appears, and the model part it is assigned to.

To increase performance, AnyMOD stores variables within DataFrames instead of using JuMPs native containers. Each variable dimension is represented by a column and integers in these columns relate to nodes within the hierarchical trees of sets (see printObject on how to export these in a readable format). An additional var column stores the corresponding variables. These variables are not JuMP variable objects, but JuMP expressions, that already include scaling factors.

All variables are defined positive. New variables beyond those listed here can freely be added to a model by using standard JuMP commands.

Dispatch of technologies

Generation and use

Quantities generated and used by technology.

To reduce model size variables are not created, if the availability is zero. Also, mode dependant variables are only created where required. For example, for a technology with mode specific generation ratios, different variables for each mode are only created for gen, but not for use.

namegenuse
unitGWh
dimension$Ts_{exp}$, $Ts_{dis}$, $R_{dis}$, $C$, $Te$, ($M$)
instances
  • dispatch resolution of carrier
  • expansion time-steps of technology
  • relevant modes of technology
  • respective availability exceeds zero
related constraints
parttechnology

Charging and discharging

Externally and internally charged and discharged quantities (see Technologies for explanation).

To reduce model size variables are not created, if the availability is zero. Also, mode dependant variables are only created where required.

namestExt{In/Out}stInt{In/Out}
unitGWh
dimension$Ts_{exp}$, $Ts_{dis}$, $R_{dis}$, $C$, $Te$, ($M$)
instances
  • dispatch resolution of carrier
  • expansion time-steps of technology
  • relevant modes of technology
  • respective availability exceeds zero
related constraints
    parttechnology

    Storage level

    Quantity stored by storage system.

    To reduce model size variables are not created, if the availability is zero. Also, mode dependant variables are only created where required.

    namestLvl
    unitGWh
    dimension$Ts_{exp}$, $Ts_{dis}$, $R_{dis}$, $C$, $Te$, ($M$)
    instances
    • dispatch resolution of carrier
    • expansion time-steps of technology
    • relevant modes of technology
    • availability exceeds zero
    related constraints
    parttechnology

    Non-technology dispatch

    Exchange quantities

    Quantity exchanged from one region to the other. The variable is directed meaning it only denotes exchange into one direction.

    Variables are only created between regions that can actually exchange energy, which depends on the definition of residual capacity.

    nameexc
    unitGWh
    dimension$Ts_{dis}$, $R_{from}$, $R_{to}$, $C$
    instances
    related constraints
    partexchange

    Buy and sell

    Quantities bought or sold on an external market.

    nametrdBuytrdSell
    unitGWh
    dimension$Ts_{dis}$, $R_{dis}$, $C$
    instances
    related constraints
    parttrade

    Curtailment and loss-of-load

    Curtailed quantities and unmet demand.

    namelsscrt
    unitGWh
    dimension$Ts_{dis}$, $R_{dis}$, $C$
    instances
    related constraints
    partbalance

    Capacity expansion

    Expansion

    Expansion of conversion, storage-input, storage-output, storage-size, and exchange capacity.

    As explained here, capacity refers to capacity before efficiency!

    nameexpConvexpSt{In/Out/Size}expExc
    unitGW
    dimension$Ts_{exp}$, $R_{exp}$, $Te$$Ts_{exp}$, $R_{exp}$, $C$, $Te$$Ts_{exp}$, $R_{from}$, $R_{to}$, $C$
    instances
    • expansion resolution of technology
    • regions can exchange carrier
    • expansion resolution of carrier
    • if uses or generates carriers
    • each stored carrier
    related constraints
    parttechnologyexchange

    Installed capacity

    Installed capacity of conversion, storage-input, storage-output, storage-size, and exchange capacity.

    As explained here, capacity refers to capacity before efficiency!

    namecapaConvcapaSt{In/Out/Size}capaExc
    unitGW
    dimension$Ts_{exp}$, $R_{exp}$, $Te$$Ts_{exp}$, $R_{exp}$, $C$, $Te$$Ts_{exp}$, $R_{from}$, $R_{to}$, $C$
    instances
    • superordinate dispatch resolution (usually years)
    • spatial expansion resolution of technology
    • spatial expansion resolution of carrier
    • regions can exchange carrier
    • if uses or generates carriers
    • each stored carrier
    related constraints
    parttechnologyexchange

    Operated capacity

    Operated capacity of conversion, storage-input, storage-output, storage-size, and exchange capacity.

    As explained here, capacity refers to capacity before efficiency!

    nameoprCapaConvoprCapaSt{In/Out/Size}oprCapaExc
    unitGW
    dimension$Ts_{exp}$, $R_{exp}$, $Te$$Ts_{exp}$, $R_{exp}$, $C$, $Te$$Ts_{exp}$, $R_{from}$, $R_{to}$, $C$
    instances
    • superordinate dispatch resolution (usually years)
    • spatial expansion resolution of technology
    • spatial expansion resolution of carrier
    • regions can exchange carrier
    • if uses or generates carriers
    • each stored carrier
    related constraints
    parttechnologyexchange

    Costs

    The variables listed here solely serve the purpose to aggregate different kinds of costs and do not have any other function within the model. Therefore, their structure is a bit arbitrary and was chosen to facilitate reporting without adversely affecting performance.

    Expansion cost

    Costs of capacity expansion.

    As explained here, capacity and thus also costs of capacity expansion, refer to capacity before efficiency!

    namecostExp{Conv,StIn,StOut,StSize}costExp{Exc}
    unitMil.€
    dimension$Ts_{exp}$, $R_{exp}$, $Te$$Ts_{exp}$, $C$
    instances
    related constraints
    partobjective

    Operating cost

    Costs of operating capacity.

    As explained here, capacity and thus also operating costs, refer to capacity before efficiency!

    namecostOpr{Conv,StIn,StOut,StSize}costOpr{Exc}
    unitMil.€
    dimension$Ts_{sup}$, $R_{exp}$, $Te$$Ts_{sup}$, $C$
    instances
    related constraints
    partobjective

    Variable cost

    Variable costs associated with quantities dispatched. Costs incurred by emission prices are included in costVarUse.

    namecostVar{Use,Gen,StIn,StOut}costVar{Exc}
    unitMil.€
    dimension$Ts_{sup}$, $R_{exp}$, $Te$$Ts_{sup}$, $C$
    instances
    related constraints
    partobjective

    Trade cost

    Costs and revenues from buying or selling carriers on an external market.

    namecostTrdBuycostTrdSell
    unitMil.€
    dimension$Ts_{sup}$, $R_{exp}$, $C$
    instances
    related constraints
    partobjective

    Curtailment and loss-of-load cost

    Cost of curtailment and unmet demand.

    To allow for revenues and costs from curtailment, costCrt is the only model variable that can also take negative values.

    namecostCrtcostLss
    unitMil.€
    dimension$Ts_{sup}$, $R_{exp}$, $C$
    instances
    related constraints
    partobjective