Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
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.

revert

Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ dependencies to respectively have access to network model, IEEE test networks an
<dependency>
<groupId>com.powsybl</groupId>
<artifactId>powsybl-iidm-impl</artifactId>
<version>7.1.1</version>
<version>7.2.0</version>
</dependency>
<dependency>
<groupId>com.powsybl</groupId>
<artifactId>powsybl-ieee-cdf-converter</artifactId>
<version>7.1.1</version>
<version>7.2.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ private static boolean isSupported(LimitReduction limitReduction) {
LOGGER.warn("When two duration criteria are provided, they cannot be of the same type");
return false;
}
if (!limitReduction.getOperationalLimitsGroupIdsSelection().isEmpty()) {
LOGGER.warn("Limit reduction with only a specified operational limits groups to be applied on are not yet supported.");
return false;
}

return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,17 @@ void twoDurationCriteriaOfSameTypeTest() {
List<LimitReductionManager.TerminalLimitReduction> terminalLimitReductions = limitReductionManager.getTerminalLimitReductions();
assertEquals(0, terminalLimitReductions.size());
}

@Test
void limitReductionsSpecifiedOperationalLimitsGroupNotSupportedTest() {
String limitGroup1 = "limitGroup1";
LimitReduction limitReduction = LimitReduction.builder(LimitType.CURRENT, 0.9)
.withNetworkElementCriteria(new IdentifiableCriterion(
new AtLeastOneNominalVoltageCriterion(VoltageInterval.between(220., 240., true, true))))
.withLimitDurationCriteria(IntervalTemporaryDurationCriterion.between(0, 300, true, false))
.withOperationalLimitsGroupIdSelection(limitGroup1)
.build();
LimitReductionManager limitReductionManager = LimitReductionManager.create(List.of(limitReduction));
assertTrue(limitReductionManager.isEmpty());
}
}
Loading