Politecnico di Torino Porto Institutional Repository · 2016-10-10 · At the end, the Neplan...

7
Politecnico di Torino Porto Institutional Repository [Proceeding] Online Optimizer for Distribution Networks on Neplan Original Citation: Breganni S. ; D’Urso F.; Giarratana A.; Gregoraci P.; Manzini M.; Pons E.; Repetto M.; Vandoni L. ; Zamboni G. (2015). Online Optimizer for Distribution Networks on Neplan. In: 2015 IEEE 15th International Conference on Environment and Electrical Engineering, Roma, June 10-13, 2015. pp. 249-254 Availability: This version is available at : http://porto.polito.it/2611757/ since: February 2016 Publisher: IEEE Published version: DOI:10.1109/EEEIC.2015.7165547 Terms of use: This article is made available under terms and conditions applicable to Open Access Policy Article ("Public - All rights reserved") , as described at http://porto.polito.it/terms_and_conditions. html Porto, the institutional repository of the Politecnico di Torino, is provided by the University Library and the IT-Services. The aim is to enable open access to all the world. Please share with us how this access benefits you. Your story matters. (Article begins on next page)

Transcript of Politecnico di Torino Porto Institutional Repository · 2016-10-10 · At the end, the Neplan...

Page 1: Politecnico di Torino Porto Institutional Repository · 2016-10-10 · At the end, the Neplan plug-in passes back the optimal network configuration to Neplan, to have it visible

Politecnico di Torino

Porto Institutional Repository

[Proceeding] Online Optimizer for Distribution Networks on Neplan

Original Citation:Breganni S. ; D’Urso F.; Giarratana A.; Gregoraci P.; Manzini M.; Pons E.; Repetto M.; Vandoni L.; Zamboni G. (2015). Online Optimizer for Distribution Networks on Neplan. In: 2015 IEEE 15thInternational Conference on Environment and Electrical Engineering, Roma, June 10-13, 2015. pp.249-254

Availability:This version is available at : http://porto.polito.it/2611757/ since: February 2016

Publisher:IEEE

Published version:DOI:10.1109/EEEIC.2015.7165547

Terms of use:This article is made available under terms and conditions applicable to Open Access Policy Article("Public - All rights reserved") , as described at http://porto.polito.it/terms_and_conditions.html

Porto, the institutional repository of the Politecnico di Torino, is provided by the University Libraryand the IT-Services. The aim is to enable open access to all the world. Please share with us howthis access benefits you. Your story matters.

(Article begins on next page)

Page 2: Politecnico di Torino Porto Institutional Repository · 2016-10-10 · At the end, the Neplan plug-in passes back the optimal network configuration to Neplan, to have it visible

Online Optimizer for Distribution Networkson Neplan

S. Breganni∗, F. D’Urso∗, A. Giarratana§, P. Gregoraci†, M. Manzini†, E. Pons‡, M. Repetto‡,L. Vandoni∗ and G. Zamboni§∗ Emisfera Societa Cooperativa

Via Quarantadue Martiri, 165, Verbania Fondotoce (VB), 28924, Italy, [email protected]† ATENA Spa

Corso Palestro, 126, Vercelli, 13100, Italy, [email protected]‡ Politecnico di Torino, Dipartimento Energia

C.so Duca degli Abruzzi, 24, Torino, 10129, Italy, [email protected]§ HAL SERVICE Srl

Via Osella, 13, Borgosesia (VC), 13011, Italy, [email protected]

Abstract—The paper presents a software module, developedwithin the Neplan network analysis tool environment, allowing adialogue between the network simulator and external data. Thetool is focused on the analysis of distribution networks and ithas been used for two main aims: to keep the network modelupdated with data measured on the field (load values, statusof switches etc.) and to couple the network simulator with anexternal topology optimizer. The procedure has been applied tothe analysis of a distribution network owned by ATENA SpA inthe Northern Italy town Vercelli. Plug-in working is explainedand some preliminary results obtained are discussed.

Keywords—Distribution network, Network monitoring, Networkoptimization, Smart grid.

I. NOMENCLATURE

API Application Program InterfaceDG Distributed GenerationDLL Dynamic Link LibraryDN Distribution NetworkDSO Distribution System OperatorICT Information Communication TechnologyIPsec Internet Protocol SecurityNAT Network Address TranslationNPL Neplan Programming LibraryPPP Point-to-Point ProtocolPV PhotoVoltaicSSL Secure Sockets LayerSSTP Secure Socket Tunnelling ProtocolTCP Transmission Control ProtocolTLS Transport Layer SecurityVPN Virtual Private NetworkXML eXtensible Markup Language

II. INTRODUCTION

In the last decade the DN way of working has changedin sensible way: the introduction of DG units, based both onrenewable or on conventional sources, can in fact reverse thedirection of power flow inside the lines. Due to this reason,DSOs have the need to monitor the state of the network andto find its best arrangement in order to keep its efficiency athigh level [1]. Notwithstanding these new requirements, the

operation of DN must comply to the radial topology in orderto guarantee a reliable and safe operation of the network underfault conditions [2], [3].

The concept of smart grid can be applied to DN if anICT infrastructure is set-up that enables the monitoring ofthe actual conditions of the network and the implementationof modifications to its configuration. In any case the use ofnetwork simulation tools is crucial to help the decision ofDSOs in particular cases where the loads or the DG powerproductions are keeping the DN under stress conditions.

The use of efficient and state-of-the-art network simulatorsis obviously another key issue. A modern software tool withhigh-level Graphic User Interface helps the DSO in the in-put/output of the network model, while well tested simulationprocedures provide certified results on which reconfigurationoperations can be made in a reliable way.

Starting from the previous considerations the SVPP SmartVirtual Power Plant research project has been developedaiming at the creation of a software tool able to interface thecommercial network simulator Neplan R© with external proce-dures. Thanks to the Neplan features that allow the dialoguewith its internal data structure and the execution of commandsvia a DLL, these modules have been used to interface Neplanwith data acquired from the medium/low voltage substationsand to couple the simulator with an external specially devisedoptimiser.

In the following, the structure of the data exchange isoutlined and afterwards a description of the data acquisitionsystem is given as well as the outline of the network optimisa-tion block. Finally some results are presented and discussed.

III. NEPLAN INTERFACE WITH EXTERNAL SOFTWARE

The commercial software Neplan [4] has been used toeasily build the network model, via the provided graphicinterface. The network model contains all peculiar networkcharacteristics, such as its topology, data about each line, busand load, the parameters of the transformers, etc. Neplan canbe extended by plug-ins via an API, making the dialogue withexternal software modules possible.

Page 3: Politecnico di Torino Porto Institutional Repository · 2016-10-10 · At the end, the Neplan plug-in passes back the optimal network configuration to Neplan, to have it visible

A. Interface with field measured data

The interface with field measured data provides measureddata such as voltage and current levels, active and reactivepower values from the physical network. In the context of theSVPP project, we have installed three such systems, that canbe used to read measures in three different network buses, asbetter explained later in this paper.

The measures are read via a serial port by a local device,which then exposes them, via http, inside a VPN. A Windows-based software, then, reads them on regular intervals, andstores all measures inside a MySQL database.

All measures read from the field are used to keep thenetwork model up-to-date, and can also be viewed on linevia a web interface, from which they can then be exported toa spreadsheet.

B. Interface with the optimizer

The network optimizer has been implemented as a Neplanplug-in. Neplan provides a C/C++ API called Neplan Program-ming Library (NPL). This API is based on a TCP/IP bus andallows for reading and modifying all the characteristics of anetwork model.

Using the C++ programming language we have createda DLL that conforms to the Neplan plug-in specifications.This DLL can be opened from within Neplan and exportsthe network topology to an XML file, and then invokes aprogram file written in Matlab that, starting from the XML file,computes all possible topologies that fulfil the radial constraintfor the same network.

Alternative network configurations or operations are cre-ated using a valid transformation operation, that can be one ofthe following:

• A network reconfiguration, by opening/closingswitches (this is the only operation implemented inthe current prototype);

• A modification in the parameters of transformers;

• A new connection of two unconnected network nodes;

• The introduction of energy storage devices.

Each alternative network configuration is passed back tothe Neplan plug-in, again using XML files. Neplan, via theDLL, reads the new configurations and computes the loadflow for each alternative. These values are passed again to theMatlab program, that calculates which is the optimal networktopology, given one or more optimization criteria, that include:

• minimizing network losses;

• minimizing voltage drops;

• avoiding that cables are used close to their currentrating;

• minimizing the distance from nominal voltage in allnetwork buses;

• minimizing energy exchanges with the HV nationaltransmission network, to maximize the employmentof local renewable sources.

XML file

networks

results

Network Optimizer

networks

results

optimum

field dataNetwork Monitoring

System

Fig. 1. Flow of information between Neplan and optimiser plug-in.

The Neplan plug-in provides a user interface allowing forthe selection of one or more optimization criteria and assigningthem a relative weight. The network optimization algorithmadopts a technique that allows to deal with multiple weightedcriteria.

At the end, the Neplan plug-in passes back the optimalnetwork configuration to Neplan, to have it visible on thegraphical interface as if it was created by the user. A schematicflow of data between the Neplan module and the optimiserplug-in is represented in fig. 1.

C. Data exchange format

The data exchange format between the Neplan plug-in andthe Matlab program is based on an XML representation of thenetwork. In particular we use two files:

• <network name> load.xml contains informationabout the loads;

• <network name> branch.xml contains informationabout lines, transformers and network topology.

For each load, the load XML file provides a unique ID, aname, the rated active(in MW) and reactive (in Mvar) power,and the ID and name of the bus to which the load is connected.Here an example:

<NET_LOAD><LOAD>

<ID>2730</ID><NAME>247086 MT</NAME><P>0.1</P><Q>0</Q><FROM_ID>2666</FROM_ID><FROM_NAME>N247086</FROM_NAME>

Page 4: Politecnico di Torino Porto Institutional Repository · 2016-10-10 · At the end, the Neplan plug-in passes back the optimal network configuration to Neplan, to have it visible

</LOAD>...

</NET_LOAD>

For each line, the branch XML file provides a unique ID,a name, the IDs of the connected buses, two flags that indicatewhether the switches at the sending and receiving buses areopen or closed, the values of line resistance and reactance,and a flag indicating whether the branch can be remotelycontrolled, that is if its on/off status is a degree of freedom ofthe optimisation procedure. Here an example:

<NET_BRANCH><BRANCH>

<ID>2722</ID><NAME>L2722</NAME><Sen>2675</Sen><Rec>2681</Rec><SenON>1</SenON><RecON>1</RecON><R>0.298</R><X>0.17</X><S>1</S>

</BRANCH>...

</NET_BRANCH>

where the parameter <S>1</S> means that the branch isswitchable.

Besides information on MV lines, the branch XML filealso provides information on HV/MV transformers, includingprimary and secondary nominal voltages, rated power, relativeshort-circuit voltage, and copper losses. Here an example:

<NET_BRANCH>...<TRAFO>

<ID>2531</ID><NAME>TR2-2531</NAME><Sen>2123</Sen><Rec>2501</Rec><Ur1>132</Ur1><Ur2>15</Ur2><SenON>1</SenON><RecON>1</RecON><Sr>25</Sr><UKPC>12</UKPC><URPC>1</URPC><S>0</S>

</TRAFO>...

</NET_BRANCH>

IV. NETWORK MONITORING SYSTEM

As described previously in this document, in order toacquire the data needed to feed the simulation model, threemeasurement installations were implemented in three differentsites of the network: the MV/LV substations named specificallyLarizzate, Carengo and Novacoop. Obviously three measure-ments in the considered portion of distribution network are not

 

Fig. 2. Communication network.

sufficient to provide the network status, but these installationsare a starting point for future developments and were used todemonstrate the feasibility of the system.

A. Sensors

Field data acquisition is operated by a ABB M2M MOD-BUS Network Analyser, which measures the relevant electricalquantities and stores them in its internal memory. All these datacan be read via an RS-485 port using the modbus protocol.In order to interface that port to the communication networkan ethernet/RS485 adapter was used. A custom c++ softwaredriver has been implemented to handle remote data acquisitionusing the TCP connection protocol.

B. Communication

The communication network is IP-based. All remote sen-sors are connected to the central server through SSTP (SecureSocket Tunnelling Protocol) tunnels over the Internet. Further-more, sensors are connected together over a wireless Intranetso that the Internet connection of each sensor can act as abackup connection for the other ones. Such distributed failoversolution avoids the single point of failure and guarantees a veryhigh degree of service continuity in case of fault.

Fig. 2 explains the distributed failover solution architectureand how it works in case of fault: Larizzate, Carengo andNovacoop sensors are connected to the Internet. Furthermore,Larizzate is connected to Carengo and Novacoop througha hiperlan 5 GHz link. When all Internet connections areworking, each sensor establishes a secure SSTP tunnel to theSSTP concentrator over its own internet connection. Supposethe Carengo Internet connection fails like depicted in fig.3. The heal check script running on Carengo router detectsInternet failure and the dynamic routing protocol re-routesoutbound traffic over the Carengo-Larizzate wireless link sothat Carengo sensor can be reached by the server exploitingLarizzate Internet connection.

SSTP guarantees secure encrypted data flow between sen-sors and server. It is basically a PPP (Point-to-Point Protocol)

Page 5: Politecnico di Torino Porto Institutional Repository · 2016-10-10 · At the end, the Neplan plug-in passes back the optimal network configuration to Neplan, to have it visible

 

Fig. 3. Communication network behaviour in case of fault.

tunnel running on a SSL tunnel, specifically a TLS 1.0 tunnelin our deployment. In our scenario SSTP is the best choicebecause:

• it works on a SSL connection, like a secure website,therefore it can work without problems with anyInternet connection as long as port TCP/443 is notfiltered, which is a very rare condition. It does notsuffer NAT like IPsec for example.

• It works in client/server fashion, like common dial-upVPN connections, therefore it does not require fixedpublic IP address.

• It provides a good level of encryption and data in-tegrity.

The only drawback is that, like any IP-over-TCP tunnel, ithas a large overhead and can suffer poor performances if theconnection has not an adequate excess of bandwidth comparedto the data stream. However, in our scenario, this is not aproblem since bandwidth requirements are very low.

V. OPTIMIZER

The network optimizer is made of two main modules: thefirst module receives as an input the base network configurationand gives as output all the possible radial configurations thatcan be derived from the base one. The second module receivesas input the load flow results (calculated by Neplan) of all thepreviously generated configurations and returns the ID of thenetwork topology that satisfies the optimization criteria. In thefollowing the two modules are described.

A. Radial networks exploration

The XML file <network name> branch.xml is used tocreate a matrix containing the full topology of the base, orreference, network configuration, including the HV buses andthe HV/MV transformers. Starting from this configuration, allthe lines with open switches are identified as tie-lines.

Subsequently, the tie-lines switches are closed, one byone. Every time a tie-line switch is closed a loop is formed,making the network not radial any more. At this point, thelines belonging to the new loop are detected [3], among themthe group of lines identified as “switchable” is extracted, andone of them is opened, restoring the radial condition. A newnetwork configuration is produced for every “switchable” linein every loop.

B. Performances evaluation

After the generation of the alternative topologies, Neplancalculates the solution of the load flow for each of them andreturns the results for the performances evaluation.In the first prototype of the optimizer the following results areused in the performances evaluation:

• active power losses in the MV lines;

• active power losses in the HV/MV transformers;

• voltages at the MV buses.

The active power losses are summed for each configurationto calculate the total network losses. For what concerns thevoltage profile, the largest absolute voltage difference withrespect to nominal value in the network is found for eachconfiguration and this represent the performance of the net-work from the voltage profile viewpoint. A weight is used toconsider both criteria (after normalisation) in the performancesevaluation, as showed in eq. (1).

f(x) = (1 − w)PLossNorm(x) + w∆UMaxNorm(x) (1)

where:x is the id of the alternative network

configuration;w is the assigned weight;PLossNorm are the total normalized network losses;∆UMaxNorm is the maximum normalized voltage

drop.

Both criteria are considered as they often lead to differentoptimization results, as will be showed in the case study.

VI. CASE STUDY

The software modules described in the previous sectionshave been tested on the MV distribution network of theNorthern Italy town Vercelli.

The distribution network in Vercelli is managed by AtenaS.p.A. and serves an area of around 65 km2. Two HV/MVsubstations feed 220 MV/LV substations through around 450km of MV lines.

For the case study of this paper, as a simplified example,only a portion of the network is considered, fed by one ofthe two HV/MV substations, called Vercelli Sud, (fig. 4). Thisportion of network was chosen because of the presence ofDG (mainly PV systems) in MV and in LV. The PV natureof the DG creates a power flow difference between winterand summer seasons. In this way different optimized networkconfigurations can be found in different periods of the year.

In Vercelli Sud substation two HV/MV transformers, with arated power of 25 MVA, feed two separate busbars called red

Page 6: Politecnico di Torino Porto Institutional Repository · 2016-10-10 · At the end, the Neplan plug-in passes back the optimal network configuration to Neplan, to have it visible

Fig. 4. Neplan model of Vercelli Sud distribution network

busbar and green busbar. Each busbar feeds four MV linesalong which are connected globally 48 MV/LV substations.The MV/LV substations supply both MV loads and MV/LVtransformers for LV loads or LV connect DGs. In order tosimplify the network model the MV/LV transformers are notexplicitly represented and the LV loads are directly connectedto MV busbars; to keep into account the MV/LV transformersand LV cables losses, the active power of LV loads is correctedwith an appropriate coefficient.

In Vercelli Sud network only one tie-line is present (lineL3420): in the base case presented in fig. 4 in fact the circuitbreaker of this line in the substation N240593 is open. This isthe normal network configuration used by the DSO in Vercelli.

The closure of tie-line L3420 forms a loop constituted bylines: L2381, L2398, L2430, L2435 and L2552 (in the brokenline box in fig. 4) and by the two HV/MV transformers. Inthis example all the circuit breakers of the lines in the loopare considered switchable while the circuit breakers of thetwo transformers are always kept closed. The bus-tie breakerbetween the red busbar and the green busbar is instead alwayskept open. The details of the loop are showed in fig. 5.

TABLE I. ALTERNATIVE NETWORKS PERFORMANCES - WINTER

ID Description PLossNorm ∆UMaxNorm

0 Base configuration 9,9400E-01 9,1385E-011 Opened line L2552 - closed tie L3420 9,9569E-01 8,8361E-012 Opened line L2381 - closed tie L3420 1,0000E+00 1,0000E+003 Opened line L2398 - closed tie L3420 9,9580E-01 9,7725E-014 Opened line L2430 - closed tie L3420 9,9324E-01 9,5080E-015 Opened line L2435 - closed tie L3420 9,9318E-01 9,4900E-01

When this base network is exported from Neplan to theoptimizer, five alternative network configurations are created.A summary of the network performances for the base networkand for the five alternative configurations, calculated by theoptimizer with the Neplan load flow results with typical winterloads and generation values, are presented in table I.

In this case the results show that, in order to optimizethe distribution network from the losses perspective, the DSOshould close the circuit breakers of the tie-line and open lineL2435 (configuration 5). If instead the DSO wants to reducethe maximum voltage drop in the network, the best networkconfiguration for this load and distributed generation profile

Page 7: Politecnico di Torino Porto Institutional Repository · 2016-10-10 · At the end, the Neplan plug-in passes back the optimal network configuration to Neplan, to have it visible

Fig. 5. Zoom on the loop in Vercelli Sud distribution network

TABLE II. ALTERNATIVE NETWORKS PERFORMANCES - SUMMER

ID Description PLossNorm ∆UMaxNorm

0 Base configuration 8,4000E-01 8,0539E-011 Opened line L2552 - closed tie L3420 8,4648E-01 7,9196E-012 Opened line L2381 - closed tie L3420 1,0000E+00 1,0000E+003 Opened line L2398 - closed tie L3420 8,6243E-01 8,6118E-014 Opened line L2430 - closed tie L3420 8,5071E-01 8,3825E-015 Opened line L2435 - closed tie L3420 8,5060E-01 8,3629E-01

appears to be the one with opened line L2552 (configuration1).

A summary of the network performances calculated bythe optimizer with the Neplan load flow results with typicalsummer loads and generation values, are instead presented intable II.

With typical summer load and generation values, the best

option from the losses perspective is not any more configura-

tion 5 but configuration 0, i.e. the base case.

VII. CONCLUSION

In this paper a software module, developed to work withNeplan, has been presented. It allows a dialogue between thenetwork simulator and external data. It has been used for twomain reasons: to keep the network model updated with datameasured on the field and to couple the network simulator withan external topology optimizer. The overall system has beenapplied to the distribution network in Vercelli.

Neplan software environment has shown to be robustand reliable with very good capabilities for dialoguing withexternal data and with external software through third partsdeveloped DLLs.

The network optimization was performed on a real networktopology, with real load and generation values. The resultsshow that seasonal differences can exist in the optimizedtopologies. The DSOs should therefore consider to periodicallychange the network configuration in order to minimize networklosses and/or voltage drops.

The computation time required by the optimizer is quitesmall but, as it is now performed, the enumeration of allpossible network configurations can become large, especiallyfor big distribution systems with many tie-lines. For thepresented case study, the total time required for radial networksexploration was 1,68 s, while for the performance evaluation1,01 s, both including files reading and writing.

In the future other features will be added to the onlineoptimizer, such as the possibility to work with different stan-dardized data formats, the use of optimization strategies thatdo not require a full exploration of network topologies andthe possibility to include other objectives in the optimizationprocess (maximization of the distance from current ratingof lines, minimization of energy exchanges with the HVtransmission network, etc.)

ACKNOWLEDGMENT

The authors would like to thank Neplan R© for providingassistance in the plug-in development.

REFERENCES

[1] Keane, A. ; Ochoa, L.F. ; Borges, C.L.T. ; Ault, G.W. ; Alarcon-Rodriguez, A.D. ; Currie, R.A.F. ; Pilo, F. ; Dent, C. ; Harrison,G.P., “State-of-the-Art Techniques and Challenges Ahead for DistributedGeneration Planning and Optimization”, IEEE Transactions on PowerSystems, 28, (2013), pp. 1493–1502

[2] M. Lavorato, J.F. Franco, M.J. Rider, and R.Romero, “Imposing RadialityConstraints in Distribution System Optimization Problems”, IEEE Trans.on Power Systems, vol. 27, (2012), pp. 172-180.

[3] V.N. Gohokar, M.K. Khedkar, G.M. Dhole, “Formulation of distribu-tion reconfiguration problem using network topology: a generalizedapproach”, Electric Power Systems Research 69, (2004), pp. 305–310

[4] NEPLAN Power System Analysis and Engineering, Zurich,http://www.neplan.ch/, accessed Jan. 14, 2015.