gtopt/reserve_zone.hpp file

Defines the ReserveZone structure for spinning-reserve modeling.

This module defines the ReserveZone structure which represents a regional spinning-reserve requirement in the LP formulation. Each zone specifies up/down reserve requirements and shortage penalty costs.

Besides the fixed urreq / drreq schedules, a zone may define a dynamic requirement as the maximum of K affine planes (urreq_planes / drreq_planes) in the system demand, the system inertia and the largest single contingency — the CEN (Chile) primary frequency reserve (CPF) model of the ISSCC / ECFyDR studies:

R ≥ alpha_k + demand_coef_k·D + inertia_coef_k·I

  • contingency_coef_k·C ∀ k R ≥ max(0, req, min) (floor) Σ pf·prov + shortage ≥ R (shortage priced by urcost)

D is the EXOGENOUS system demand demand_load_factor · Σ lmax, so the demand term lives on the row RHS and never enters the bus prices. I (inertia, from an InertiaZone's provisions) and C (largest listed injection / load) are endogenous LP columns.

JSON Example

{
  "uid": 1, "name": "cpf_up", "urcost": 5000,
  "urreq_planes": [
    {"alpha": 516.0, "demand_coef": -0.0366,
     "inertia_coef": -0.0123, "contingency_coef": 1.25},
    {"alpha": 339.464, "demand_coef": -0.0235,
     "inertia_coef": -0.009986, "contingency_coef": 1.25}
  ],
  "demand_load_factor": 1.025,
  "inertia_zone": "sen",
  "contingency_generators": ["ccgt1", "ccgt2"]
}

Namespaces

namespace gtopt

Classes

struct gtopt::ReserveContingency
One contingency candidate of a dynamic requirement.
struct gtopt::ReserveRequirementPlane
One affine plane of a dynamic reserve requirement.
struct gtopt::ReserveZone
Regional spinning-reserve requirement zone.