Skip to content

Commit

Permalink
updated julia packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhengLiu1119 committed Apr 20, 2022
1 parent c491a4c commit 9e5069e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/models/call_powermodels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function run_powermodels_pf(json_path)
else
model = get_model(pm["pm_model"])
solver = get_solver(pm)
result = _PM.run_pf(
result = _PM.solve_pf(
pm,
model,
solver,
Expand Down Expand Up @@ -47,7 +47,7 @@ function run_powermodels_opf(json_path)

if cl == 0
pm = check_powermodels_data!(pm)
result = _PM.run_opf(
result = _PM.solve_opf(
pm,
model,
solver,
Expand Down Expand Up @@ -110,7 +110,7 @@ function run_powermodels_tnep(json_path)
model = get_model(pm["pm_model"])
solver = get_solver(pm)

result = _PM.run_tnep(
result = _PM.solve_tnep(
pm,
model,
solver,
Expand All @@ -126,7 +126,7 @@ function run_powermodels_ots(json_path)
model = get_model(pm["pm_model"])
solver = get_solver(pm)

result = _PM.run_ots(
result = _PM.solve_ots(
pm,
model,
solver,
Expand Down
6 changes: 4 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Pkg
Pkg.activate(".")
# import Pkg only for local test
# Pkg.activate(".") only for local test
# Pkg.update() only for local test
# Pkg.resolve() only for local test
using Test
using PandaModels; const _PdM = PandaModels
import PowerModels; const _PM = PowerModels
Expand Down

0 comments on commit 9e5069e

Please sign in to comment.