An S4 class to declare a demand in the model
Slots
namecharacter. Name of the demand.
desccharacter. Optional description of the demand for reference.
commoditycharacter. Name of the commodity for which the demand will be specified.
unitcharacter. Optional unit of the commodity.
demanddata.frame. Specification of the demand.
- region
character. Name of region for the demand value. NA for every region.
- year
integer. Year of the demand. NA for every year.
- timeslice
character. Name of the timeslice for the demand value. NA for every timeslice.
- demand
numeric. Value of the demand.
clusterdata.frame. Declaration of the demand's parallel parts. For demand a cluster is a SUB-REGIONAL SHARE: the object carries one total, declared at a coarse region, and each cluster takes a fixed fraction of it in one finer region. Variant expansion mints one
demset member per cluster andpDemandis indexed bydem, soeqDemInpsums the parts back – the coarse figure is the AGGREGATE of its children and stays the number you edit. LIMITATION – onlydem.share.fx, deliberately. Alo/upsplit would need the LP to CHOOSE where load sits inside the region, and nothing indexed bydemis a variable for such a bound to act on:pDemandsits on the right-hand side of an equality. There is nocap.share.fxeither (a demand has no capacity) and noact.share.*(same reason – no variable per demand object). Shares are fractions of THIS object's total and must sum to 1, so one demand object is one coarse region. Several zones are several demand objects, the same way onelossTranches()object is one line. Note the commodity's own@geoframeis a different question: a commodity balanced at the coarse level cannot read region-level demand at all, and declaring both is refused. Split the demand when the commodity stays at the finer level.- cluster
character. Cluster label, referenced by the
clustercolumn of@demand.- desc
character. Optional description of the share.
- region
character. The finer region this share lands in. Required – it is where the share of the demand goes.
- dem.share.fx
numeric. This cluster's fixed fraction of the object's total demand. Must be positive, and the shares of one object must sum to 1.
- order
integer. Optional ordering for reporting. Without it labels sort alphabetically and "R10" would precede "R2".
regioncharacter. Optional name of region to narrow the specification of the demand in the case of used NAs. Error will be returned if specified regions in
@demandare not mensioned in the@regionslot (if the slot is not empty).misclist. Optional list of additional information.
