gtopt::ReserveProvision struct

Generator contribution to spinning-reserve zone(s).

Links a Generator to one or more ReserveZone entries and defines the maximum reserve it may offer, optional capacity-factor limits, and the reserve bid cost.

reserve_zones is a typed array of ReserveZone references (each element is either a Uid number or a Name string).

Public static variables

static LPClassName class_name

Public variables

OptActive active
Activation status.
OptName description
OptTBRealFieldSched dr_capacity_factor
OptTBRealFieldSched dr_provision_factor
OptTBRealFieldSched drcost
OptTBRealFieldSched drmax
Maximum down-reserve offer [MW].
OptTBRealFieldSched drmin
SingleId generator
ID of the providing generator.
Name name
Human-readable name.
Array<SingleId> reserve_zones
Typed array of ReserveZone IDs / names.
OptName type
Optional element type/category tag.
Uid uid
Unique identifier.
OptTBRealFieldSched ur_capacity_factor
OptTBRealFieldSched ur_provision_factor
OptTBRealFieldSched urcost
OptTBRealFieldSched urmax
Maximum up-reserve offer [MW].
OptTBRealFieldSched urmin

Extended (CEN SSCC) provision model

Per-zone effectiveness factors, parallel to reserve_zones (minuta (A.3)–(A.12)): the SAME up column enters zone z's requirement row with ur_provision_factor · ur_zone_factors[z]. One CPF+ variable then serves the 5 min, 10 s and normal requirements, each with its own factor. Missing / short = 1.0.

Array<Real> ur_zone_factors
Array<Real> dr_zone_factors
OptBool shared_headroom
OptBool offline
OptBool symmetric
Symmetric provision (minuta (A.13)): r_up = r_dn every block.

Native BESS per-side response caps

PLEXOS Max Response / Max Charge Response of a battery in a reserve. Only read when the generator is the discharge generator of a Battery with reserve_sustain_hours: the provision is split r = r_dis + r_chg, the discharge side bounded by its headroom (up: Pd − pd; down: pd, only with reserve_discharge_credit) and the charge side by its own (up: pc; down: Pc − pc), each capped by these schedules [MW]. Unset = no cap on that side.

OptTBRealFieldSched urmax_response
Up from more discharge.
OptTBRealFieldSched urmax_charge_response
Up from less charge.
OptTBRealFieldSched drmax_response
Down from less discharge.
OptTBRealFieldSched drmax_charge_response
OptTBRealFieldSched ur_energy_usage
OptTBRealFieldSched dr_energy_usage
Down analogue.

SSCC known variable-cost adders

Each field is optional and off by default. They add to the objective coefficient of the provision column (per MW·h held):

c = urcost + ur_partload_cost

  • ur_activation_factor · (ur_activation_cost
    • ur_degradation_cost)

and are written separately (ReserveProvision/up_partload_cost, up_activation_cost, up_degradation_cost [$/h]) so a study can split θ = known variable costs + derived maintenance delta. urcost stays the remaining direct provision cost (wear).

Part-load efficiency penalty of holding reserve [$/MW·h] (thermal unit backed off its best-efficiency point). Alternative: model the part-load heat rate itself with Generator.heat_rate_segments.

OptTBRealFieldSched ur_partload_cost
OptTBRealFieldSched dr_partload_cost
OptTBRealFieldSched ur_activation_factor
OptTBRealFieldSched dr_activation_factor
OptTBRealFieldSched ur_activation_cost
OptTBRealFieldSched dr_activation_cost
OptTBRealFieldSched ur_degradation_cost
OptTBRealFieldSched dr_degradation_cost
Down analogue.

Variable documentation

static LPClassName gtopt::ReserveProvision::class_name

Canonical class-name constant used in LP row labels and config fields like VariableScale::class_name. Single source of truth — ReserveProvisionLP exposes no separate ClassName member; callers reach the constant via ReserveProvision::class_name directly (or ReserveProvisionLP::Element::class_name in generic contexts).

OptName gtopt::ReserveProvision::description

Optional free-text description (e.g. conversion provenance)

OptTBRealFieldSched gtopt::ReserveProvision::dr_capacity_factor

Down-reserve capacity factor [p.u.] — same shapes as ur_capacity_factor.

OptTBRealFieldSched gtopt::ReserveProvision::dr_provision_factor

Down-reserve provision factor [p.u.] — per-(stage, block).

OptTBRealFieldSched gtopt::ReserveProvision::drcost

Down-reserve bid cost [$/MW] — per-(stage, block).

OptTBRealFieldSched gtopt::ReserveProvision::drmin

Minimum down-reserve provision floor [MW] per-(stage, block). Same semantics as urmin for the down-reserve column.

OptTBRealFieldSched gtopt::ReserveProvision::ur_capacity_factor

Up-reserve capacity factor [p.u.] — per-(stage, block); accepts a scalar (broadcasts), a 2-D nested array, or a file-backed schedule.

OptTBRealFieldSched gtopt::ReserveProvision::ur_provision_factor

Up-reserve provision factor [p.u.] — per-(stage, block); same shapes as ur_capacity_factor.

OptTBRealFieldSched gtopt::ReserveProvision::urcost

Up-reserve bid cost [$/MW] — per-(stage, block).

OptTBRealFieldSched gtopt::ReserveProvision::urmin

Minimum up-reserve provision floor [MW] per-(stage, block). When set, gtopt adds the row provision_up >= urmin on the LP, forcing the unit to commit at least urmin MW to up-reserve whenever the gen is on. Mirrors PLEXOS's per-(Reserve, Generator) Min Provision / Min Spinning < Provision / Min Replacement < Provision properties.

Array<Real> gtopt::ReserveProvision::dr_zone_factors

Down analogue of ur_zone_factors

OptBool gtopt::ReserveProvision::shared_headroom

Shared headroom (minuta (A.23)–(A.24)): every provision of the same generator with this flag shares ONE pair of rows p + Σ r_up ≤ Pmax(·u) and p − Σ r_dn ≥ Pmin(·u) instead of one pair per provision (CPF + CSF + CTF on one unit).

OptBool gtopt::ReserveProvision::offline

Offline (cold) up reserve (minuta (A.19), CTF "en frío"): the up column needs no headroom and, when the generator has a Commitment, is gated r_up ≤ urmax · (1 − u) (offered only while OFF).

OptTBRealFieldSched gtopt::ReserveProvision::drmax_charge_response

Down from more charge

OptTBRealFieldSched gtopt::ReserveProvision::ur_energy_usage

Expected deployment energy of THIS provision [MWh per MW per hour], charged to the battery SoC; overrides Battery.reserve_energy_usage_up/down (PLEXOS CF_*_COMP coefficient per reserve, e.g. CSF 0.3, CPF/CTF 0).

OptTBRealFieldSched gtopt::ReserveProvision::dr_partload_cost

Down analogue

OptTBRealFieldSched gtopt::ReserveProvision::ur_activation_factor

Activation factor γ [MWh deployed per MW·h held, 0..1]: expected energy of the reserve that is actually deployed (CEN "factor de activación", PCP objective C_disp + C_act·γ). Needed by the activation and degradation costs; unset = 0.

OptTBRealFieldSched gtopt::ReserveProvision::dr_activation_factor

Down analogue

OptTBRealFieldSched gtopt::ReserveProvision::ur_activation_cost

Cost of the deployed energy [$/MWh]. Unset with γ set: the generator's SRMC (fuel + VOM) for UP reserve, 0 for DOWN reserve (the fuel saved is not credited: no negative reserve costs).

OptTBRealFieldSched gtopt::ReserveProvision::dr_activation_cost

Down analogue

OptTBRealFieldSched gtopt::ReserveProvision::ur_degradation_cost

Degradation cost per MWh of deployed throughput [$/MWh] (BESS cycling of activated reserve), applied to γ·r.