Skip to content

Commit

Permalink
prep for v0.12.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoffrin committed Aug 17, 2019
1 parent 3334ffb commit 52e3962
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ PowerModels.jl Change Log
=========================

### Staged
- nothing

### v0.12.4
- Fixed support for data without an explicit switch section
- Fixed support for single values in add_setpoint! and add_dual!

Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "PowerModels"
uuid = "c36e90e8-916a-50a6-bd94-075b64ef4655"
authors = ["Carleton Coffrin"]
repo = "https://github.com/lanl-ansi/PowerModels.jl"
version = "0.12.3"
version = "0.12.4"

[deps]
InfrastructureModels = "2030c09a-7f63-5d83-885d-db604e0e9cc0"
Expand Down
4 changes: 2 additions & 2 deletions src/core/solution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ end

""
function add_setpoint_switch_flow!(sol, pm::GenericPowerModel)
if haskey(pm.data, "swtich")
if haskey(pm.data, "switch")
add_setpoint!(sol, pm, "switch", "psw", :psw, var_key = (idx,item) -> (idx, item["f_bus"], item["t_bus"]))
add_setpoint!(sol, pm, "switch", "qsw", :qsw, var_key = (idx,item) -> (idx, item["f_bus"], item["t_bus"]))
end
end

""
function add_setpoint_switch_status!(sol, pm::GenericPowerModel)
if haskey(pm.data, "swtich")
if haskey(pm.data, "switch")
add_setpoint!(sol, pm, "switch", "status", :z_switch, conductorless=true, default_value = (item) -> item["status"]*1.0)
end
end
Expand Down
2 changes: 1 addition & 1 deletion src/form/apo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ end

""
function add_setpoint_switch_flow!(sol, pm::GenericPowerModel{T}) where T <: AbstractActivePowerFormulation
if haskey(pm.data, "swtich")
if haskey(pm.data, "switch")
add_setpoint!(sol, pm, "switch", "psw", :psw, var_key = (idx,item) -> (idx, item["f_bus"], item["t_bus"]))
add_setpoint_fixed!(sol, pm, "switch", "qsw")
end
Expand Down

0 comments on commit 52e3962

Please sign in to comment.