node_angle namespace
Classes
- struct LineKvlInputs
Functions
- auto add_line_kvl_rows(const SystemContext& sc, const ScenarioLP& scenario, const StageLP& stage, LinearProblem& lp, const BusLP& bus_a_lp, const BusLP& bus_b_lp, const LineKvlInputs& inputs, const BIndexHolder<ColIndex>& fpcols, const BIndexHolder<ColIndex>& fncols, const BIndexHolder<std::vector<ColIndex>>& fpsegcols, const BIndexHolder<std::vector<ColIndex>>& fnsegcols, const BIndexHolder<ColIndex>& fscols = {}) -> BIndexHolder<RowIndex>
Function documentation
BIndexHolder<RowIndex> gtopt:: kirchhoff:: node_angle:: add_line_kvl_rows(const SystemContext& sc,
const ScenarioLP& scenario,
const StageLP& stage,
LinearProblem& lp,
const BusLP& bus_a_lp,
const BusLP& bus_b_lp,
const LineKvlInputs& inputs,
const BIndexHolder<ColIndex>& fpcols,
const BIndexHolder<ColIndex>& fncols,
const BIndexHolder<std::vector<ColIndex>>& fpsegcols,
const BIndexHolder<std::vector<ColIndex>>& fnsegcols,
const BIndexHolder<ColIndex>& fscols = {})
#include <gtopt/kirchhoff_node_angle.hpp>
Emit one KVL equality row per block for a single line. Returns the per-block RowIndex map so the caller can store it (typically in LineLP::theta_rows[(scenario, stage)]) for later dual output. Returns an empty map when the line is a DC link (reactance unset, or X = 0 / sub-threshold X under tiny_reactance_mode = dc), or when either bus has no theta column for this (scenario, stage). A zero-impedance tie (X = 0 / sub-threshold X under tiny_reactance_mode = tie) gets the row without the flow term: −θ_a + θ_b = −φ.