Skip to content

Commit

Permalink
Disable voltage bound check for voltage level lower than 30kV (#25)
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruiz <[email protected]>
  • Loading branch information
klorel authored Oct 12, 2023
1 parent 1c292a7 commit 9921363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions open-reac/src/main/resources/openreac/reactiveopf.run
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ for {(qq,m,n) in BRANCHCC_REGL: regl_ratio_min[1,branch_ptrRegl[1,qq,m,n]] <= te
}
# Looking for unconsistencies
let tempo := 0; # If non zero, major inconsistency detected
for {(qq,m,n) in BRANCHCC_REGL} {
for {(qq,m,n) in BRANCHCC_REGL: substation_Vnomi[1,bus_substation[1,m]] > 30 and substation_Vnomi[1,bus_substation[1,n]] > 30} {
let temp1 := regl_ratio_min[1,branch_ptrRegl[1,qq,m,n]];
let temp2 := regl_ratio_max[1,branch_ptrRegl[1,qq,m,n]];
if voltage_lower_bound[1,bus_substation[1,m]]*temp1*branch_cstratio[1,qq,m,n] > voltage_upper_bound[1,bus_substation[1,n]]
Expand Down Expand Up @@ -585,7 +585,7 @@ for {(qq,m,n) in BRANCHCC_REGL} {
}
}
# Consistency for transformers with fixed ratio
for {(qq,m,n) in BRANCHCC_REGL_FIX} {
for {(qq,m,n) in BRANCHCC_REGL_FIX: substation_Vnomi[1,bus_substation[1,m]] > 30 and substation_Vnomi[1,bus_substation[1,n]] > 30} {
let temp1 := tap_ratio[1,regl_table[1,branch_ptrRegl[1,qq,m,n]],regl_tap0[1,branch_ptrRegl[1,qq,m,n]]];
if voltage_lower_bound[1,bus_substation[1,m]]*temp1*branch_cstratio[1,qq,m,n] > voltage_upper_bound[1,bus_substation[1,n]]
then {
Expand Down

0 comments on commit 9921363

Please sign in to comment.