Skip to content

Commit

Permalink
Replace "iterative" scaling parameter since it is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
vbochetRTE committed Dec 5, 2024
1 parent da4daf0 commit a13429f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ private void shiftNetwork(Map<String, Double> 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<String, Double> entry : scalingValuesByCountry.entrySet()) {
String zoneId = entry.getKey();
double asked = entry.getValue();
Expand Down

0 comments on commit a13429f

Please sign in to comment.