Skip to content

Add a name to the permanent limit#3909

Open
NathanDissoubray wants to merge 15 commits into
mainfrom
3887-permanent_limit_name
Open

Add a name to the permanent limit#3909
NathanDissoubray wants to merge 15 commits into
mainfrom
3887-permanent_limit_name

Conversation

@NathanDissoubray
Copy link
Copy Markdown
Contributor

@NathanDissoubray NathanDissoubray commented May 11, 2026

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)
  • A PR or issue has been opened in all impacted repositories (if any)

Does this PR already have an issue describing the problem?

Closes #3887

What kind of change does this PR introduce?

Add a name that can be set in a permanent limit (with a default value)

What is the current behavior?

There is no name for a permanent limit.

What is the new behavior (if this is a feature change)?

Now there is a name.

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)

In iidm-api:

  • LimitViolationUtils.PERMANENT_LIMIT_NAME has been removed. You can instead use LoadingLimits.DEFAULT_PERMANENT_LIMIT_NAME

If you are using iidm-impl, the following changes might impact you:

  • PermanentLimitInfo now takes an additional name String, which corresponds to the name of the permanent limit.
  • notifyPermanentLimitUpdate now takes two new String arguments, oldName and newName.
  • CurrentLimitsImpl, ApparentPowerLimitsImpl and ActivePowerLimitsImpl constructors now take an additional permanentLimitName String argument.

Other information:

…nstant value

Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
@NathanDissoubray NathanDissoubray force-pushed the 3887-permanent_limit_name branch from c615aba to 50a5882 Compare May 11, 2026 11:39
rolnico and others added 5 commits May 11, 2026 14:26
Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
@olperr1 olperr1 added the Breaking Change API is broken label May 15, 2026
Copy link
Copy Markdown
Member

@olperr1 olperr1 left a comment

Choose a reason for hiding this comment

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

I haven't finished yet, but here are some first comments.

Comment thread iidm/iidm-api/src/main/java/com/powsybl/iidm/network/LoadingLimits.java Outdated
Comment thread iidm/iidm-impl/src/main/java/com/powsybl/iidm/network/impl/CurrentLimitsImpl.java Outdated
Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
Comment on lines +385 to +389
<xs:attribute name="permanentLimit" use="optional" type="xs:double"/>
</xs:complexType>
<xs:complexType name="permanentLimit">
<xs:attribute name="name" use="optional" type="xs:string"/>
<xs:attribute name="value" use="required" type="xs:double"/>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

To limit the size of the IIDM files, we could:

Copy link
Copy Markdown
Contributor Author

@NathanDissoubray NathanDissoubray May 19, 2026

Choose a reason for hiding this comment

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

Indeed, since this PR might be ready before #3826 I'll write it always and mention it in that PR. It might be good to get a consensus to ensure that this default value should not be written

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done in c718412

Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
Comment thread iidm/iidm-serde/src/main/java/com/powsybl/iidm/serde/ConnectableSerDeUtil.java Outdated
Comment thread iidm/iidm-serde/src/main/java/com/powsybl/iidm/serde/ConnectableSerDeUtil.java Outdated
Comment thread iidm/iidm-serde/src/main/java/com/powsybl/iidm/serde/ConnectableSerDeUtil.java Outdated
Co-authored-by: Olivier Perrin <olivier.perrin@rte-france.com>
Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 1, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Waiting for review

Development

Successfully merging this pull request may close these issues.

Add name to OperationalLimitsGroup permanent limit

3 participants