You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Major problem : the ceil method is used on line 273 (or line 6 of the excerpt above) on a value which is often inferior to 1 (current or voltage value is usually close to the limit when there is a violation in N) therefore the increment value is likely to be equal to one.
Because the value of violation limits can be high (around 2000 A in 400kV in France), with increment = 1, newLimit ends up being much higher than the initial limit with margin = 0 which is hardly understandable and dangerous for the user.
Minor problem : using the intermediary variable increment for the calculation makes the code difficult to understand.
A suggestion is to remove the increment variable and directly calculate new limit without rounding anything new limit = load flow value in N + (load flow value in N * margin in %)
or rounding as the last step of the calculation new limit = ceil(load flow value in N + (load flow value in N * margin in %))
The text was updated successfully, but these errors were encountered:
A bug is to be fixed in the code for managing situations with violations in N (pull request #33).
The problem was found in class ConstraintsModifier in methods getNewUpperLimit and getNewLowerLimit.
Here is a description of the problem for the method getNewUpperLimit (the problem is symmetrical for getNewLowerLimit).
Major problem : the ceil method is used on line 273 (or line 6 of the excerpt above) on a value which is often inferior to 1 (current or voltage value is usually close to the limit when there is a violation in N) therefore the increment value is likely to be equal to one.
Because the value of violation limits can be high (around 2000 A in 400kV in France), with increment = 1, newLimit ends up being much higher than the initial limit with margin = 0 which is hardly understandable and dangerous for the user.
Minor problem : using the intermediary variable increment for the calculation makes the code difficult to understand.
A suggestion is to remove the increment variable and directly calculate new limit without rounding anything
new limit = load flow value in N + (load flow value in N * margin in %)
or rounding as the last step of the calculation
new limit = ceil(load flow value in N + (load flow value in N * margin in %))
The text was updated successfully, but these errors were encountered: