Skip to content

Commit e2da539

Browse files
authored
Merge pull request #28 from lanl-ansi/sad-model
minor change to sad opf model for improved performance
2 parents d352d0a + 3297186 commit e2da539

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/prob/misc.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ function post_sad_opf{T <: Union{AbstractACPForm, AbstractDCPForm}}(pm::GenericP
7373
end
7474

7575
for (i,branch) in pm.set.branches
76-
constraint_active_ohms_y(pm, branch)
77-
constraint_reactive_ohms_y(pm, branch)
76+
constraint_active_ohms_yt(pm, branch)
77+
constraint_reactive_ohms_yt(pm, branch)
7878

79-
#constraint_phase_angle_difference_flexible(pm, branch)
79+
constraint_phase_angle_difference(pm, branch)
8080
theta_fr = getvariable(pm.model, :t)[branch["f_bus"]]
8181
theta_to = getvariable(pm.model, :t)[branch["t_bus"]]
8282

0 commit comments

Comments
 (0)