Skip to content

Commit

Permalink
FIX: failing unit test capcontrol_fotr
Browse files Browse the repository at this point in the history
on Julia 1 - macOS-latest - x64
  • Loading branch information
pseudocubic committed May 22, 2023
1 parent 9c770fa commit b402afd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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 failing unit test `capcontrol_fotr` on `Julia 1 - macOS-latest - x64`
- Add native power flow solver by using `compute_mc_pf(data_math)`
- Fixed bug in `build_mc_pf` where `constraint_mc_storage_power_setpoint_real` was being applied to all storage objects, and not just ones on PV buses
- Fixed implementation of polynomial nonlinear (nl) costs above quadratic in `objective.jl`
Expand Down
2 changes: 1 addition & 1 deletion test/capacitor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
@testset "capcontrol_fotr" begin
result = solve_mc_opf_capc(IEEE13_CapControl, FOTRUPowerModel, ipopt_solver; solution_processors=[sol_data_model!])

@test result["termination_status"] == LOCALLY_SOLVED
@test result["termination_status"] == LOCALLY_SOLVED || result["termination_status"] == ALMOST_LOCALLY_SOLVED

@test isapprox(sum(result["solution"]["voltage_source"]["source"]["pg"]), 404.784; atol=5)
@test isapprox(sum(result["solution"]["voltage_source"]["source"]["qg"]), -328.146; atol=400)
Expand Down

0 comments on commit b402afd

Please sign in to comment.