pwrs.power_models.voltage#
Formulation-neutral voltage products and derived-angle utilities.
- pwrs.power_models.voltage.branch_angle_coefficients(network)[source]#
Return the affine BF voltage-product coefficients for each branch.
- Parameters:
network (Any)
- Return type:
tuple[ndarray, …]
- pwrs.power_models.voltage.branch_pair_indices(network)[source]#
Map each physical branch to its aggregated directed bus-pair index.
- Parameters:
network (PowerNetwork)
- Return type:
ndarray
- pwrs.power_models.voltage.branch_voltage_product_values(network, w, pf, qf)[source]#
Evaluate BF voltage-product components used by angle constraints.
- Parameters:
network (Any)
w (ndarray)
pf (ndarray)
qf (ndarray)
- Return type:
tuple[ndarray, ndarray]
- pwrs.power_models.voltage.fit_voltage_angles(network, edges, angle_differences)[source]#
Fit bus angles to directed edge differences with references fixed.
- Parameters:
network (PowerNetwork)
edges (ndarray)
angle_differences (ndarray)
- Return type:
tuple[ndarray, float]
- pwrs.power_models.voltage.map_w_solution(solution, va)[source]#
Add polar voltage values and multipliers to a native W-space solution.
- Parameters:
solution (PowerModelSolution)
va (ndarray)
- Return type:
- pwrs.power_models.voltage.reconstruct_voltage_angles(network, wr, wi)[source]#
Fit bus angles to relaxed pair angles, fixing references at zero.
- Parameters:
network (PowerNetwork)
wr (ndarray)
wi (ndarray)
- Return type:
tuple[ndarray, float]
- pwrs.power_models.voltage.voltage_product_bounds(network)[source]#
Port PowerModels’ bus-pair rectangular voltage-product bounds.
- Parameters:
network (PowerNetwork)
- Return type:
tuple[ndarray, …]