Interface Scalable
- All Known Implementing Classes:
DanglingLineScalable
,ProportionalScalable
public interface Scalable
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>, Ameni Walha <ameni.walha at rte-france.com>
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Sign convention usable for scaling. -
Method Summary
Modifier and TypeMethodDescriptionfilterInjections
(Network network) Scans all the expected injections of the scalable.void
Scans all the expected injections of the scalable.filterInjections
(Network network, List<String> notFound) Scans all the expected injections of the scalable.double
getSteadyStatePower
(Network network, double asked, Scalable.ScalingConvention scalingConvention) Returns the current power value for the injections corresponding to this Scalablestatic double
getVariationAsked
(ScalingParameters scalingParameters, double askedValue, double currentGlobalPower) Returns the value that has to be added to the network, depending on the type of variation chosen in the parametersdouble
Get the constant active power in MW injected at the network.double
Get the maximal active power in MW.double
maximumValue
(Network n, Scalable.ScalingConvention scalingConvention) Get the maximal active power in MW with scaling convention.double
Get the minimal active power in MW.double
minimumValue
(Network n, Scalable.ScalingConvention scalingConvention) Get the minimal active power in MW with scaling convention.static DanglingLineScalable
onDanglingLine
(String id) create DanglingLineScalable with id.static DanglingLineScalable
onDanglingLine
(String id, double minValue, double maxValue) create DanglingLineScalable with id, min and max power values for scaling.static DanglingLineScalable
onDanglingLine
(String id, double minValue, double maxValue, Scalable.ScalingConvention scalingConvention) create DanglingLineScalable with id, min and max power values for scaling and the scaling convention that will be used.static DanglingLineScalable
onDanglingLine
(String id, Scalable.ScalingConvention scalingConvention) create DanglingLineScalable with id and the scaling convention that will be used.static com.powsybl.iidm.modification.scalable.GeneratorScalable
onGenerator
(String id) create GeneratorScalable with idstatic com.powsybl.iidm.modification.scalable.GeneratorScalable
onGenerator
(String id, double minValue, double maxValue) create GeneratorScalable with id, min and max power values for scalingstatic com.powsybl.iidm.modification.scalable.LoadScalable
create LoadScalable with idstatic com.powsybl.iidm.modification.scalable.LoadScalable
create LoadScalable with id, min and max power values for scalingstatic ProportionalScalable
proportional
(double percentage, Scalable scalable) static ProportionalScalable
proportional
(double percentage1, Scalable scalable1, double percentage2, Scalable scalable2) static ProportionalScalable
proportional
(double percentage1, Scalable scalable1, double percentage2, Scalable scalable2, double percentage3, Scalable scalable3) static ProportionalScalable
proportional
(double percentage1, Scalable scalable1, double percentage2, Scalable scalable2, double percentage3, Scalable scalable3, double percentage4, Scalable scalable4) static ProportionalScalable
proportional
(double percentage1, Scalable scalable1, double percentage2, Scalable scalable2, double percentage3, Scalable scalable3, double percentage4, Scalable scalable4, double percentage5, Scalable scalable5) static ProportionalScalable
proportional
(List<? extends Injection> injections, ProportionalScalable.DistributionMode distributionMode) static ProportionalScalable
proportional
(List<? extends Injection> injections, ProportionalScalable.DistributionMode distributionMode, double minValue, double maxValue) static ProportionalScalable
proportional
(List<Double> percentages, List<Scalable> scalables) static ProportionalScalable
proportional
(List<Double> percentages, List<Scalable> scalables, double minValue, double maxValue) void
Set the constant active power to zero.static Scalable
default double
double
scale
(Network n, double asked, ScalingParameters parameters) Scale the given network using Generator convention by default.static com.powsybl.iidm.modification.scalable.StackScalable
static com.powsybl.iidm.modification.scalable.StackScalable
static com.powsybl.iidm.modification.scalable.StackScalable
static com.powsybl.iidm.modification.scalable.StackScalable
static com.powsybl.iidm.modification.scalable.StackScalable
static com.powsybl.iidm.modification.scalable.StackScalable
static com.powsybl.iidm.modification.scalable.StackScalable
static com.powsybl.iidm.modification.scalable.StackScalable
static com.powsybl.iidm.modification.scalable.UpDownScalable
static com.powsybl.iidm.modification.scalable.UpDownScalable
-
Method Details
-
initialValue
Get the constant active power in MW injected at the network. -
reset
Set the constant active power to zero. -
maximumValue
Get the maximal active power in MW. Uses Generator convention by default -
minimumValue
Get the minimal active power in MW. Uses Generator convention by default -
maximumValue
Get the maximal active power in MW with scaling convention.- See Also:
-
minimumValue
Get the minimal active power in MW with scaling convention.- See Also:
-
filterInjections
Scans all the expected injections of the scalable. If the injection can be found in given network, it is added the the injections list. Otherwise, its identifier is added to the "notFound" list.- Parameters:
network
- networkinjections
- network injections used in the scalablenotFound
- expected injections not found in the network
-
filterInjections
Scans all the expected injections of the scalable. If the injection can be found in given network, it is added the the injections list. Otherwise, its identifier is added to the "notFound" list.- Parameters:
network
- networknotFound
- expected injections not found in the network- Returns:
- network injections used in the scalable
-
filterInjections
Scans all the expected injections of the scalable. If the injection can be found in given network, it is added to the injections list.- Parameters:
network
- network- Returns:
- network injections used in the scalable
-
scale
Scale the given network using Generator convention by default. The actual scaling value may be different to the one asked if the Scalable limit is reached. If the scalable is disconnected, the scaling value will be 0.- Parameters:
n
- networkasked
- value asked to adjust the scalable active powerparameters
- specific parameters used to scale- Returns:
- the actual value of the scalable active power adjustment
-
scale
-
onGenerator
create GeneratorScalable with id -
onGenerator
static com.powsybl.iidm.modification.scalable.GeneratorScalable onGenerator(String id, double minValue, double maxValue) create GeneratorScalable with id, min and max power values for scaling -
onLoad
create LoadScalable with id -
onLoad
static com.powsybl.iidm.modification.scalable.LoadScalable onLoad(String id, double minValue, double maxValue) create LoadScalable with id, min and max power values for scaling -
onDanglingLine
create DanglingLineScalable with id. The generator scaling convention is used by default. -
onDanglingLine
create DanglingLineScalable with id and the scaling convention that will be used. -
onDanglingLine
create DanglingLineScalable with id, min and max power values for scaling. The generator scaling convention is used by default. -
onDanglingLine
static DanglingLineScalable onDanglingLine(String id, double minValue, double maxValue, Scalable.ScalingConvention scalingConvention) create DanglingLineScalable with id, min and max power values for scaling and the scaling convention that will be used. -
scalable
-
scalables
-
proportional
static ProportionalScalable proportional(List<? extends Injection> injections, ProportionalScalable.DistributionMode distributionMode) -
proportional
static ProportionalScalable proportional(List<? extends Injection> injections, ProportionalScalable.DistributionMode distributionMode, double minValue, double maxValue) -
proportional
-
proportional
static ProportionalScalable proportional(List<Double> percentages, List<Scalable> scalables, double minValue, double maxValue) -
proportional
-
proportional
static ProportionalScalable proportional(double percentage1, Scalable scalable1, double percentage2, Scalable scalable2) -
proportional
static ProportionalScalable proportional(double percentage1, Scalable scalable1, double percentage2, Scalable scalable2, double percentage3, Scalable scalable3) -
proportional
static ProportionalScalable proportional(double percentage1, Scalable scalable1, double percentage2, Scalable scalable2, double percentage3, Scalable scalable3, double percentage4, Scalable scalable4) -
proportional
-
stack
-
stack
static com.powsybl.iidm.modification.scalable.StackScalable stack(double minValue, double maxValue, Injection<?>... injections) -
stack
-
stack
-
stack
-
stack
static com.powsybl.iidm.modification.scalable.StackScalable stack(double minValue, double maxValue, Scalable... scalables) -
stack
-
stack
static com.powsybl.iidm.modification.scalable.StackScalable stack(double minValue, double maxValue, String... ids) -
upDown
-
upDown
-
getVariationAsked
static double getVariationAsked(ScalingParameters scalingParameters, double askedValue, double currentGlobalPower) Returns the value that has to be added to the network, depending on the type of variation chosen in the parameters- Parameters:
scalingParameters
- Scaling parameters including a variation type (DELTA_P or TARGET_P)askedValue
- value of scaling asked on the scalablecurrentGlobalPower
- current global power in the network- Returns:
- the variation value if the type is DELTA_P, else the difference between the variation value and the current global value sum
-
getSteadyStatePower
double getSteadyStatePower(Network network, double asked, Scalable.ScalingConvention scalingConvention) Returns the current power value for the injections corresponding to this Scalable- Parameters:
network
- Network in which the injections are definedasked
- value of scaling asked on the scalable. This is used to know in which direction we want to scale for UpDownScalables.scalingConvention
- The value is computed either with Generator or Load convention according to this parameter.- Returns:
- the current power value
-