
An S4 class to represent model/scenario planning horizon with intervals (year-steps)
Source:R/class-horizon.R
class-horizon.RdAn S4 class to represent model/scenario planning horizon with intervals (year-steps)
Slots
namecharacter. Name of the horizon object. Used to distinguish between different horizons in the model or scenario, including the automatic creation of the folder name for the model/scenario scripts.
desccharacter. Description of the horizon object, for own references.
periodinteger. A planning period defined as a sequence of years (arranged, without gaps) of the model planning (e.g. optimization) window. Data with years before or after the planning
periodcan present in the model-objects and will be taken into account during interpolation of the model parameters.intervalsdata.frame. Data frame with the start, middle, and end year of every modelled interval, plus an optional display
label.start,midandendare integer years;midis the milestone and the model's key for the period.labelis a character display name, unique across intervals, filled frommidwhen not given, and rendered fiscally (FY2025-26) when the calendar carries a non-Januaryyear_start. The label is presentation only and never reaches the solver – seeyear_label().