diff --git a/open-reac/src/test/java/com/powsybl/openreac/optimization/AbstractOpenReacRunnerTest.java b/open-reac/src/test/java/com/powsybl/openreac/optimization/AbstractOpenReacRunnerTest.java index a53d9720..c539f9b6 100644 --- a/open-reac/src/test/java/com/powsybl/openreac/optimization/AbstractOpenReacRunnerTest.java +++ b/open-reac/src/test/java/com/powsybl/openreac/optimization/AbstractOpenReacRunnerTest.java @@ -29,7 +29,6 @@ import java.io.InputStream; import java.nio.file.FileSystem; import java.nio.file.Path; -import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.concurrent.ForkJoinPool; @@ -86,6 +85,8 @@ protected void testAllModifAndLoadFlow(Network network, String subFolder, OpenRe */ void runAndApplyAllModifications(Network network, String subFolder, OpenReacParameters parameters, boolean updateNetworkWithVoltages, ReportNode reportNode) throws IOException { + // set default voltage limits to every voltage levels of the network + setDefaultVoltageLimits(network); LocalCommandExecutor localCommandExecutor = new TestLocalCommandExecutor( List.of(subFolder + "/reactiveopf_results_generators.csv", subFolder + "/reactiveopf_results_indic.txt", diff --git a/open-reac/src/test/java/com/powsybl/openreac/optimization/OpenReacOptimizationAndLoadFlowTest.java b/open-reac/src/test/java/com/powsybl/openreac/optimization/OpenReacOptimizationAndLoadFlowTest.java index 89eba645..25632d0d 100644 --- a/open-reac/src/test/java/com/powsybl/openreac/optimization/OpenReacOptimizationAndLoadFlowTest.java +++ b/open-reac/src/test/java/com/powsybl/openreac/optimization/OpenReacOptimizationAndLoadFlowTest.java @@ -14,8 +14,6 @@ import com.powsybl.computation.local.LocalComputationManager; import com.powsybl.ieeecdf.converter.IeeeCdfNetworkFactory; import com.powsybl.iidm.network.*; -import com.powsybl.loadflow.LoadFlow; -import com.powsybl.loadflow.LoadFlowResult; import com.powsybl.openreac.OpenReacConfig; import com.powsybl.openreac.OpenReacRunner; import com.powsybl.openreac.network.HvdcNetworkFactory; @@ -189,9 +187,6 @@ void testWarmStart() throws IOException { assertEquals(0, network.getBusBreakerView().getBus("BUS_2").getAngle()); assertEquals(22.935, network.getBusBreakerView().getBus("BUS_3").getV()); assertEquals(-4.698, network.getBusBreakerView().getBus("BUS_3").getAngle(), 0.001); - - LoadFlowResult loadFlowResult = LoadFlow.run(network); - assertTrue(loadFlowResult.isFullyConverged()); } public static Network create() {