Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newton-Raphson method for state estimation #369

Closed
TonyXiang8787 opened this issue Sep 4, 2023 · 1 comment · Fixed by #499
Closed

Newton-Raphson method for state estimation #369

TonyXiang8787 opened this issue Sep 4, 2023 · 1 comment · Fixed by #499
Labels
feature New feature or request

Comments

@TonyXiang8787
Copy link
Member

TonyXiang8787 commented Sep 4, 2023

Newton-Raphson method should solve the issue in #237

@mgovers
Copy link
Member

mgovers commented Feb 8, 2024

Update 2024/02/08:

Since #438 , Newton-Raphson for state estimation is now in beta as an experimental feature.

Because we do not officially support it yet, nor guarantee its correctness, it is not yet possible to call this feature via the regular API's PowerGridModel.calculate_state_estimation).

Instead, to use the experimental feature, call the protected method PowerGridModel._calculate_state_estimation with as arguments:

  • calculation_method=CalculationMethod.newton_raphson
  • experimental_features=power_grid_model.enum._ExperimentalFeatures.enabled
  • any other arguments which are the same arguments as for the iterative linear case.

E.g. someone who would usually call

from power_grid_model import PowerGridModel
from power_grid_model.enum import CalculationMethod

# create input data
model = PowerGridModel(input_data)
model.calculate_state_estimation(calculation_method=CalculationMethod.iterative_linear)

may run the Newton-Raphson state estimation by running

from power_grid_model import PowerGridModel
from power_grid_model.enum import CalculationMethod, _ExperimentalFeatures

# create input data
model = PowerGridModel(input_data)
model.calculate_state_estimation(calculation_method=CalculationMethod.newton_raphson, experimental_features=_ExperimentalFeatures.enabled)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Archived in project
2 participants