-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
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() { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Kudos, SonarCloud Quality Gate passed! |
lfBus.setGeneratorVoltageControlEnabled(false); | ||
} | ||
} | ||
context.getNetwork().validate(LoadFlowModel.AC, null); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com> (cherry picked from commit fbc684f)
Please check if the PR fulfills these requirements
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?
Other information: