Skip to contents

Class parameter is used to represent the model set or parameter. All parameters and sets used in the model are populated with data from the model repository on the interpolation stage and stored as a named list in model@modInp@data slot. The class and related methods and functions are not intended for direct use by the user.

Slots

name

character. Name of the parameter as it appears in GAMS, Julia/JuMP, Python/Pyomo, etc.

desc

character. Description of the parameter for reference.

type

factor. Type of the parameter, e.g., "set", "map", "numpar", or "bounds". "set" is a set of elements, "map" is a mapping between sets, "numpar" is a numeric parameter, "bounds" is a parameter with lower and upper bounds.

dimSets

character. A vector of sets used to define the dimension of the parameter.

defVal

numeric. Default value of numeric parameters. The default value is used to fill the missing values in the model objects. The values are used in the interpolation step and/or passed to the solver software.

data

data.frame. Data frame with the parameter values.

interpolation

character. Interpolation rule for a numeric parameter across years: any combination of the three directions back (extrapolate backward from the earliest anchor), inter (interpolate between anchors) and forth (extrapolate forward from the latest), joined by dots – back.inter.forth, inter.forth, inter. That spelling is canonical and is what gets stored. The short symmetric spellings are accepted wherever a rule is given and normalised to it: bwd for back, int or mid for inter, fwd (also forw, frw) for forth, so bwd.mid.fwd and back.inter.forth are the same rule. An unknown token is an error. An empty rule interpolates between anchors and extrapolates past neither.

inClass

character. The class of the parameter, e.g., "technology", "storage", "trade", "supply", "demand", "export", etc.

misc

list. Any additional information or data to store in the object.