Skip to content

Commit d895105

Browse files
committed
Fix various deprecated code calls
1 parent b4b4f9d commit d895105

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/latency/power_models_opf_acp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import PowerModels
1010
function main(case::String)
1111
data = PowerModels.parse_file(joinpath(@__DIR__, "data", case * ".m"))
1212
solver = JuMP.optimizer_with_attributes(Ipopt.Optimizer, "tol" => 1e-6)
13-
result = PowerModels.run_opf(data, PowerModels.ACPPowerModel, solver)
13+
result = PowerModels.solve_opf(data, PowerModels.ACPPowerModel, solver)
1414
println()
1515
println(result["termination_status"])
1616
println(result["primal_status"])

src/latency/power_models_opf_acr.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import PowerModels
1010
function main(case::String)
1111
data = PowerModels.parse_file(joinpath(@__DIR__, "data", case * ".m"))
1212
solver = JuMP.optimizer_with_attributes(Ipopt.Optimizer, "tol" => 1e-6)
13-
result = PowerModels.run_opf(data, PowerModels.ACRPowerModel, solver)
13+
result = PowerModels.solve_opf(data, PowerModels.ACRPowerModel, solver)
1414
println()
1515
println(result["termination_status"])
1616
println(result["primal_status"])

0 commit comments

Comments
 (0)