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 new stopping criteria #699

Merged
merged 38 commits into from
Feb 10, 2023
Merged

Conversation

lejeana
Copy link
Contributor

@lejeana lejeana commented Jan 10, 2023

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
feature: add a new Newton-Raphson convergence criteria for OPLF.

What is the current behavior? (You can also link to an open issue here)
Only one Newton-Raphson convergence criteria that is hardcoded using mismatch vector norm

What is the new behavior (if this is a feature change)?
A new Newton-Raphson convergence criteria that different value based on the unit for Voltage, Active Power, Reactive Power.

Does this PR introduce a breaking change or deprecate an API? If yes, check the following:

  • The Breaking Change or Deprecated label has been added
  • The migration guide has been updated in the github wiki (What changes might users need to make in their application due to this PR?)

@lejeana lejeana requested a review from obrix January 10, 2023 14:37
@AnkurArohi
Copy link

I do not understand what exactly is here the criterion

@Hadrien-Godard
Copy link
Member

I do not understand what exactly is here the criterion

Hi Ankur, in current main branch, the criterion is to have a norm 2 difference between target vector and equations evaluation under a threshold (10^-4) by default.
Here the criterion is to check, equation by equation, that norm 1 difference between the target and the equation evaluation is under a threshold. The threshold is different for each equation type based on the physical unit involved.

@obrix obrix removed the prototype label Jan 18, 2023
@obrix obrix force-pushed the newtonraphsonnewstoppingcriteria branch from 4207797 to 1d90dd8 Compare January 18, 2023 15:46
Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
…ire an EquationSystem to call the method Test()

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
…pingCriteria

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
…new implemented class NewtonRaphsonStoppingCriteria

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
…present a constant value.

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
…CriteriaType

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
… better trace in log in case of error

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
…onRaphsonStoppingCriteria.java

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
lejeana and others added 6 commits January 31, 2023 11:50
Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
…age mismatch

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
…he pull request

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
…opping criteria

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
@obrix obrix force-pushed the newtonraphsonnewstoppingcriteria branch from 03aa6ce to 96d63ae Compare January 31, 2023 10:53
lejeana and others added 3 commits January 31, 2023 17:04
…ratio and susceptance.

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
…hsonCriteria.

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
lejeana and others added 10 commits February 9, 2023 09:45
Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
…tions

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
…ate" to "create" for better uniformity

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
…tch value.

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
…s for new parameter newtonraphson stopping criteria type

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
# Conflicts:
#	src/main/java/com/powsybl/openloadflow/OpenLoadFlowParameters.java
#	src/test/java/com/powsybl/openloadflow/OpenLoadFlowProviderTest.java
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@gmail.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@gmail.com>
Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
…hanged tests accordingly

Signed-off-by: Alexandre Le Jean <alexandre.le-jean@artelys.com>
@geofjamg geofjamg changed the title [WIP] Newton raphson new stopping criteria Newton raphson new stopping criteria Feb 10, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

92.1% 92.1% Coverage
0.0% 0.0% Duplication

@geofjamg geofjamg merged commit 962f622 into main Feb 10, 2023
@geofjamg geofjamg deleted the newtonraphsonnewstoppingcriteria branch February 10, 2023 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants