Skip to content

Commit

Permalink
include support for custom variable names in OPF models
Browse files Browse the repository at this point in the history
  • Loading branch information
mcosovic committed Oct 15, 2024
1 parent 8d10ce4 commit e173347
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/optimalPowerFlow/acOptimalPowerFlow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ function acOptimalPowerFlow(
active = @variable(jump, active[i = 1:gen.number], base_name = active)
reactive = @variable(jump, reactive[i = 1:gen.number], base_name = reactive)
magnitude = @variable(jump, magnitude[i = 1:bus.number], base_name = magnitude)
@time angle = @variable(jump, angle[i = 1:bus.number], base_name = angle)


angle = @variable(jump, angle[i = 1:bus.number], base_name = angle)

fix(angle[bus.layout.slack], bus.voltage.angle[bus.layout.slack])
slack = Dict(bus.layout.slack => FixRef(angle[bus.layout.slack]))
Expand Down

0 comments on commit e173347

Please sign in to comment.