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

Use IIDM OverLoadManagementSystem #946

Merged
merged 22 commits into from
May 15, 2024
Merged

Conversation

jeandemanged
Copy link
Member

@jeandemanged jeandemanged commented Jan 5, 2024

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?

Feature

What is the current behavior?

OLF has its own iIDM extension to describe automation systems

What is the new behavior (if this is a feature change)?
Remove OLF iIDM extension, use powsybl-core new automation systems available in iIDM v1.12 (see powsybl/powsybl-core#2779)

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

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
@annetill annetill changed the title [WIP] Automation systems iidm1.12 Bump to iidm OverLoadManagementSystem Jan 19, 2024
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
annetill and others added 3 commits February 8, 2024 16:35
- three winding transformer support;
- Side management;
- Update parameter.

Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Copy link

sonarcloud bot commented Feb 20, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
88.3% Coverage on New Code (required ≥ 90%)

See analysis details on SonarCloud

annetill and others added 4 commits April 19, 2024 16:56
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
@annetill annetill requested a review from geofjamg May 10, 2024 12:10
annetill and others added 4 commits May 10, 2024 14:51
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Remove useless update conditions.

Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Anne Tilloy <anne.tilloy@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>
branchToMonitor.getId(), i * ib, threshold * ib, branchToOperate.getId());
branchesToOpen.add(branchToOperate);
break;
} else if (!branchTripping.branchOpen() && branchToOperate.isConnectedAtBothSides()) {
Copy link
Member

Choose a reason for hiding this comment

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

Should it be?:

} else if (!branchTripping.branchOpen() && !branchToOperate.isConnectedAtBothSides()) {

Copy link
Member

Choose a reason for hiding this comment

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

In previous code it was:

} else if (!system.isSwitchOpen() && !switchToOperate.isConnectedAtBothSides()) {

Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
// we have an issue with connectivity here: we have to start temporary changes and undo them just after to
// be able to retrieve the enabled and disabled elements compared to state just after restoring the initial topology
// (restoreInitialTopology method).
network.getConnectivity().startTemporaryChanges();
Copy link
Member

Choose a reason for hiding this comment

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

Mmmm finally what is the next step @flo-dup about this strange code?

if (parameters.isSimulateAutomationSystems()) {
boolean connectedSide1Before = branch.getTerminal1().isConnected();
boolean connectedSide2Before = branch.getTerminal2().isConnected();
boolean connectedSide1After = !isDisabled() && isConnectedSide1();
Copy link
Member

Choose a reason for hiding this comment

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

Here add a comment maybe because isConnectedSide1() and isConnectedSide2() is not needed for the moment?

Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Copy link
Member

@annetill annetill left a comment

Choose a reason for hiding this comment

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

Thanks @jeandemanged ! Three-windings transformer missing, to be done in another PR.

@jeandemanged
Copy link
Member Author

Thanks @jeandemanged ! Three-windings transformer missing, to be done in another PR.

Thanks @annetill @geofjamg ! :), sounds good for me!

Copy link

sonarcloud bot commented May 15, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
89.3% Coverage on New Code (required ≥ 90%)

See analysis details on SonarCloud

@geofjamg geofjamg changed the title Bump to iidm OverLoadManagementSystem Use IIDM OverLoadManagementSystem May 15, 2024
@geofjamg geofjamg merged commit f75c93c into main May 15, 2024
5 of 6 checks passed
@geofjamg geofjamg deleted the automation_systems_iidm1.12 branch May 15, 2024 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants