gtopt/demand.hpp file

Header file defining demand-related structures for power system planning.

This module provides structures and types to represent and manipulate electrical demand (load) entities within the planning framework. A demand absorbs active power at a bus and can be expanded via capacity-planning variables to model flexible or expandable load.

JSON Example

{
  "uid": 1,
  "name": "d1",
  "bus": "b1",
  "lmax": 125.0,
  "capacity": 0,
  "expcap": 20,
  "expmod": 10,
  "annual_capcost": 8760
}

Fields that accept a number/array/string value can hold:

  • A scalar constant
  • A 2-D inline array indexed by [stage][block]
  • A filename string referencing a Parquet/CSV schedule in input_directory/Demand/

Namespaces

namespace gtopt

Classes

struct gtopt::Demand
Represents an electrical demand (load) at a bus.
struct gtopt::DemandAttrs
Technical and economic attributes shared by demand objects.