Skip to content

Commit

Permalink
Updated changelog and bf_mx.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
keatsig committed Feb 14, 2023
1 parent cf1e728 commit 2a3f3ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 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

- Added loads/generator models (240V devices) connected between two secondary terminals of center-tapped transformers for SOC formulation
- Fixed bug with SOC and LinDist3Flow formulations where diagonal entries of matrix variables were defined with type `Vector{JuMP.VariableRef}` (no information about connections) instead of `JuMP.Containers.DenseAxisArray`, leading to errors when single- or two-phase nodes were present in network
- Fixed bug in `_calc_bus_vm_ll_bounds` where default min `vdmin_eps` was not being used, leading to invalid `Inf` bounds

Expand Down
2 changes: 2 additions & 0 deletions src/form/bf_mx.jl
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,8 @@ function constraint_mc_load_power(pm::AbstractUBFModels, load_id::Int; nw::Int=n

pd_bus = JuMP.Containers.DenseAxisArray(pd_bus, conn_bus)
qd_bus = JuMP.Containers.DenseAxisArray(qd_bus, conn_bus)
pd = JuMP.Containers.DenseAxisArray(pd, connections)
qd = JuMP.Containers.DenseAxisArray(qd, connections)
var(pm, nw, :pd_bus)[load_id] = pd_bus
var(pm, nw, :qd_bus)[load_id] = qd_bus
var(pm, nw, :pd)[load_id] = pd
Expand Down

0 comments on commit 2a3f3ae

Please sign in to comment.