From b07b61b1ce909588baf2bee65b2263f542328c92 Mon Sep 17 00:00:00 2001 From: Hakan Ergun Date: Mon, 31 Jan 2022 15:52:39 +0100 Subject: [PATCH] Bug fix internal voltage magnitude for AC TNEP closes #69 --- Project.toml | 2 +- src/core/variableconv.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 0a24843e..0ad22577 100644 --- a/Project.toml +++ b/Project.toml @@ -2,7 +2,7 @@ name = "PowerModelsACDC" uuid = "ff45984e-d068-5f4c-9e32-c4133509d236" autors = ["Hakan Ergun", "Frederik Geth", "Jay Dave"] repo = "https://github.com/Electa-Git/PowerModelsACDC.jl" -version = "0.5.1" +version = "0.5.2" [deps] InfrastructureModels = "2030c09a-7f63-5d83-885d-db604e0e9cc0" diff --git a/src/core/variableconv.jl b/src/core/variableconv.jl index 810927ec..a4d9584f 100644 --- a/src/core/variableconv.jl +++ b/src/core/variableconv.jl @@ -774,7 +774,7 @@ function variable_converter_internal_voltage_magnitude_ne(pm::_PM.AbstractPowerM start = _PM.ref(pm, nw, :convdc_ne, i, "Vtar") ) if bounded - for (c, convdc) in _PM.ref(pm, nw, :convdc) + for (c, convdc) in _PM.ref(pm, nw, :convdc_ne) JuMP.set_lower_bound(vmc_ne[c], convdc["Vmmin"]) JuMP.set_upper_bound(vmc_ne[c], convdc["Vmmax"]) end