We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 622c102 commit b7a8789Copy full SHA for b7a8789
CHANGELOG.md
@@ -3,6 +3,9 @@
3
## Staged
4
- nothing
5
6
+## v0.9.0
7
+- Update to PowerModels v0.21 and JuMP's new nonlinear interface (breaking)
8
+
9
## v0.8.0
10
- Update to PowerModels v0.20 (breaking)
11
- Drop support for JuMP v0.22 and v0.23 (breaking)
Project.toml
@@ -1,7 +1,7 @@
1
name = "PowerModelsRestoration"
2
uuid = "23adbb12-a187-11e9-26a2-eb4d4e6e68fb"
authors = ["David M Fobes", "Noah Rhodes", "Carleton Coffrin"]
-version = "0.8.0"
+version = "0.9.0"
[deps]
InfrastructureModels = "2030c09a-7f63-5d83-885d-db604e0e9cc0"
@@ -11,9 +11,9 @@ PowerModels = "c36e90e8-916a-50a6-bd94-075b64ef4655"
12
[compat]
13
InfrastructureModels = "~0.6, ~0.7"
14
-JuMP = "~1"
+JuMP = "1.15"
15
Memento = "~1.0, ~1.1, ~1.2, ~1.3, ~1.4"
16
-PowerModels = "~0.20"
+PowerModels = "~0.21"
17
julia = "1.6"
18
19
[extras]
src/form/acp.jl
@@ -58,7 +58,7 @@ function constraint_power_balance_shed(pm::_PM.AbstractACPModel, n::Int, i::Int,
58
z_shunt = get(_PM.var(pm, n), :z_shunt, Dict()); _PM._check_var_keys(z_shunt, keys(bus_gs), "power factor scale", "shunt")
59
60
61
- _PM.con(pm, n, :kcl_p)[i] = JuMP.@NLconstraint(pm.model,
+ _PM.con(pm, n, :kcl_p)[i] = JuMP.@constraint(pm.model,
62
sum(p[a] for a in bus_arcs)
63
+ sum(p_dc[a_dc] for a_dc in bus_arcs_dc)
64
+ sum(psw[a_sw] for a_sw in bus_arcs_sw)
@@ -68,7 +68,7 @@ function constraint_power_balance_shed(pm::_PM.AbstractACPModel, n::Int, i::Int,
68
- sum(pd*z_demand[i] for (i,pd) in bus_pd)
69
- sum(gs*vm^2*z_shunt[i] for (i,gs) in bus_gs)
70
)
71
- _PM.con(pm, n, :kcl_q)[i] = JuMP.@NLconstraint(pm.model,
+ _PM.con(pm, n, :kcl_q)[i] = JuMP.@constraint(pm.model,
72
sum(q[a] for a in bus_arcs)
73
+ sum(q_dc[a_dc] for a_dc in bus_arcs_dc)
74
+ sum(qsw[a_sw] for a_sw in bus_arcs_sw)
0 commit comments