
An S4 class to represent commodity export to the rest of the world.
Source:R/class-export.R
class-export.RdExport object represent commodity export to the Rest of the World (RoW).
Details
export is a type of process that adds an "external" source to a commodity
to the model. The Rest of the World (RoW) is not modeled explicitly,
export and import objects define and control the exchange with the RoW.
The operation of the export object is similar to the demand objects,
the two different classes are used to distinguish domestic and external
sources of final consumption.
The export is controlled by the exp data frame, which specifies
bounds and fixed values for the export of the export flow.
The exp.fx column is used to specify fixed values of the export flow,
making the export flow exogenous. The exp.lo and exp.up columns are used
to specify lower and upper bounds of the export flow, making the export flow
endogenous. The price column is used to specify the exogenous price
for the export commodity.
The reserve slot is used to set limits on the total export over the
model horizon.
Slots
namecharacter. Name of the export object, used in sets.
desccharacter. Description of the export object.
commoditycharacter. Name of the exported commodity.
unitcharacter. Unit of the exported commodity.
reservedata.frame. Cumulative limit over the whole model horizon, summed across ALL regions, years and timeslices. A data.frame (rather than the bare number it was before 0.85) so it can carry a
clustercolumn and be split across price steps; without that every step would inherit the FULL limit and the model would quietly holdnstepstimes the resource. A plain number is still accepted by the constructor and read asres.up. There is deliberately noregioncolumn: adding one would turn this into a per-region cap and LOSE the all-region total, which is what it means today.- cluster
character. Price step this row applies to, NA for every step.
- res.lo
numeric. Lower bound on the cumulative volume.
- res.up
numeric. Upper bound on the cumulative volume.
- res.fx
numeric. Fixed cumulative volume. Overrides
res.loandres.up.
exportdata.frame. Export parameters.
- cluster
character. Price step this row applies to, NA for every step. See the
clusterslot.- region
character. Region name to apply the parameter; use NA to apply to all regions.
- year
integer. Year to apply the parameter; use NA to apply to all years.
- timeslice
character. Time timeslice to apply the parameter; use NA to apply to all timeslices.
- exp.lo
numeric. Export lower bound.
- exp.up
numeric. Export upper bound.
- exp.fx
numeric. Fixed export volume, ignored if NA. This parameter overrides
exp.loandexp.up.- price
numeric. Price received per unit exported. Export revenue is a NEGATIVE cost – the minus sits inside
eqExportRowCost– so a higher price is a better outcome for the objective.
misclist. Additional information.