From 3e5dd89ddf6d9d3b94d4cd53e3b6d7198f1a8f86 Mon Sep 17 00:00:00 2001 From: Roman Bolgaryn Date: Tue, 24 Oct 2023 14:46:59 +0200 Subject: [PATCH] bugfix powerflow algorithm id for fdxb, fdbx (closes #2142) --- CHANGELOG.rst | 1 + pandapower/pf/runpf_pypower.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6eb76b3f1..ffa31e7a7 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -32,6 +32,7 @@ Change Log - [CHANGED] PowerFactory converter - name :code:`for_name` as :code:`equipment` for all elements; also add to line - [ADDED] option to use a second tap changer for the trafo element - [FIXED] :code:`convert_format.py`: update the attributes of the characteristic objects to match the new characteristic +- [FIXED] fixed the wrong id numbers for pypower powerflow algorithms fdxb and fdbx [2.13.1] - 2023-05-12 diff --git a/pandapower/pf/runpf_pypower.py b/pandapower/pf/runpf_pypower.py index 6972a7739..5b912eb22 100644 --- a/pandapower/pf/runpf_pypower.py +++ b/pandapower/pf/runpf_pypower.py @@ -78,7 +78,7 @@ def _get_options(options, **kwargs): max_iteration = options["max_iteration"] # algorithms implemented within pypower - algorithm_pypower_dict = {'nr': 1, 'fdbx': 2, 'fdxb': 3, 'gs': 4} + algorithm_pypower_dict = {'nr': 1, 'fdxb': 2, 'fdbx': 3, 'gs': 4} ppopt = ppoption(ENFORCE_Q_LIMS=enforce_q_lims, PF_TOL=tolerance_mva, PF_ALG=algorithm_pypower_dict[algorithm], **kwargs)