From a13429f45dfc388af995e401832b7a182b76f8eb Mon Sep 17 00:00:00 2001 From: Vincent BOCHET Date: Thu, 5 Dec 2024 14:41:05 +0100 Subject: [PATCH] Replace "iterative" scaling parameter since it is deprecated --- .../cse/import_runner/app/services/InitialShiftService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cse-cc-import-runner-app/src/main/java/com/farao_community/farao/cse/import_runner/app/services/InitialShiftService.java b/cse-cc-import-runner-app/src/main/java/com/farao_community/farao/cse/import_runner/app/services/InitialShiftService.java index 9f1eaaef..cb4a517d 100644 --- a/cse-cc-import-runner-app/src/main/java/com/farao_community/farao/cse/import_runner/app/services/InitialShiftService.java +++ b/cse-cc-import-runner-app/src/main/java/com/farao_community/farao/cse/import_runner/app/services/InitialShiftService.java @@ -95,9 +95,9 @@ private void shiftNetwork(Map scalingValuesByCountry, CseRequest network.getVariantManager().cloneVariant(initialVariantId, newVariant, true); network.getVariantManager().setWorkingVariant(newVariant); - ScalingParameters scalingParameters = new ScalingParameters(); - scalingParameters.setIterative(true); - scalingParameters.setReconnect(true); + ScalingParameters scalingParameters = new ScalingParameters() + .setPriority(ScalingParameters.Priority.RESPECT_OF_VOLUME_ASKED) + .setReconnect(true); for (Map.Entry entry : scalingValuesByCountry.entrySet()) { String zoneId = entry.getKey(); double asked = entry.getValue();