diff --git a/CHANGELOG.md b/CHANGELOG.md index 716416335..ac0f1762c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/test/opf_bf.jl b/test/opf_bf.jl index dd0edc62e..58c1db56f 100644 --- a/test/opf_bf.jl +++ b/test/opf_bf.jl @@ -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