Skip to content

Promote _maybe_add_reactive_power_* helpers to common_models/ #120

@acostarelli

Description

@acostarelli

The VSC two-terminal formulations introduce a small pair of helpers that gate reactive variable / constraint creation on whether the network model is AC or active-only:

  • _maybe_add_reactive_power_variables! (src/twoterminal_hvdc_models/TwoTerminalDC_branches.jl)
  • _maybe_add_reactive_power_constraints! (same file)

Other branch / converter formulations across POM (LCC HVDC, multi-terminal converters, AC branches with conditional reactive support, etc.) implement the same AC-vs-active-only gating ad hoc. Promoting these helpers to src/common_models/ and parameterizing them by the device type, variable types, and constraint types would let those formulations share the same gating mechanism instead of duplicating the <:AbstractPowerModel / <:AbstractActivePowerModel dispatch pattern.

Follow-up to the discussion in #119: #119 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions