Skip to content

Commit

Permalink
FIX: power balance eq. for lindistflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudocubic committed Sep 12, 2024
1 parent e910054 commit e0e719a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## staged

- none
- Fixed bug in `constraint_mc_power_balance_shed_block` (`LPUBFDiagPowerModel` version) where `pd_zblock_zdemand` was used instead of `qd_zblock_zdemand`

## v3.5.0

Expand Down
2 changes: 1 addition & 1 deletion src/form/lindistflow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function constraint_mc_power_balance_shed_block(pm::PMD.LPUBFDiagModel, nw::Int,
==
sum(qg[g][t] for (g, conns) in bus_gens if t in conns)
- sum(qs[s][t] for (s, conns) in bus_storage if t in conns)
- sum(pd_zblock_zdemand[l][t] for (l, conns) in bus_loads if t in conns)
- sum(qd_zblock_zdemand[l][t] for (l, conns) in bus_loads if t in conns)
- sum((-w[t] * LinearAlgebra.diag(Bt')[idx]) for (sh, conns) in uncontrolled_shunts if t in conns)
- sum(-var(pm, nw, :capacitor_reactive_power, sh)[t] for (sh, conns) in controlled_shunts if t in conns)
)
Expand Down

0 comments on commit e0e719a

Please sign in to comment.