From 414301171ef4efdb25fe537c8e147c14fc6b86a9 Mon Sep 17 00:00:00 2001 From: p-arvy Date: Tue, 25 Jun 2024 10:43:23 +0200 Subject: [PATCH] Wip. Signed-off-by: p-arvy --- open-reac/src/main/resources/openreac/reactiveopf.run | 2 +- .../test/java/com/powsybl/openreac/OpenReacRunnerTest.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/open-reac/src/main/resources/openreac/reactiveopf.run b/open-reac/src/main/resources/openreac/reactiveopf.run index d5559804..4279b371 100644 --- a/open-reac/src/main/resources/openreac/reactiveopf.run +++ b/open-reac/src/main/resources/openreac/reactiveopf.run @@ -369,7 +369,7 @@ if "reactive_slack_variable_scaling_factor" in PARAM_ALGO_KEYS then let reactive printf{LOG_INFO} "Parameter: scaling factor for reactive slack variables := %.3f\n",reactive_slack_variable_scaling_factor; check reactive_slack_variable_scaling_factor > 0; -param transformer_ratio_variable_scaling_factor default 1e-3; +param transformer_ratio_variable_scaling_factor default 1e-1; if "transformer_ratio_variable_scaling_factor" in PARAM_ALGO_KEYS then let transformer_ratio_variable_scaling_factor := num(PARAM_ALGO_VALUES["transformer_ratio_variable_scaling_factor"]); printf{LOG_INFO} "Parameter: scaling factor for tranformer ratio variables := %.3f\n",transformer_ratio_variable_scaling_factor; check transformer_ratio_variable_scaling_factor > 0; diff --git a/open-reac/src/test/java/com/powsybl/openreac/OpenReacRunnerTest.java b/open-reac/src/test/java/com/powsybl/openreac/OpenReacRunnerTest.java index 777250fd..c7754656 100644 --- a/open-reac/src/test/java/com/powsybl/openreac/OpenReacRunnerTest.java +++ b/open-reac/src/test/java/com/powsybl/openreac/OpenReacRunnerTest.java @@ -413,9 +413,9 @@ private void runAndApplyAllModifications(Network network, String subFolder, Open subFolder + "/reactiveopf_results_vsc_converter_stations.csv", subFolder + "/reactiveopf_results_voltages.csv")); // To really run open reac, use the commentede line below. Be sure that open-reac/src/test/resources/com/powsybl/config/test/config.yml contains your ampl path -// try (ComputationManager computationManager = new LocalComputationManager()) { - try (ComputationManager computationManager = new LocalComputationManager(new LocalComputationConfig(tmpDir), - localCommandExecutor, ForkJoinPool.commonPool())) { + try (ComputationManager computationManager = new LocalComputationManager()) { +// try (ComputationManager computationManager = new LocalComputationManager(new LocalComputationConfig(tmpDir), +// localCommandExecutor, ForkJoinPool.commonPool())) { OpenReacResult openReacResult = OpenReacRunner.run(network, network.getVariantManager().getWorkingVariantId(), parameters, new OpenReacConfig(true), computationManager, reportNode, null);