Class ScalingParameters

java.lang.Object
com.powsybl.iidm.modification.scalable.ScalingParameters

public class ScalingParameters extends Object
Author:
Coline Piloquet <[email protected]>
  • Field Details

  • Constructor Details

    • ScalingParameters

      public ScalingParameters()
    • ScalingParameters

      @Deprecated(since="v6.0.0") public ScalingParameters(Scalable.ScalingConvention scalingConvention, boolean reconnect, boolean constantPowerFactor, boolean iterative, boolean allowsGeneratorOutOfActivePowerLimits)
      Deprecated.
      : replace with ScalingParameters(Scalable.ScalingConvention scalingConvention, boolean reconnect, boolean constantPowerFactor, Priority priority, boolean allowsGeneratorOutOfActivePowerLimits)
    • ScalingParameters

      public ScalingParameters(Scalable.ScalingConvention scalingConvention, boolean reconnect, boolean constantPowerFactor, ScalingParameters.Priority priority, boolean allowsGeneratorOutOfActivePowerLimits)
    • ScalingParameters

      public ScalingParameters(Scalable.ScalingConvention scalingConvention, boolean reconnect, boolean constantPowerFactor, ScalingParameters.Priority priority, boolean allowsGeneratorOutOfActivePowerLimits, ScalingParameters.ScalingType scalingType)
  • Method Details

    • getScalingConvention

      public Scalable.ScalingConvention getScalingConvention()
      Returns:
      the scaling convention for the scaling, Scalable.ScalingConvention GENERATOR by default.
    • setScalingConvention

      public ScalingParameters setScalingConvention(Scalable.ScalingConvention scalingConvention)
    • isReconnect

      public boolean isReconnect()
      Returns:
      a boolean indicating if the terminal of the scalable should be reconnected if it is disconnected. If the scalable is disconnected, then it will not be scaled.
    • setReconnect

      public ScalingParameters setReconnect(boolean reconnect)
    • isConstantPowerFactor

      public boolean isConstantPowerFactor()
      Returns:
      a boolean indicating if the scaling should be done with a constant power factor.
    • setConstantPowerFactor

      public ScalingParameters setConstantPowerFactor(boolean constantPowerFactor)
    • isIterative

      @Deprecated(since="v6.0.0") public boolean isIterative()
      Deprecated.
      : replace with method "getPriority"
      Scale may be iterative or not for ProportionalScalable. If the iterative mode is activated, the residues due to scalable saturation is divided between the other scalable composing the ProportionalScalable.
      Returns:
      the iterative boolean, false by default.
    • setIterative

      @Deprecated(since="v6.0.0") public ScalingParameters setIterative(boolean iterative)
      Deprecated.
      : replace with the method "setPriority"
    • isAllowsGeneratorOutOfActivePowerLimits

      public boolean isAllowsGeneratorOutOfActivePowerLimits()
      Returns:
      a boolean indicating if the scaling allows generators with an initial targetP outside the [Pmin - Pmax] range values
    • setAllowsGeneratorOutOfActivePowerLimits

      public ScalingParameters setAllowsGeneratorOutOfActivePowerLimits(boolean allowsGeneratorOutOfActivePowerLimits)
    • getScalingType

      public ScalingParameters.ScalingType getScalingType()
      Returns:
      the type of scaling asked (DELTA_P or TARGET_P)
    • setScalingType

      public ScalingParameters setScalingType(ScalingParameters.ScalingType scalingType)
    • getPriority

      public ScalingParameters.Priority getPriority()
      Returns:
      an enum representing the priority of the scaling. It can be either RESPECT_OF_VOLUME_ASKED (the scaling will distribute the power asked as much as possible by iterating if elements get saturated, even if it means not respecting potential percentages), RESPECT_OF_DISTRIBUTION (the scaling will respect the percentages even if it means not scaling all what is asked), or ONESHOT (the scaling will distribute the power asked as is, in one iteration even if elements get saturated and even if it means not respecting potential percentages).
    • setPriority

      public ScalingParameters setPriority(ScalingParameters.Priority priority)
    • load

      public static ScalingParameters load()
    • load

      public static ScalingParameters load(PlatformConfig platformConfig)