SciELO - Scientific Electronic Library Online

 
vol.21 issue1A survey on variants of DoS attacks: Issues and defense mechanismsA new direct power control method of the DFIG-DRWT system using neural PI controllers and four-level neural modified SVM technique author indexsubject indexsearch form
Home Pagealphabetic serial listing  

Services on Demand

Journal

Article

Indicators

Related links

  • Have no similar articlesSimilars in SciELO

Share


Journal of applied research and technology

On-line version ISSN 2448-6736Print version ISSN 1665-6423

J. appl. res. technol vol.21 n.1 Ciudad de México Feb. 2023  Epub May 23, 2023

https://doi.org/10.22201/icat.24486736e.2023.21.1.2167 

Articles

Improving the optimization of electric power systems through a discrete event based simulation model

M. Blasa  * 

G. Alvareza 

J. Sarlia 

a INGAR/CONICET-UTN, Instituto de Desarrollo y Diseño, Santa Fe, Argentina


Abstract:

This paper presents a novel hybrid approach for studying electric power systems as a combination of the electrical power generation process and the actual state of the transmission lines. The approach is composed of a discrete-event simulation model and a mathematical programming model. The simulation model is designed as a routing problem defined over a set of transmission lines considered (individually) as active, inactive, under maintenance, and outage. On the other hand, the mixed-integer lineal programming model determines the best way to generate and transmit power flows (considering, simultaneously, all possible solutions). This type of model allows solving the economic dispatch problem in lower computational times. It also ensures reaching the global optimum. When adding the discrete-event simulation model for studying the state of transmission lines, the final hybrid approach allows obtaining feasible solutions when the system parameters change. Here, both models (i.e., simulation and optimization models) are combined to improve the capabilities of the model structure to represent real-life scenarios. Our proposal is used to analyze a case study composed of an electric system with six buses, eleven lines, and three generators.

Keywords: Electric power system; modeling and simulation of transmission lines; routed DEVS

1. Introduction

More than 25,000 TWh of electricity are generated annually worldwide (International Energy Agency, 2017). According to (U.S. Energy Information Administration, 2022), the average cost of generation (depending on the source) is 3,500 USD/kW. Therefore, the electricity industry spends billions of dollars annually to meet the population's needs.

Most of the electricity markets are classified according to the activity performed by each component. In general, their structures are divided into three major stages: generation, transmission, and distribution (Ardila & Cardona, 2017). In the generation stage, the companies manage the operation and maintenance of the generating plants. The companies of the transportation stage are in charge of managing the operation and maintenance of the transmission lines. These lines are a high-value component of the electric power system because they connect the generating plants to the customers. In other words, transmission lines are components that involve long distances over which high voltage levels (Khodaei & Shahidehpour, 2012). Finally, the distribution companies are responsible for adapting and distributing the electricity to the consumers in each region. In this context, the study of the efficiency in the combined processes of generation, transmission, and distribution is a challenging research field. This paper is devoted to the study of the generation and transmission systems.

Regarding power generation and transmission modeling, in (You et al., 2016), the authors study these activities in a co-optimization problem considering the wind penetration in large-scale power grids. Similarly, (Guerra et al., 2021) present a framework for the daily market of electricity and natural gas. The proposed approach includes the modeling of systems that require flexibility when using power plants with short start-up and shut-down times. Another option is the use of Mixed Integer Linear Programming (MILP) models. When these models are used for representing electric power systems, new types of problems can be solved. For example, (Carrión & Arroyo, 2006) is one of the most extended works for the scheduling of thermal units. The proposed formulation needs some auxiliary variables and constraints in comparison to other approaches. This means that it produces computational savings. In (Alvarez, 2020a), a MILP model that studies the operation and the impact of several energy storage systems on a large-scale electric power system is defined. Such a model considers real-life and simulated situations in a system of 40 million people. The MILP formulations can be also applied to represent other types of operations, for example, restoration. In this context, the authors of (Xie et al., 2021) develop an optimization model that can generate a flexible re-energizing of transmission lines. Besides, both start-up time and serial restoration constraints are considered. Additionally, in (Alvarez, 2020b), a MILP model is developed for representing the operation of pumped storage stations.

The study of the dynamics of electrical systems, and their response to unforeseen events, has been at the center of scientific research for decades. In (Fu et al., 2007), the authors present a method for solving the programming of electricity generating units along with their corresponding dispatch. This model includes scheduled maintenance outages (of both generating units and transmission lines). However, it does not contemplate unscheduled outages or failures. A similar approach is observed in (Abirami et al., 2014), where the authors study the coordination of electricity systems considering only maintenance interruptions. However, simulation is not used to analyze the response to such failures. Finally, in (Ahmad et al., 2018) a model that simulates failures within a power transmission company in Pakistan is presented. This last model is focused on the transmission area, so there is no direct impact of these failures on the generation and transmission processes.

In this context, although a lot of work has been done in the field, there are no approaches that allow for a joint approach to generation and transmission, considering both the occurrence of maintenance events and failures/shutdowns due to external events. A feasible solution to bring together both areas is using simulation models based on events. In the event-based simulation approach, the system dynamics is modeled as a series of discrete events that modify the state of the system at specific points in time. In this context, the Discrete Event System Specification (DEVS) formalism (Zeigler et al., 2018) has become one of the preferred paradigms to conduct modeling and simulation enquiries (Wainer & Mosterman, 2011). The DEVS formalism is a modular and hierarchical Modeling and Simulation (M&S) formalism based on systems theory that provides a general methodology for the construction of reusable models. It has been used for representing electric systems before. In (Toba et al., 2017), a DEVS framework is presented for modeling electric power systems. The hierarchical and modular construction properties enable the modeling of each component individually. A PyPDEVS platform is utilized for simulating the system (including components related to economic dispatch, generating units, load modules, energy storage, and transmission lines). Recently, in (Toba & Seck, 2019), a model called Spark! is presented. This model simulates a grid considering large-scale systems and long-term horizons. Besides, the model considers the stochastic nature of renewable resources, thermal unit constraints, topographical and climate information, transmission constraints, and convenient time resolution. In the field of biogas, authors of (Beccaria et al., 2018) present a model based on DEVS to simulate the production and storage of biogas by using organic waste. Biogas is used to generate electricity to validate diverse scenarios of production and consumption and promote a better decision process to enhance the production of biogas. Similarly, the author of (Jarrah, 2016) presents a modeling approach using a DEVS environment. The proposal represents four main components that are available in a smart grid: photovoltaic sources, wind generation, energy storage facilities, and power demands. The real wind speed data and solar forecast are considered. The simulation results prove the convenience of using store devices to help with the operation of PV and wind power generation. Considering the field of smart homes, (Albataineh & Jarrah, 2019) propose a modeling-simulation model using DEVS formalism for simulating the use of smart home devices by considering diverse scenarios and settings. The monitoring devices comprise sensors that store data about climate conditions, dispatched electrical power, system performance, among others. Also, the control devices implemented by authors send signals for setting and controlling (in a remote way) several devices in the environment of the smart home. Finally, the work of (Maatoug et al., 2014) models and simulates a dynamic ecosystem (such a, for example, a smart city) using DEVS. The energy management studied is divided into two categories: predictive control and adaptive control.

This proposal is defined by the ability of DEVS for modeling discrete event systems and decompose them into subsystems

The integration of DEVS simulation models with optimization approaches (which are commonly used for the study of electrical systems), leads to a deeper analysis of the combined process of electricity generation and transmission. The combined analysis allows studying real complex situations. This paper presents a hybrid approach that combines i) a simulation model based on a discrete-event formulation that defines the structure of the transmission system and ii) an optimization model that regulates the generation of electricity within a defined market scheme. Often, electricity markets are regulated by a control entity called an Independent System Operator (ISO). This entity determines the rules of the market, sets prices, ensures control of the electricity network, and determines the programming of the resources available in the system. Also, it oversees regulating the interactions between market players. In this context, our proposal conceptualizes the ISO as a common component shared by both models to solve the problem.

The structure of the simulation model is defined based on the topology of the electrical system using DEVS and Routed DEVS (RDEVS) (Blas et al., 2017). The RDEVS formalism is an adaptation of the DEVS formalism designed to improve the modeling and simulation of routing processes over DEVS models. Here, the use of discrete-event models allows studying the states of the transmission lines according to several types of events. The structure of the transmission system is defined as a network that requires the routing of state events. The output of the simulation is used to execute the optimization process. The optimization model is based on the MILP model described in (Alvarez, 2020c). The main contributions of our hybrid approach are i) the use of a simulation model to analyze the state of the transmission lines, ii) the use of an optimization model to analyze the impact of the transmission lines over the generation system, and iii) the definition of a new hybrid structure that supports, in the future, the addition of new features to study complex electric systems. Hence, our approach improves the study of both systems (generation and transmission) by analyzing their dynamics in a single combined model.

The rest of the work is organized as follows. Section II summarizes the models that compose our proposal. Sections III presents the results obtained when our model is applied to a case study that addresses the IEEE system of 6 bars, 3 generators, and 11 lines. Finally, Section IV is dedicated to the conclusions and future work.

2. Materials and methods

In this paper, the transmission line system is conceptualized in a simulation model. Failures in lines may cause overloads, outages, or even blackouts (Alvarez & Blas, 2020). Hence, our simulation model combines expected events (e.g., scheduled maintenance) with unexpected events (e.g., failures due to atmospheric causes) to get the state of the transmission lines. The simulation output is discretized in hours. Such an output is used as input in a MILP model that defines the electricity generation process. This optimization model ensures reaching the optimum. Hence, the introduction of the transmission line states distinguishes the hybrid model proposed in this paper from others by reducing the load required to solve the optimum (Alvarez & Sarli, 2020). By considering the eventual issues that the lines may suffer, solutions are reached in low processing times.

2.1. Hybrid Model Structure

The topology of the electrical system is based on a single-line diagram (i.e., a set of buses, generators, and lines). Such a diagram outlines the structure of both models (i.e., simulation and optimization).

For the simulation model, the structure model is defined following the connections between buses and lines. These connections define a network topology where state events related to lines should be routed. Given a set of n lines L = {L1, L2, …, Ln} entering the bus B, the outgoing lines of B (defined by the set L’) can be considered as located downstream of L. If some event takes place in L (e.g., inactivity), the downstream lines may experience unexpected behaviors (e.g., a transmission line becomes inactive because lines placed upstream have entered fault/maintenance). Figure 1 represents this scheme. Hence, the simulation model outlines the structure of the transmission system using such a scheme, where the foundational component is the behavior of a transmission line (TL). The data produced during the simulation process is recorded in an output file. Such a file contains the state of the TLs along the simulation horizon.

Figure 1 Transmission line scheme. 

On the other hand, the optimization model is structured following the set of buses that define the connections between generators, loads, and TLs. To establish the status of the transmission system, this model uses as input the status of the TLs (obtained from the output file of the simulation model). Based on this data, the model determines the optimal combination of generator units minimizing the production cost function (Frangioni et al., 2009). It also uses the available configuration of the TLs for load dispatch.

Figure 2 depicts how both models are used in our hybrid approach. This diagram presents the relationships between models. The one-line diagram structures both transmission line and generation systems. For the transmission system, the scheduled maintenances are required as input (MaintenanceSchedule.csv). The goal is to use the state of the transmission system (i.e., the simulation output) during the programming of the generation system (i.e., the optimization model output). However, the time unit used in the simulation model (minutes) has more resolution than the one used in the programming (hours). Hence, we use a data transformation process to fit data (from the TL-name.csv files to the TLGlobalState.csv). In this way, the simulation model can execute maintenance and failure events that can take place at any minute of a daily period (i.e., 1440 minutes). Then, the optimization model carries out the schedule of the generation units every 60 minutes (i.e., one hour). Such a period is the most common operation time used for these processes. By following this approach, both models share the data related to the transmission line states.

Figure 2 The hybrid structure proposed to link the generation system with the transmission line system through the transmission line states. 

2.1.1. Model Assumptions and Limitations

Mathematical formulation presents several assumptions and limitations. First, the model does not consider the possibility of load shedding. This is, demand can be fulfilled with the actual power generation. Regarding power transmission, the reactive component of power flows is not considered since the DC power flow model only considers the real component of the transmitted power. Besides, the system accepts that power losses due to transmissions are 0 (because it assumes large lines, and then, distances are negligible). Finally, regarding the power balance, the storage devices are assumed as a load that increases the storage power when generation is higher than demand.

2.2. Transmission System Simulation Model

Figure 3 presents the simulation model using a component-based representation. It is important to denote that, as in any component-based representation, the events that take place as part of the internal behavior of models are not represented. The next sections introduce the behavior of each component.

Figure 3 Structure of the DEVS-based simulation model used to study the transmission system. 

As the figure shows, the overall model is called the electric power system simulation model and is divided into two models (i.e., experimental frame and transmission lines simulation model). The experimental frame is defined as a DEVS coupled model, while the transmission lines simulation model is defined as an RDEVS network model. A DEVS coupled model defines which sub-components belong to a structure and how they relate to each other. On the other hand, the RDEVS formalism has been presented in (Blas et al., 2017) as a subclass of DEVS that provides a solution for the event identification as embedded functionality in simulation models. The core of RDEVS is the abstraction of the event flow as independent behavior of components. Hence, the components to be included in the simulation model can be designed using the DEVS formalism, and then, the RDEVS formalism can be used over them to route events. Given the transmission system topology is defined using the one-line diagram, how components

As the figure shows, the overall model is called the electric power system simulation model and is divided into two models (i.e., experimental frame and transmission lines simulation model). The experimental frame is defined as a DEVS coupled model, while the transmission lines simulation model is defined as an RDEVS network model. A DEVS coupled model defines which sub-components belong to a structure and how they relate to each other. On the other hand, the RDEVS formalism has been presented in (Blas et al., 2017) as a subclass of DEVS that provides a solution for the event identification as embedded functionality in simulation models. The core of RDEVS is the abstraction of the event flow as independent behavior of components. Hence, the components to be included in the simulation model can be designed using the DEVS formalism, and then, the RDEVS formalism can be used over them to route events. Given the transmission system topology is defined using the one-line diagram, how components (i.e., buses and lines) are linked define the routing problem. In this context, the RDEVS formalism provides a suitable foundation for developing the simulation model required at this stage (i.e., the transmission lines simulation model). A RDEVS network model defines the structure of a set of components that are connected all-to-all over a set of routing policies.

All models designed as part of the electric power system simulation model were implemented in Java using DEVSJAVA (Arizona Center of Integrative Modeling and Simulation, 2005).

2.2.1 The ‘experimental frame’ model

The experimental frame model is defined as a coupled model that is composed of three DEVS models, namely: maintenance team, outage generator, and independent system operator. The maintenance team model is defined based on the maintenance generator and restoration task models.

The input events of the experimental frame are sent directly to the independent system operator. When the independent system operator receives an outage event from a TL that has fallen into failure, it processes it to create a repair order. That is, it generates a restorationRequest event that is sent to the maintenance team to work according to its maintenance policy.

When a restorationRequest input event is received in the maintenance team, the event is redirected to the restoration task model. When this last model receives a restorationRequest, handles it according to an order queue, generating an element of the RestorationInformation type. This element is queued to be attended according to a First In First Out (FIFO) policy. Then, the repair time is calculated according to a probability distribution previously set in the model. Given that the model is defined as a generic template, the modeler can use any distribution available in the software package. When the model determines that is time to repair the failure, a restoration event is sent to the output of the maintenance team. Such an event contains the identifier of the TL to be repaired and it is redirected to the output of the experimental frame (which is connected to the input of the transmission lines simulation model).

The maintenance team also sends maintenance events to the output of the experimental frame. These events are generated by the maintenance generator. When initialized, the maintenance generator loads (from the MaintenanceSchedule.csv file) a list of pending maintenance events. This operation is according to how the maintenance is given in the real-life transmission systems. Following the regulations of most of the electrical systems in Latin America, the scheduled maintenances are previously approved by the control agency (in the case of Argentina, see (CAMMESA, 2014). Then, the list of pending maintenances is ordered by the time of occurrence (i.e., the simulation time in which the maintenance of a certain line must take place). Each element of this list is structured as follows: (simulationTime, TLId, duration). When the simulationTime is fulfilled, the maintenance generator creates a maintenance event that is sent to the TL with TLId identifier. This event indicates the line that is going to enter maintenance during the period defined according to duration. At any time, if the list of pending maintenances is empty, the model goes to a passive state (i.e., it will not generate new events until the current simulation ends).

Finally, the outage generator creates events associated with TL failures. According to (Wang et al., 2016) and (Vásquez et al., 2009), the behavior of unexpected faults in TL can be estimated through typical distributions (the closest being the Weibull distribution). Hence, the fault generation is provided based on a Weibull probability distribution. The parameters required in such a distribution are the shape (k) and scale (λ). As in any generic model template, the parameter values should be configured when a specific case is solved. The TL on which the failure occurs is chosen randomly from the set of lines defined in the transmission system structure.

2.2.2. The ‘transmission lines simulation’ model

The RDEVS formalism defines three types of simulation models: essential model, routing model, and network model. Each model represents a level of abstraction used to define the elements that are part of the definition of a routing problem.

An essential model represents the behavior of a basic component of a certain domain. On top of an essential model, routing models are defined. A routing model represents a node that establishes an entity capable of handling the origin/destination of its input/output events. Finally, a network model represents the network on which the routing process is defined based on a set of entities. Appendix A presents the formal definition of RDEVS.

When modeling the transmission line system as a routing problem, the TLs are the basic component of the model (where a transmission system is composed of N lines). An essential RDEVS model is designed for modeling the behavior of a TL, which is then used in N routing models to define the network model that represents the whole system.

2.2.2.1. The RDEVS essential ‘transmission line’ model

The formal definition of the essential model that represents a TL is presented in Appendix B. The model starts in an active phase. This means that a TL is initially active. Besides, the model includes two parameters that are used to define the number of inactive upstream lines (parameter named inactiveUpstreamTL, whose initial value is 0) and the total number of upstream lines (parameter named upstreamTL).

In this initial state, the model can receive different events from the experimental frame, namely: maintenance, outage, and restoration. When a maintenance event is received, the model enters a maintenance phase. Before this, the TL warns its downstream lines that it is about to be out of service. To do this, it sends an inactive event. This event is selectively sent only to the lines directly downstream of the current TL. After this sending, the model goes into the maintenance phase for the period defined in the maintenanceTime attribute. When the maintenance is finished, the TL can go into an active or inactive phase (according to the state of the upstream lines at that time). In case of having to enter an active phase, before changing its state, the TL sends an active event to its downstream lines (to inform that from now on, it will be active).

The arrival of an outage event causes the model enters to an outage phase until a restoration event arrives. Because of the outage state, the TL sends an inactive event to its downstream lines (to inform its eventual state of inactivity). Also, it sends an outage event to the independent system operator to manage the repair order. Finally, when a restoration event is received, the model returns to the active or inactive phase (according to the state of the upstream lines). The criteria applied are the same as for the arrival of a maintenance event.

In addition to the events coming from the experimental frame, a TL must deal with the arrival of active and inactive events sent from other upstream TLs. When an active event arrives at a TL, the TL decreases (by one unit) the number of inactive lines upstream (parameter inactiveUpstreamTL). If the line was in an active phase, the model continues as it was doing (because what has happened is that one of the upstream lines has gone from inactive to active). This situation does not affect the current activity of the TL (because there is an active upstream line that allows the TL to remain active). However, if the line was in an inactive phase, the state must change to an active phase. In this case, the model alerts its downstream lines that its entering activity (by sending an active event).

On the other hand, when an inactive event is received in a TL, the model increases (by one unit) the number of inactive lines upstream (parameter inactiveUpstreamTL). If this increase causes that the value of inactiveUpstreamTL to equal upstreamTL, the TL enters an inactive phase (since all upstream lines are inactive). The TL then sends an inactive event to its downstream lines and then goes into an inactive phase. The model will exit this inactive phase when one of its upstream lines informs it that it has entered an active phase (i.e., an active event arrives). On the contrary, if after the increase the values of inactiveUpstreamTL and upstreamTL are different, the TL must remain in an active phase. To provide a more comprehensive definition, Figure 4 presents a state diagram that illustrates the main features of the behavior described before.

Figure 4 State diagram that represents the RDEVS essential model of transmission lines 

2.2.2.2. The RDEVS routing ‘transmission line’ model

As described in the previous section, active and inactive events are routed from a TL (current line) to the subset of TLs located downstream of that line. Sending this type of message corresponds to the event routing problem to be solved as part of the final simulation model.

Then, once the essential model (to be used in all the TLs) is defined, a specific routing model is generated for each TL used in the transmission system. This routing model encapsulates the general behavior (defined in the essential model) and incorporates the specific routing information for each TL to be simulated. Such routing information is the upstream and downstream lines of the current TL (used to determine the origin and destination of the active and inactive events).

During the simulation, each routing model generates a TL-name.csv file (where name is the name of the model included as part of the routing process). This file saves records of the type {simulationTime, state} for each state that takes place during the simulation execution. In this way, the state of the transmission lines throughout the simulation process is obtained.

2.2.2.3. The RDEVS network ‘transmission line simulation’ model

The network model that defines the final transmission system is composed of the set of routing models defined for the TLs (making use of an essential model). That is, the routing scenario presents the topology of the downstream TLs. This type of simulation model definition allows the incorporation of new TLs without the need to redefine the behavior model (i.e., the essential model).

Hence, the design of the simulation model facilitates the study of generic transmission line systems composed of N lines. The required configuration corresponds only to the parameterization of the routing information to be used for the events.

2.3. Data transformation process: from simulation output to optimization inputs

As described in Figure 1, the proposed hybrid approach is based on the integration between generation and transmission systems. A data transformation process was developed to achieve such integration. This process allows translating the output data obtained from the simulation model (i.e., related to the transmission system) with the input data required by the optimization model (i.e., the generation system).

The data transformation process analyzes the state of each TL during the simulation time and defines a matrix of TL states for each hour of the scheduling horizon used in the optimization model. The process uses as input information the output files produced by the simulation model (TL-name.csv). These files contain the state of each TL as records of type {simulationTime, state} where the possible states are represented by integer values, namely OUTAGE (0), MAINTENANCE (1), INACTIVE (2), and ACTIVE (3).

Although the simulation model allows specifying several states for the same TL, the optimization model admits only two possible states: ON (1) and OFF (0). Then, to align the state information of both models, our process uses a transformation rule (RT): "A TL in ACTIVE state is equivalent to the ON state, while any other state should be interpreted as OFF state”. Hence, the data transformation process search through all the records of TLs to determine their states in the intervals of the programming horizon (i.e., every hour). The status of each TL is transformed following the RT described. As a result, the transformation process creates a Boolean matrix of global states. Rows are TL and columns represent each hour of the scheduling programming horizon (24 columns to represent daily hour-by-hour scheduling). Such a matrix is stored in a new file called TLGlobalState.csv. As stated before, this file is used as input into the optimization model.

2.4. Generation System Optimization Model

According to (International Energy Agency, 2017), the world energy matrix is composed of the following sources: oil (31.7%), coal (28.1%), natural gas (21.6%), biofuels and waste (9.7%), nuclear (4.9%), hydroelectric (2.5%), and other renewables (2.1%).

As mentioned, the hybrid model employs the proposal presented in (Alvarez, 2020c), which uses the GAMS software and its CPLEX Resolver to solve the optimization problem. That model considers all the mentioned energy sources to schedule electricity generation in Argentina. It minimizes the cost of generating electricity from each of the sources according to (1). This objective function represents the operating cost for producing electricity with all considered technologies. It means the sum of the produced power multiplied by the correspondent cost. The indexes i and t correspond to the unit and the period of the generators. The constants I and T refer to the total number of generators and periods. Besides, the constants δ represent the generation cost per MW, and p is the power output variable. The supra-indexes belong to the different sources: g is the supra-index related to power output for units that work by using natural gas, ng is related to thermal units that work by consuming other fossil fuel different from natural gas, h for hydropower generation, n for nuclear generation, w for wind, and pv for photovoltaic units, respectively. For further details regarding the constraints implemented, they are included in (Alvarez, 2020c).

min cost =t=1Ti=1I(pi,tgδg+pi,tngδng+pi,thδh+pi,tnδn+pi,twδw+pi,tpvδpv) (1)

Demand constraint, described in (2), states that the sum of the produced power of all units must cover the demand, which is composed of the sum of all loads (ld c,t ). In this equation, ld c,t is the parameter of load, and c is the correspondent set.

c=1Cldc,t i=1I(pi,tg+pi,tng+pi,th  +pi,tn+pi,tw+pi,tpv)    ,  t = 1,, T (2)

In (3), the spinning reserve is the available power but is not charged, which can compensate for unexpected failures. The equation utilizes a binary variable u i,t , which is equal to 1 when the generator is operating, and 0 when the generator is shut down. This constraint must be extended to all the considered technologies (natural gas, hydro, nuclear, wind, and photovoltaic).

Rt i=1Ipiupui,t-i=1Ipi,t, t = 1,, T (3)

Generation limits are stated in constraint (4). Where pilo and piup are the lower and upper limits.

pilo ui,tpi,tui,tpiup  i=1,, I ; t = 1,, T (4)

Transmission constraints are modeled by using the called DC flow model, which is detailed in (5). This model reaches feasible solutions in addition to a reduction of computational (when the DC flow model is compared with the non-linear models, for instance, the AC model). In this equation, fbui,buo,t is power flow transmitted between the input bus bu i and the output bus bu o . Also, Rbui,buo is the reactance of the line.

fbui,buo,t=bui,t-buo,tRbui,buo,      t=1, ,T (5)

In (6), the bus balance is performed. The sum of power output, in addition to the entering transmitted flow (fbui=bu,buo,t), is equal to the sum of the leaving transmitted power (-fbui,buo=bu,t), the power storage (SPbu,t), and the sum of loads (ldc,bu,t).

iIpi,bu,t+fbui=bu,buo,t-fbui,buo=bu,t-ebui,buo=bu,t=SPbu,t+c=1Cldc,bu,t               t=1, ,T   (6)

The new model incorporates the transmission of electricity through the lines by using a matrix that represents the current state of each of line. This matrix is directly obtained from the TLGlobalState.csv file. The information in this array is used in (7), where Fline- is the maximum power flow supported by the line (MW), f line.t is the variable of effective power transmitted, and Γline,t is the array of line state coefficients. Then, the integration between the mathematical models solved in a optimization software and the result of the simulation is performed by creating the matrix Γline,t. In each period, the model uses the updated matrix representing the current state of all transmission lines.

-Fline-Γline,t  fline,tFline- (7)

Furthermore, the performance of the model is improved since the processing time is reduced (especially in large-scale systems). This is because the simulation model states that if all upstream lines are offline (i.e., have fallen into inactivity), the next TL will be also offline. This is reflected in the matrix calculation, so the optimization software (at the beginning of the programming period) will not attempt to consider the inactive lines. For this reason, the calculus of possible solutions is reduced. The considered mathematical model offers several benefits in different fields of the optimization topic. First, the model offers representations of different sources that are closer to reality than similar approaches. One example of this statement is presented in (Alvarez, 2020b), where the presented model represents more closely the operating curves by accepting more breakpoints. Another benefit is the reduction of the computational effort due to the implementation of techniques, as the DC power flow model, whose performance, in terms of CPU time reductions, was confirmed in (Overbye et al., 2004). At last, the rest of the benefits of MILP formulation (reduction of computational effort, global optimally, and flexibility to add constraints) were deeply discussed in (Lima & Grossmann, 2011).

Under this scheme, the integration of the simulation results (in addition to the benefits already stated) produces a reduction of the computational effort in the resolution of the optimization model (since the model does not have to evaluate the possibility of power circulation through a previously disabled line. The model presented is a hybrid, a "mixture" of deterministic and stochastic. The presence of a single random variable in the model requires consideration of the model of this nature. Hence, our approach introduces a model that deals with problems characterized by this uniqueness. Given the complexity of the electrical network, along with the action of other elements of the electrical systems, algorithms such as the network simplex algorithm cannot generate appropriate solutions to the system. Due to the complexity of these systems, our proposal is a link between complex electrical systems and their deterministic and stochastic responses.

The saving of computational effort is achieved because the mathematical model presented in this paper combines the implementation of several techniques that were not considered before as an integrated approach. Consequently, the new proposal offers the use of techniques that were previously developed, but they did not consider the totality of aspects that compose an electric system. For instance, some methods improve the computational effort needed to solve the scheduling of a system but, these methods do not consider the existence of all generating technologies (that we are considering in this paper). This paper is composed of detailed mathematical representations that require several methods to improve the CPU times. Besides, these methods must be suited to be applied in the type of problems. The key of this work is not only a collection of approaches but also includes the necessary modifications to be integrated with The RDEVS Essential ‘Transmission Line’ Model.

As it will be observed in the discussion of results (Section 3), the benefits of implementing a MILP model mean a reduction of computational effort. This topic is deeply discussed in (Feng et al., 2019), for thermal and hydro generation. The authors determine that even though a great number of variables and constraints, MILP models achieve satisfactory solutions with reasonable CPU times. Other benefits of MILP approaches in the field of electric power systems are deeply discussed in (Koltsaklis et al., 2018). The performance of the proposed method is tested by considering potential interconnection choices among different systems. Besides, the benefits of solving large-scale problems (in terms of computational effort saving) by considering linearization or reduction techniques are detailed in several papers (Alvarez, 2020b; Lima & Grossmann, 2011). These papers are not included in the present approach to not overextend the proposal. Besides, the core of this work is not to present advances in the linearization of reduction techniques.

2.5. Case study

Figure 5 shows the one-line diagram that represents the case study. This diagram depicts a system defined as a set of 6 buses, 11 transmission lines, 3 generators, and 3 loads. A detailed description of such a system can be found at (Grey & Sekar, 2008).

Figure 5 6 buses and 11 lines one-line diagram. 

To compare the impact of the use of the simulation model on the optimization model, Section 3.1 presents the results obtained when solving the optimization problem without considering the state of the lines. Then, it shows the results achieved when the hybrid approach is applied. In both cases, the simulation time and the programming horizon are set in one day (1440 minutes for the simulation model and 24 hours for the optimization model). In the case of the optimization model, as previously stated, the solver used by GAMS is CPLEX, and the relative gap is 0.0004 %.

It is important to denote that data of the test system has been extensively studied and proved in the literature. However, these papers do not consider failures in transmission lines. In this regard, as stated before, the utilization of the Weibull distribution has been indicated by many authors as the correct tool to study the random (Wang et al., 2016; Vásquez et al., 2009). For the scenario where failures should be considered, we propose a specific configuration.

3. Results and discussion

3.1. Electric System without/with transmission line outages

In the first scenario (electric system without transmission line outages), the system described in Section 2.5 is analyzed considering that transmission lines are always available. Following the test case, the optimization model described in Section 2.4 is composed of 2,396 equations, 961 continuous variables, and 336 binary variables. The processing time is 9 seconds, and the total cost is $ 77,423.

Regarding the generation system, the results show that the generator that produces the highest amount of electricity is G1. This generator is operative during the 24 hours, and it generates a total of 5234 MWh. Other generators (i.e., G2 and G3) compensate for the required demand by producing electricity at specific time intervals. Furthermore, the G2 generator is active between 10-17 and 20-23 hours (generating a total of 280 MWh). Besides, the G3 generator produces electricity between 18 and 20 hours with a total generation of 113 MWh. As a result of such a generation process, the lines transmit an electricity flow.

Figure 6 (a) shows the result obtained for these flows. In this case, although all lines are available, there are intervals where some of them do not transmit any electricity. This is because the model optimally changes the flow amount when it reduces the operating costs. For example, the lines directly connected to G1 (which produces the highest amount of electricity) are the ones that have the highest averages of transmitted flow (L2 with 92.5 MW, L1 with 70.4 MW, and L3 with 55.1 MW). These results show that the model minimizes the generation costs by choosing "freely" the most convenient form of transmission over the complete set of lines. For this reason, it is observed that the model always tries to maximize the transported flow through lines connected to the generators with lower production costs.

Figure 6 (a) Flow per transmission line in scenario A. (b) Flow per transmission line in scenario B. 

In the second scenario (electric system with transmission line outages), the system detailed in Section 2.5 is studied considering that transmission lines are not available all the time. Hence, the availability of lines is modified by the experience of preventive and unscheduled maintenance events. Then, the parameters of the simulation model are set as follows:

  • I):The preventive maintenance set in the Maintenance Schedule.csv file states that line L4 will be out of service for 390 minutes (i.e., 6.5 hours). The maintenance will take place 1.5 hours after starting its operation. In the same way, line L6 will be out of service for 6 hours starting from hour 5.

  • II).Unscheduled failures (i.e., unscheduled maintenances) are generated using random values. As stated in Section 2.2.1, such values are obtained using the Weibull probabilistic distribution. Here, the parameters used in the configuration were k = 1 (shape parameter) and λ = 5 (scale parameter).

Following this scenario, several simulations were executed. This allows making a deeper analysis of different cases in the optimization model. The number of equations and variables studied in the optimization model remains the same as in the previous situation.

Results indicate that, as more lines are inactive (either by scheduled maintenances or failures), the total cost of production increases. We can observe such an increase is given due to maintenance. Maintenances force generators to produce electricity in a less optimal mode. When there are only scheduled preventive maintenances, the cost increases by 1.2%. However, when unscheduled maintenance is also considered, the cost increases significantly (according to the type and number of lines that are out of service). Costs Vincrease even more when the lines that are out of service are the ones that transmit the generation of cheaper units. This is the case of lines L1, L2, and L3. Such lines transmit electricity generated by G1 (which produces most of the daily generation, as we have described in the first scenario).

In cases where one of these lines becomes inactive due to a failure, the optimization problem cannot be solved. This means that some users cannot be provided. Specifically, this happened when L1, L2, and L3 are out of service simultaneously. Here, the remaining units cannot provide the electricity required to satisfy the scheduled demand. Figure 6 (b) shows the power flows per line for the case where, in addition to scheduled maintenances of L4 and L6, the system has one unscheduled maintenance due to a failure in line L10 between 360 to 599 minutes. In this scenario, besides the periods where lines L4, L6, and L10 do not transmit due to maintenance actions, other periods without transmission are recorded.

In simple examples, this contribution may not seem to have much impact. However, when models that represent large scale systems are solved, this unnecessary calculation causes high processing times that could be avoided. The calculation of power flow through lines implies the determination of angular voltage differences between connected buses if the DC model is used. An example can be observed in Figure 7 (a) where a simulation of 1,440 minutes of the system is performed. It is interesting to mention that the line L11 is still in service all the time, despite the outage of one of its predecessors (L4, L8), because the other predecessors (L6, L3) are still working. In the simulated case, in addition to the scheduled maintenance, an outage of the L9 line is observed, due to a factor external to the scheduled maintenance.

Figure 7 (a) Simulation of 11 lines system for 1,440 minutes. (b) Simulation of 11 lines system for 525,600 minutes. 

In this case, as the line has no successors in the cascade, it does not affect the rest of the lines. More cases have been calculated to study the effectiveness of the proposed approach.

On the other hand, for other simulation case (a simulation for 525,600 minutes, in Figure 7 (b), the line L6 suffers an outage due to an unexpected event, according to the Weibull distribution. It is important to mention that this simulation does not consider scheduled maintenance. This will affect the lines that are in cascade with L6 (L11), although it does not take it out of service because the line receives other feeds that allow it to continue operating. However, disconnected buses must be excluded from the calculation of transmitted power flows.

3.2. Reproducibility in other cases

By studying the results of the test cases proposed in both scenarios, along with the results obtained for other cases available in the literature, the reproducibility of the proposed approach can be studied in detail. Data used in test cases can be found in (Alvarez, 2020c; Badakhshan et al., 2015; Fu et al., 2005; Guo, 2012; Lotfjou et al., 2010; Norouzi et al., 2014). The results show the convenience of the proposed models.

For this paper, the models and results obtained in these case studies are detailed to focus the reader's attention on the proposed hybrid approach rather than on the multiple resolutions of the cases.

4. Conclusions

In this paper, a hybrid approach to studying electricity generation and transmission systems has been presented. The simulation model analyzes the state of lines considering the system as a network topology. Then, the model introduces an independent system operator, outage generator, and maintenance team to represent the behavior. The RDEVS simulation formalism improves their description while maintaining the same input/output interfaces, which favors the incremental development of the proposal. In the future, we propose improving the behavior definition to define complex states for lines as part of a full decision process.

For this paper, the mathematical model solves the programming of the electrical system addressing the unavailability of lines. In this way, the model schedules the generation system by obtaining the best solution (global optimum) considering lines out of service. If it is possible, the model redistributes loads (depending on which lines are inactive). The results have shown that the model can solve the new problem in less than 10 seconds. The preloading of the processed file that details the state of lines by hour avoids redundant processes when solving the optimization problem (such as the evaluation of lines whose predecessors are out of service). This particularity produces savings in computational effort.

In addition to the improvement of the simulation models, the essential model that describes lines behavior can also be adapted to new situations (for example, the control of flows and voltages that transport the lines). Such adaptations are part of future works.

Concerning the hybrid approach proposed, the combination of models has given good results in different situations. In this way, the proposed models were validated as an overall approach. As future work, we plan to extend their application for studying larger electricity systems (e.g., the Argentinean electricity system). This system has more than 600 generators and thousands of lines. For this scenario, the analysis of the simulation model on the transmission downstream lines that are inactive will be particularly useful.

References

Abirami, M., Ganesan, S., Subramanian, S., & Anandhakumar, R. (2014). Source and transmission line maintenance outage scheduling in a power system using teaching learning based optimization algorithm. Applied Soft Computing, 21, 72-83. https://doi.org/10.1016/j.asoc.2014.03.015 [ Links ]

Ahmad, I., Khan, F., Khan, S., Khan, A., Tareen, A. W., & Saeed, M. (2018). Blackout avoidance through intelligent load shedding in modern electrical power utility network. Journal of Applied and Emerging Sciences, 8(1), pp48-57.http://dx.doi.org/10.36785/jaes.81242 [ Links ]

Albataineh, M., & Jarrah, M. (2019). DEVS-Based IoT Management System for Modeling and Exploring Smart Home Devices. In 2019 Sixth International Conference on Internet of Things: Systems, Management and Security (IOTSMS) (pp. 73-78). IEEE. https://doi.org/10.1109/IOTSMS48152.2019.8939215 [ Links ]

Alvarez, G. E. (2020a). Optimization analysis for hydro pumped storage and natural gas accumulation technologies in the Argentine Energy System. Journal of Energy Storage, 31, 101646. https://doi.org/10.1016/j.est.2020.101646 [ Links ]

Alvarez, G. E. (2020b). Operation of pumped storage hydropower plants through optimization for power systems. Energy, 202, 117797. https://doi.org/10.1016/j.energy.2020.117797 [ Links ]

Alvarez, G. E. (2020c). Integrated scheduling from a diversity of sources applied to the Argentine electric power and natural gas systems. Computers & Chemical Engineering, 134, 106691. https://doi.org/10.1016/j.compchemeng.2019.106691 [ Links ]

Alvarez, G., & Blas, M. J. (2020). Enhancing of the operational decisions in electric power systems under blackouts. In 2020 International Conference on Decision Aid Sciences and Application (DASA) (pp. 646-651). IEEE. https://doi.org/10.1109/DASA51403.2020.9317285 [ Links ]

Alvarez, G. E., & Sarli, J. L. (2019). Optimization of electricity distribution in latin america by using embedded systems. IEEE Latin America Transactions, 18(02), 351-359. https://doi.org/10.1109/TLA.2020.9085290 [ Links ]

Ardila, L. M. C., & Cardona, C. J. F. (2017). Structure and current state of the wholesale electricity markets. IEEE Latin America Transactions, 15(4), 669-674. https://doi.org/10.1109/TLA.2017.7896393 [ Links ]

Arizona Center of Integrative Modeling and Simulation, 2005. DEVSJAVA [WWW Document]. (accessed 6.17.20) URL 20) URL https://acims.asu.edu/software/devsjava/Links ]

Badakhshan, S., Kazemi, M., & Ehsan, M. (2015). Security constrained unit commitment with flexibility in natural gas transmission delivery. Journal of Natural Gas Science and Engineering, 27, 632-640. https://doi.org/10.1016/j.jngse.2015.09.011 [ Links ]

Beccaria, E., Bogado, V., & Palombarini, J. A. (2018). A devs-based simulation model for biogas generation for electrical energy production. In 2018 IEEE Biennial Congress of Argentina (ARGENCON) (pp. 1-8). IEEE. https://doi.org/10.1109/ARGENCON.2018.8646081 [ Links ]

Blas, M. J., Gonnet, S., & Leone, H. (2017, December). Routing structure over discrete event system specification: a DEVS adaptation to develop smart routing in simulation models. In 2017 Winter simulation conference (WSC) (pp. 774-785). IEEE. https://doi.org/10.1109/WSC.2017.8247831 [ Links ]

CAMMESA, 2014. Los procedimientos - Anexo 16: Reglamentaciones del Sistema de Transporte. [ Links ]

Carrión, M., & Arroyo, J. M. (2006). A computationally efficient mixed-integer linear formulation for the thermal unit commitment problem. IEEE Transactions on power systems, 21(3), 1371-1378. https://doi.org/10.1109/TPWRS.2006.876672 [ Links ]

Feng, Z. K., Niu, W. J., Wang, W. C., Zhou, J. Z., & Cheng, C. T. (2019). A mixed integer linear programming model for unit commitment of thermal plants with peak shaving operation aspect in regional power grid lack of flexible hydropower energy. Energy, 175, 618-629. https://doi.org/10.1016/j.energy.2019.03.117 [ Links ]

Frangioni, A., Gentile, C., & Lacalandra, F. (2008). Tighter approximated MILP formulations for unit commitment problems. IEEE Transactions on Power Systems, 24(1), 105-113 https://doi.org/10.1109/TPWRS.2008.2004744 [ Links ]

Fu, Y., Shahidehpour, M., & Li, Z. (2007). Security-constrained optimal coordination of generation and transmission maintenance outage scheduling. IEEE Transactions on Power Systems, 22(3), 1302-1313. https://doi.org/10.1109/TPWRS.2007.901673 [ Links ]

Fu, Y., Shahidehpour, M., & Li, Z. (2005). Security-constrained unit commitment with AC constraints. IEEE transactions on power systems, 20(2), 1001-1013. https://doi.org/10.1109/TPWRS.2005.854375 [ Links ]

Grey, A., & Sekar, A. (2008). Unified solution of security-constrained unit commitment problem using a linear programming methodology. IET generation, transmission & distribution, 2(6), 856-867. https://doi.org/10.1049/iet-gtd:20070367 [ Links ]

Guerra, O. J., Sergi, B., Craig, M., Pambour, K. A., Brancucci, C., & Hodge, B. M. (2021). Coordinated operation of electricity and natural gas systems from day-ahead to real-time markets. Journal of Cleaner Production, 281, 124759. https://doi.org/10.1016/j.jclepro.2020.124759 [ Links ]

Guo, S. (2012). A quick method for judging the feasibility of security-constrained unit commitment problems within Lagrangian relaxation framework. Energy and Power Engineering. 4(6). 432-438 https://doi.org/10.4236/epe.2012.46057 [ Links ]

International Energy Agency. (2017). Key World Energy Statistics, 2017. https://doi.org/10.1787/key_energ_stat-2017-en [ Links ]

Jarrah, M. (2016). Modeling and simulation of renewable energy sources in smart grid using DEVS formalism. Procedia Computer Science, 83, 642-647. https://doi.org/10.1016/j.procs.2016.04.144 [ Links ]

Khodaei, A., & Shahidehpour, M. (2012). Security-constrained transmission switching with voltage constraints. International Journal of Electrical Power & Energy Systems, 35(1), 74-82. https://doi.org/10.1016/j.ijepes.2011.09.014 [ Links ]

Koltsaklis, N. E., Gioulekas, I., & Georgiadis, M.C. (2018). Reprint of Optimal scheduling of interconnected power systems. Computers & Chemical Engineering, 116, 212-230. https://doi.org/10.1016/j.compchemeng.2018.10.012 [ Links ]

Lima, R. M., & Grossmann, I. E. (2011). Computational advances in solving mixed integer linear programming problems. Chemical Engineering Greetings to prof. Sauro Pierucci Occas. his 65th Birthd. 151-160. [ Links ]

Lotfjou, A., Shahidehpour, M., Fu, Y., & Li, Z. (2010). Security-constrained unit commitment with AC/DC transmission systems. IEEE Transactions on power systems, 25(1), 531-542. https://doi.org/10.1109/TPWRS.2009.2036486 [ Links ]

Maatoug, A., Belalem, G., & Mostefaoui, K. (2014). Modeling and simulation of energy management system for smart city with the formalism DEVS: Towards reducing the energy consumption. International Journal of Computer Applications, 90(18), 38-43. https://doi.org/10.5120/15824-4710 [ Links ]

Overbye, T. J., Cheng, X., & Sun, Y. (2004). A comparison of the AC and DC power flow models for LMP calculations. In 37th Annual Hawaii International Conference on System Sciences, 2004. Proceedings of the (pp. 9-pp). IEEE. https://doi.org/10.1109/HICSS.2004.1265164 [ Links ]

Norouzi, M. R., Ahmadi, A., Nezhad, A. E., & Ghaedi, A. (2014). Mixed integer programming of multi-objective security-constrained hydro/thermal unit commitment. Renewable and Sustainable Energy Reviews, 29, 911-923. https://doi.org/10.1016/j.rser.2013.09.020 [ Links ]

Toba, A. L., Seck, M., Amissah, M., & Bouazzaoui, S. (2017). An approach for DEVS based modeling of electrical power systems. In 2017 Winter Simulation Conference (WSC) (pp. 977-988). IEEE. https://doi.org/10.1109/WSC.2017.8247848 [ Links ]

Toba, A. L., & Seck, M. (2019). Spark!: an integrated resource planning and dispatch tool for power grid modelling. International Journal of System of Systems Engineering, 9(1), 44-61. https://doi.org/10.1504/IJSSE.2019.097904 [ Links ]

U.S. Energy Information Administration. (2022). Cost and Performance Characteristics of New Generating Technologies, Annual Energy Outlook 2022. [ Links ]

Vásquez, C., Osal, C., Briceño, W., & Blanco, C. (2009). Importance index failure probability and reability of the component of distribution aerial line. Publicaciones En Ciencias Y Tecnol., 3(1), 5-13. [ Links ]

Wainer, G. A., & Mosterman, P. J. (Eds.). (2011). Discrete-Event Modeling and Simulation: Theory and Applications (1st ed.). CRC Press. https://doi.org/10.1201/9781315218731 [ Links ]

Wang, J., Xiong, X., Zhou, N., Li, Z., & Weng, S. (2016). Time‐varying failure rate simulation model of transmission lines and its application in power system risk assessment considering seasonal alternating meteorological disasters. IET Generation, Transmission & Distribution, 10(7), 1582-1588. https://doi.org/10.1049/iet-gtd.2015.0745 [ Links ]

Xie, Y., Li, D., Xu, Y., Wu, Q., & Yin, M. (2021). A MILP-based restoration planning method for generator start-up considering flexible re-energizing times of transmission lines. International Journal of Electrical Power & Energy Systems, 124, 106357. https://doi.org/10.1016/j.ijepes.2020.106357 [ Links ]

You, S., Hadley, S. W., Shankar, M., & Liu, Y. (2016). Co-optimizing generation and transmission expansion with wind power in large-scale power grids-Implementation in the US Eastern Interconnection. Electric Power Systems Research, 133, 209-218. https://doi.org/10.1016/j.epsr.2015.12.023 [ Links ]

Zeigler, B. P., Muzy, A., & Kofman, E. (2018). Theory of modeling and simulation: discrete event & iterative system computational foundations. Academic press. https://doi.org/10.1016/C2016-0-03987-6 [ Links ]

Funding

This work was supported by the Universidad Tecnológica Nacional - Argentina [grant numbers EIUTIFE0003803TC, SIUTIFE0005273TC]; and the National Scientific and Technical Research Council - Argentina [grant numbers PIP 112‐20170101131CO].

Peer Review under the responsibility of Universidad Nacional Autónoma de México.

Appendix

Appendix A The Routed Devs Formalism (RDEVS)

The Routed Discrete Event System Specification (RDEVS) formalism is a subclass of the Discrete Event System Specification formalism (DEVS) that provides a design structure to describe routing processes in discrete event simulation models. It was introduced in (Blas et al., 2017) as an extension of DEVS formalism that manages events with identification during the simulation execution. It was updated in (Blas et al., 2021).

Each simulation model uses an identifier that defines its participation as a routing process entity. Hence, each routing entity (i.e., simulation model) will accept input events if, and only if: i) the sender identifier is included in the set of available sources, and ii) its identifier is included in the set of feasible destinations. Therefore, an event with identification in RDEVS contains its sender identifier and all feasible destinations. At the entity level, the models include their identifier, the set of identifiers for available sources, and the set of identifiers for destinations. So, RDEVS models can decide whether to process some input event but, also, they can decide which models should be set as a destination for their output events.

The core of RDEVS is the specification of three types of models: essential model (routing entity behavior), routing model (routing entity structure), and network model (routing process). Following the DEVS formalism definition, the formal specification of RDEVS models is detailed in set-theoretic notation.

The essential model specifies the behavior of routing entities using the DEVS atomic model definition. Formally, it is defined by the structure

M=<X, S, Y,δint,δext,λ,τ>

Where

  • X ≡ set of input events,

  • S ≡ set of sequential states,

  • Y ≡ set of output events,

  • δint: S → S ≡ internal transition function,

  • δext: Q x X → S ≡ external transition function where

    • Q = { (s,e) | s Є S, 0 ≤ e ≤ τ(s) } ≡ total state set,

    • e ≡ time elapsed since last transition,

  • λ: S → Y ∪ ø ≡ output function,

  • τ: S → Ro,∞ + ≡ time advance function

Several entities can share the same behavior. The routing model defines the basic simulation model where the routing process takes place (that is, a routing entity structure). It uses an essential model as an operational description of its behavior. Hence, the structure of an essential model is embedded in the routing model definition. It also includes the routing information required to i) accept or deny input events, and ii) route output events. Therefore, the routing model can be seen as the structure that defines a routing entity linking its behavior with the routing policy.

Formally, the routing model is defined by the structure

R=<ω,E,M>

Where

  • ω = ( u, W, δr ) ≡ routing policy, where

  • u Є N0 ≡ simulation model identifier,

  • W = { w1, w2,…, wp | w1, w2,…, wp Є N0 } ≡ set of identifiers that represent available sources,

  • δr: SM → T ≡ routing function used to direct output events, where

    • SM is the state of M, and T = { t1, t2,…, tk | t1, t2,…, tk Є N0 } ≡ set of identifiers that represent feasible destinations,

  • E = < XE, SE, YE, δint,E, δext,E, λE, τE > ≡ essential model embedded in R,

  • M = <XM, SM, YM, δint,M, δext,M, λM, τM> ≡ DEVS atomic model that describes the final behavior of the routing entity, where

    • XM = { ( x, h, T ) | x Є XE, h Є N0, T = { t1, t2,…, tk | t1, t2,…, tk Є N0 } } ≡ set of input events (events with identification), with

      • x ≡ input event defined in E,

      • h ≡ sender model identifier,

      • T ≡ set of target model identifiers,

  • SM = SE ≡ set of sequential states,

  • YM = { ( y, h, T ) | y Є YE, h Є N0, T = { t1, t2,…, tk | t1, t2,…, tk Є N0 } } ≡ set of output events (events with identification), with

    • y ≡ output event generated by E,

    • h = u ≡ sender model identifier,

    • T ≡ target model identifiers,

  • δint,M: SM → SM = δint,E ≡ internal transition function,

  • δext,M: QM x XM → SM ≡ external transition function that only accepts events that satisfy one of the following statements:

    • i) The event has been sent to R from some allowed model,

    • ii) The event comes from an external source, or

    • iii) The event must be accepted by all the models that receive it (no matter the model identifier).

Hence, the external transition function is designed as an if-else function to “accept” only the input events that must be processed in the model.

  • λM: SM → YM ∪ ø ≡ output function that produces events with identification combining the output function of E with routing data (sender identifier and feasible destinations). Then, the formal function is defined as λM (s) = (λE(s), u, δr (s)),

  • τM: SM → Ro,∞ + ≡ time advance function.

Finally, the network model describes the overall routing process as a composition of routing entities. So, the network model definition includes a set of routing models and, indirectly, the couplings (i.e. interactions) among them. These couplings are detailed as all-to-all connections to leave the routing task to the routing policies detailed in the entities. The model definition also includes two translation functions (used to connect multiple networks). These functions allow matching events (from other models) with the events with identification employed inside the routing process. Then, the network model is designed to allow interactions with other network models or, simply, with DEVS models.

Formally, the network model is defined by the structure

N=<X,Y,D,Rd,Id,Zid,Tin,Tout, Select>

where

  • X ≡ set of input events,

  • Y ≡ set of output events,

  • D ≡ set of identifiers that represent the routing entities (references to routing models), where d Є N0, ∀d Є D,

For each d Є D, Rd is a routing model defined as Rd = < ωd, Ed, Md > with identifier ud = d.

For each d Є D ∪ {N}, Id is the set of influences over d, defined as Id = { i / i Є D ˄ i ≠ d } ∪ { N } with aims to keep the all-to-all couplings.

For each i Є Id, Zi,d is a translate function between events of i and d, where

  • Zi,d = Tin      if i = N,

  • Zi,d = Tout      if d = N,

  • Zi,d: YM,i → XM,d      if i ≠ N ˄ d ≠ N,

Tin: X → { ( x, h, T ) | x Є X, h Є N0, T = { t1, t2,…, tk | t1, t2,…, tk Є N0 } } ≡ input translation function, where

  • x ≡ input event defined in N,

  • h = 0 ≡ sender identifier (zero indicates external source),

  • T ≡ set of feasible destinations.

Then, external input events that arrive to the model are translated according to Tin with aims to get an event with identification.

Tout: { ( y, h, T ) | y Є Y, h Є N0, T = { ( t1, t2,…, tk ) | t1, t2,…, tk Є N0 } } → Y ≡ output translation function, where

  • y ≡ output event allowed in N,

  • h ≡ sender identifier,

  • T = ø ≡ set of feasible destinations (empty set indicates external destination).

Then, Tout traduces events with identification into regular events (deleting the routing data that surrounds the event) prior leave the model.

Select: 2D → D ≡ function for tie-breaking between simultaneous internal transitions.

Appendix B

The Model of The Transmission Line (RDEVS Essential Model)

The formal definition of the essential model is the following:

TL=<X, S, Y, δint, δext, λ,τ>

where

  • X = { maintenance, active, inactive, outage, restoration }, where

    • maintenance = (duration) with duration Є Ro,∞ +,

    • { active, inactive, outage, restoration } Є No,

  • S = { phase, sigma, upstreamTL, inactiveUpstreamTL, time } where

    • phase Є { active, maintenance, inactive, outage, sending inactive, sending active, sending inactive due outage, sending outage },

    • sigma, time Є Ro,∞ +,

    • {upstreamTL, inactiveUpstreamTL } Є No,

  • Y = { active, inactive, outage }, where

    • { active, inactive, outage } Є No,

δintsδintsending inactive,sigma,upstreamTL,inactiveUpstreamTL,time = (inactive, , upstreamTL,inactiveUpstreamTL,time+sigma)δintsending active,sigma,upstreamTL,inactiveUpstreamTL,time = (active, , upstreamTL,inactiveUpstreamTL,time+sigma)δintsending inactive due maintenance,sigma,upstreamTL,inactiveUpstreamTL,time =(maintenance, duration, upstreamTL,inactiveUpstreamTL,time+sigma)δintmaintenance,sigma,upstreamTL,U,time =(inactive, , U,U,time+sigma)δintmaintenance,sigma,upstreamTL,inactiveUpstreamTL,time =(sending active, 0, upstreamTL,inactiveUptreamTL,time+sigma)δintsending inactive due outage,sigma,upstreamTL,inactiveUpstreamTL,time = (sending outage, 0, upstreamTL,inactiveUpstreamTL,time+sigma)δintsending outage,sigma,upstreamTL,inactiveUpstreamTL,time = (outage, , upstreamTL,inactiveUpstreamTL,time+sigma)
Δexts,x,eδext(active,sigma,upstreamTL,inactiveUpstreamTL,time),maintenance,e = (sending inactive due maintenance,0,upstreamTL,inactiveUpstreamTL,time+e)δext(active,sigma,upstreamTL,inactiveUpstreamTL,time),active,e = (active,,upstreamTL,inactiveUpstreamTL-1,time+e)δext(inactive,sigma,upstreamTL,inactiveUpstreamTL,time),active,e = (sending active,0,upstreamTL,inactiveUpstreamTL-1,time+e)δext(active,sigma,upstreamTL,inactiveUpstreamTL,time),inactive,e =(active,,upstreamTL,inactiveUpstreamTL+1,time+e)δext(active,sigma,U,U-1,time),inactive,e =(sending inactive,0,upstreamTL,U,time+e)δext(phase,sigma,upstreamTL,inactiveUpstreamTL,time),outage,e =(sending inactive due outage,0,upstreamTL,inactiveUpstreamTL,time+e)δext(outage,sigma,upstreamTL,inactiveUpstreamTL,time),restoration,e =(sending active,0,upstreamTL,inactiveUpstreamTL,time+e)δext(outage,sigma,U,U,time),restoration,e =(inactive,,U,U,time+e)

λsλsending inactive,sigma,upstreamTL,inactiveUpstreamTL,time = inactiveλsending active,sigma,upstreamTL,inactiveUpstreamTL,time = activeλsending inactive due maintenance,sigma,upstreamTL,inactiveUpstreamTL,time = inactiveλsending inactive due outage,sigma,upstreamTL,inactiveUpstreamTL,time = inactiveλsending outage,sigma,upstreamTL,inactiveUpstreamTL,time = outage

τ(s) = sigma, where s Є S.

Received: January 21, 2021; Accepted: January 27, 2022; Published: February 28, 2023

Corresponding author. E-mail address: mariajuliablas@santafe-conicet.gov.ar (M. Blas).

Conflict of interest

The authors declare no conflict of interest.

Creative Commons License This is an open-access article distributed under the terms of the Creative Commons Attribution License