From 0ca6710a7e003952e1212c8e32ebb2e7c008d508 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Wed, 24 Jul 2019 00:02:17 -0300 Subject: Newton bug fixed --- Project/PropertiesData.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Project/PropertiesData.h') diff --git a/Project/PropertiesData.h b/Project/PropertiesData.h index 4a6e8d0..e6c156a 100644 --- a/Project/PropertiesData.h +++ b/Project/PropertiesData.h @@ -22,7 +22,7 @@ #include "PowerElement.h" #include "wx/language.h" -enum PowerFlowMethod { GAUSS_SEIDEL = 0, NEWTON_RAPHSON }; +enum PowerFlowMethod { GAUSS_SEIDEL = 0, NEWTON_RAPHSON, GAUSS_NEWTON }; enum GUITheme { THEME_LIGHT = 0, THEME_DARK }; struct SimulationData { @@ -39,6 +39,7 @@ struct SimulationData { double powerFlowTolerance = 1e-7; int powerFlowMaxIterations = 5000; double initAngle = 0.0; + double gaussTolerance = 1e-2; // Stability double stabilityFrequency = 60.0; -- cgit