diff --git a/open-reac/src/main/resources/openreac/reactiveopf.run b/open-reac/src/main/resources/openreac/reactiveopf.run index a7f05e5b..56eac450 100644 --- a/open-reac/src/main/resources/openreac/reactiveopf.run +++ b/open-reac/src/main/resources/openreac/reactiveopf.run @@ -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]] @@ -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 {