kirchhoff namespace
Namespaces
- namespace cycle_basis
- namespace node_angle
Functions
- auto add_line_kvl_rows(const SystemContext& sc, const ScenarioLP& scenario, const StageLP& stage, LinearProblem& lp, const LineLP& line, const BusLP& bus_a_lp, const BusLP& bus_b_lp, 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:: add_line_kvl_rows(const SystemContext& sc,
const ScenarioLP& scenario,
const StageLP& stage,
LinearProblem& lp,
const LineLP& line,
const BusLP& bus_a_lp,
const BusLP& bus_b_lp,
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>
Per-line KVL row emission, dispatched by model_options.kirchhoff_mode:
node_angle: forwards tokirchhoff::node_angle::add_line_kvl_rowsand returns the per-block row-index map for the caller (LineLP) to store.cycle_basis: returns an empty map. KVL rows in cycle_basis mode are emitted at the system level bykirchhoff::cycle_basis::add_kvl_rowsafter every line has finished creating its flow vars.
Reads per-stage scalars (reactance, voltage, tap_ratio, phase_shift_deg) directly from the LineLP via its param_* accessors, so the dispatcher carries no per-line state.