Skip to content

Commit 61039bc

Browse files
committed
updated changelog, added MAT vmag limits
1 parent 0ec82ec commit 61039bc

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ Unreleased
1313
* Area/zone projections.
1414
* Battery initial and final energy levels.
1515

16-
Version 1.2.6 (pre-release)
17-
---------------------------
16+
Version 1.2.6
17+
-------------
1818
* Branch bus name changes (from/to to k/m).
1919
* Branch AC flow getters.
2020
* Improved error handling in Problem Python class (has_error, clear_error, error checks in combine_H).
2121
* Separated python wrapper pyx into multiple files.
22+
* Bug fix: voltage magnitude limits in MAT parser.
23+
* Sphinx C docs.
2224

2325
Version 1.2.5
2426
-------------

src/parser/parser_MAT.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* This file is part of PFNET.
55
*
6-
* Copyright (c) 2015-2016, Tomas Tinoco De Rubira.
6+
* Copyright (c) 2015-2017, Tomas Tinoco De Rubira.
77
*
88
* PFNET is released under the BSD 2-clause license.
99
*/
@@ -299,6 +299,8 @@ void MAT_PARSER_load(MAT_Parser* parser, Net* net) {
299299
BUS_set_name(bus,mat_bus->name);
300300
BUS_set_v_mag(bus,mat_bus->Vm,0); // per unit
301301
BUS_set_v_ang(bus,mat_bus->Va*PI/180.,0); // radians
302+
BUS_set_v_max(bus,mat_bus->maxVm); // per unit
303+
BUS_set_v_min(bus,mat_bus->minVm); // per unit
302304
if (mat_bus->type == MAT_BUS_TYPE_SL)
303305
BUS_set_slack(bus,TRUE);
304306
NET_bus_hash_number_add(net,bus);

0 commit comments

Comments
 (0)