Skip to content

Commit

Permalink
FIX: unstable test "3-bus unbalanced lpubfdiag opf_bf with delta loads"
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudocubic committed Sep 18, 2024
1 parent aa1c6c5 commit 55d9508
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## staged

- Fixed unstable test "3-bus unbalanced lpubfdiag opf_bf with delta loads" by bounding objective
- Fixed typo in `create_transformer`, `create_xfmrcode` and ENGINEERING model documentation, `configurations` -> `configuration` and `buses` -> `bus` on transformer objects (#463)
- Fixed creation of switch objects from dss, where ENGINEERING switches are expected to be zero-length objects (#462)
- Fixed typo in single phase line parameters, should have been `line.c0 = line.c1` (#468)
Expand Down
14 changes: 6 additions & 8 deletions test/opf_bf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@
data = deepcopy(case3_unbalanced_delta_loads)
apply_voltage_bounds!(data; vm_lb=0.95, vm_ub=1.05)

solver = optimizer_with_attributes(
Ipopt.Optimizer,
"sb"=>"yes",
"print_level"=>0,
"warm_start_init_point"=>"yes",
"mu_strategy"=>"adaptive"
)
result = solve_mc_opf(data, LPUBFDiagPowerModel, solver; solution_processors=[sol_data_model!])
# to fix unbounded objective ipopt issue
data["voltage_source"]["source"]["pg_lb"] = zeros(3)
data["voltage_source"]["source"]["qg_lb"] = zeros(3)
data["voltage_source"]["source"]["pg_ub"] = fill(50.0, 3)

result = solve_mc_opf(data, LPUBFDiagPowerModel, ipopt_solver; solution_processors=[sol_data_model!])

@test result["termination_status"] == LOCALLY_SOLVED

Expand Down

0 comments on commit 55d9508

Please sign in to comment.