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

Fix already converged case in fast restart mode #802

Merged
merged 9 commits into from
Jun 30, 2023
Merged

Conversation

geofjamg
Copy link
Member

Please check if the PR fulfills these requirements

  • 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)

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

In fast restart mode, when re-running a LF without any network change we get a FAILED status.

What is the new behavior (if this is a feature change)?
We get a CONVERGED status (in really this should be a ALREADY_CONVERGED)

Does this PR introduce a breaking change or deprecate an API?

  • 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?)

Other information:

Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
@geofjamg geofjamg requested a review from annetill June 26, 2023 09:27
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
@@ -333,4 +332,13 @@ void testSwitchClose() {
assertActivePowerEquals(301.884, l1.getTerminal1());
assertActivePowerEquals(301.884, l2.getTerminal1());
}

@Test
void testInvalidNetwork() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you have to put in our test a first run before setting the targetV to show the cache use.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I do that but there is a lot a change to do because, target v is not rechecked after restart in the actual code

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but it is was we do in LfAction indeed.

annetill and others added 3 commits June 27, 2023 11:40
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
@geofjamg geofjamg changed the title Fix already converged case in fast restart mode [WIP] Fix already converged case in fast restart mode Jun 28, 2023
geofjamg added 4 commits June 29, 2023 12:51
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
@sonarcloud
Copy link

sonarcloud bot commented Jun 29, 2023

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 0 Code Smells

94.4% 94.4% Coverage
0.0% 0.0% Duplication

@geofjamg geofjamg changed the title [WIP] Fix already converged case in fast restart mode Fix already converged case in fast restart mode Jun 29, 2023
@geofjamg geofjamg requested a review from annetill June 29, 2023 16:08
lfBus.setGeneratorVoltageControlEnabled(false);
}
}
context.getNetwork().validate(LoadFlowModel.AC, null);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question: what is the behavior of the code in case of a fast restart with a targetV change in a DC loadflow mode?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have checked, all is good in DC mode. No cache used.

@geofjamg geofjamg merged commit fbc684f into main Jun 30, 2023
jeandemanged pushed a commit that referenced this pull request Jul 18, 2023
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
(cherry picked from commit fbc684f)
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.

2 participants