An Event-Based Resource Management Framework for Distributed Decision-Making in Decentralized Virtual Power Plants

The Smart Grid incorporates advanced information and communication technologies (ICTs) in power systems, and is characterized by high penetration of distributed energy resources (DERs). Whether it is the nation-wide power grid or a single residential building, the energy management involves different types of resources that often depend on and influence each other. The concept of virtual power plant (VPP) has been proposed to represent the aggregation of energy resources in the electricity market, and distributed decision-making (DDM) plays a vital role in VPP due to its complex nature. This paper proposes a framework for managing different resource types of relevance to energy management for decentralized VPP. The framework views VPP as a hierarchical structure and abstracts energy consumption/generation as contractual resources, i.e., contractual offerings to curtail load/supply energy, from third party VPP participants for DDM. The proposed resource models, event-based approach to decision making, multi-agent system and ontology implementation of the framework are presented in detail. The effectiveness of the proposed framework is then demonstrated through an application to a simulated campus VPP with real building energy data.


Introduction
The Smart Grid refers to the next-generation electrical power grid, which aims to achieve smarter energy usage and integration of distributed energy resources (DERs) by harnessing advanced Information and Communication Technologies (ICTs) to provide an intelligent bi-directional network for both electricity and information delivery.In the Smart Grid, a large number of different devices, such as intelligent electronic devices (IEDs), sensors, actuators, and energy sources distributed throughout the electricity system will be interconnected and communicating over an information network for metering, monitoring, control and protection.Hence, Smart Grid can be considered as a large-scale, heterogeneous and distributed cyber physical system (CPS) [1].
In the literature, Smart Grid is also sometimes referred to as the Internet of Energy, and it enables electricity consumers to become active players in the power system by feeding customer-side generated energy back into the main grid or participating in demand response programs.However, the high penetration of customer-side DERs also leads to new problems such as voltage rising with increasing distance from substation and revenue optimization when offering excess DER energy in the energy market [2].
The virtual power plant (VPP) is a concept for aggregating DERs and controllable loads, and presenting them to the main grid as a single energy trader [3].The VPP can be centralized or Energies 2016, 9, 595 2 of 19 decentralized, depending on whether the energy planning/scheduling is performed by a central controller, or in a distributed manner by "smart" energy resources.
Herein, the energy planning is referred to as consumption adjustment at some future time (e.g., a day ahead) based on forecast data, and energy scheduling as consumption adjustment in real time or very short notice.Compared to centralized VPP, the decentralized VPP has higher scalability and openness because the VPP operator does not directly control the energy consumption/generation or VPP membership, but only dispatches information such as price signals and requires minimal knowledge about the aggregated resources [4].The energy planning/scheduling in decentralized VPP could be posed as a distributed decision-making (DDM) problem [5].
The resource management problem in VPP involves different resources from different domains, e.g., power system domain and ICT domain, requiring complex provisioning and planning by collaborating between different resource management systems that are often owned by different customers.This demands a resource management approach that is more agile and flexible than existing ones, and which explicitly considers the interactions between systems in different domains.
This paper focuses on addressing the resource management issues in decentralized VPP and presents resource models, concepts of events and corresponding event processing, based on which an event-based resource management framework is proposed to support distributed decision making in the VPP.As will be further discussed in Section 4, an event in VPP refers to a state transition of, or an action task initiated by a resource.By event-based resource management framework, we refer to a conceptual structure designed to support resource management by providing views on how resources are interrelated and how operations on the resources can be orchestrated based on the transmission and processing of events.
By viewing VPP as a hierarchical structure and abstracting energy consumption/generation as contractual resources, i.e., contractual offerings to curtail load/supply energy, from third party VPP participants, the proposed framework offers flexibility and adaptability to cross-domain system designs, which in turn accelerates the development of energy management applications.
The rest of the paper is organized as follows: Section 2 examines the related standards and works in literature.Section 3 presents the proposed resource management framework and corresponding resource model.Section 4 describes the events and event processing of the proposed framework for distributed decision making.The ontology implementation and simulation analysis of the proposed framework are discussed in Sections 5 and 6, respectively.Finally, Section 7 concludes the paper with some suggestions for future work.

IEC 61850 and IEC 61968/61970
The International Electrotechnical Commission (IEC) Technical Committee 57 (TC57) [6] provides a reference architecture for electric power systems.The main data semantics and system models are standardized by the IEC 61850 and IEC 61970/61968 suites.Data semantics provided by IEC 61850 are closely related to the functionality of devices in the subsystems of the power grid operator, such as substations, wind power plants, hydro power plants, and DERs [6].
IEC 61970 was developed for exchanging information about the electrical grid and application programming interfaces (API) for energy management systems commonly used in control centers, while IEC 61968 further describes the details of the distribution system in IEC 61970 [7].Collectively, the IEC 61970/61968 standards constitute part of the IEC Common Information Model (CIM) for modeling the power system semantics [8].
The IEC modeling primarily focuses on the power grid operator's network, and does not encompass other information (e.g., building spatial information) necessary for modeling resources in buildings that can be also active Smart Grid participants.Furthermore, since CIM and IEC 61850 have been separately developed by different workgroups, any mismatches between the models may hinder interoperability between the devices, systems, and applications [9].

Resource Modeling in Cloud Computing and Internet of Things (IoT)
Information modeling is an essential process for resource management in Cloud Computing and the Internet of Things (IoT).The Semantic Sensor Network (SSN) Ontology [10] is one of the most widely used information modeling techniques for describing sensors and sensor observations in IoT.The SSN is derived from Descriptive Ontology for Linguistic and Cognitive Engineering (DOLCE) [11] and is based on Ontology Web Language (OWL).In SSN, events are classified into two types: action and process.However, such classification is too general to be usefully applicable to complex CPS such as Smart Grid.Furthermore, SSN lacks domain knowledge, e.g., power system and spatial information, and thus often requires to be used with other ontology modeling techniques.
In cloud computing, resources have also been modeled using application-specific domain knowledge.In [12], the authors proposed multi-dimensional resource modeling for the allocation scheme in cloud computing, in which application-specific knowledge such as processing, computation and communication requirements of the client is considered in order to meet the service level agreements (SLA).In [13], the authors incorporated a user model into their ICT resource framework for storage allocation, modeling their ICT resources based on application-specific domain knowledge of both user and hardware information.However, the above resource modeling focuses on ICT domain and lacks knowledge in other domains that are required by the Smart Grid.

Resource Modeling and Distributed Decision Making in Smart Grid
In recent years, resource information modeling has also attracted much attention from Smart Grid researchers.In [14], the authors proposed an ontology for microgrid management, which was said to address the interoperability between different energy management systems within the microgrid, and the need to model all aspects of energy for multiple management objectives such as reliability and balancing in microgrids.In [15], an ontology for modeling prosumer details down to appliance level was proposed with microgrid events classified into appliance, weather, storage and generator events.
Researchers have also applied the concept of agents and utilized Multi-Agent System (MAS) to implement distributed decision-making (DDM) for energy systems.In [16], the authors defined agents responsible for load, generation and storage management, and proposed an agent profit maximization model, which was applied to an electric vehicle management system based on IEEE 37-bus distribution grid.In [17] an architecture for provisioning of demand response services from aggregated small residential consumers was presented, along with its MAS implementation.A MAS-oriented model for VPP was proposed in [18], in which generation/consumption control was achieved by implementing roles and tasks for producers/consumers whose behaviors are defined by specific use cases.Energy demand forecast was also introduced by integrating artificial neural networks into each agent.However, real time scheduling was not investigated, and the relationships between resources from different domains were not discussed.
In summary, the existing Smart Grid resource modeling techniques have mainly focused on covering all useful information but they lack the capability for resource abstraction that is crucial to VPPs, which are aggregating third party energy resources.Furthermore, existing works such as [15,18] do not model the hierarchical structure of VPP and lack event processing logic that captures the cooperation between VPP components.For a VPP that aggregates multiple buildings, it is not always possible to obtain every detail at the customer site and exert direct control on their consumption/generation patterns.Therefore, resources in such VPPs should be managed with minimum intervention and effort required from VPP operator, while achieving revenue optimization objectives.Moreover, existing MAS approaches mostly focus on market bidding/offering strategies or appliance control, with few or none considering the interoperability between VPP components.

Resource Classification and Resource Management Framework
In the field of Smart Grids, there is not yet a clear definition of the term "resource management".It is sometimes even confusing to mention the term "resource" because it could refer to the energy offering in the market, equipment in the power system, or the hardware and software in the IT infrastructure.
For example, in IEC 61970 and 61968, two different classes co-exist to represent resources in the power grid: PowerSystemResource for equipment in the electric network, such as a generation unit, and Asset for all other devices owned by the power grid company, such as communication media [7,8].
On the other hand, in cloud computing and IoT, the term "resource" often refers to "a reusable entity that is employed to fulfil a job or request", e.g., processors to perform computation, or objects that can provide data [19] such as sensors.
This paper proposes a framework for resource management in VPPs, which has been described as event-based because it utilizes the concepts of events and corresponding event processing derived from the resource classification and modeling to be introduced below.In the proposed framework, resources relevant to energy-management are classified into three tiers as shown in Figure 1: ‚ Domain Specific Resources (DSRs): These resources refer to those from different domains that contribute to the monitoring and control of energy generation/consumption.For instance, the information resource from the weather domain helps to define the forecast criteria for renewable energy generation, which in turn could alter the demand of energy from the main grid.

‚
Producer/Consumer Resources (PCRs): These resources refer to actors of the local power system such as customer-side generation units and controllable loads.For resources that may both consume and produce energy, such as a charging/discharging plugged-in electric vehicle (EV), they can be referred to as "prosumer" resources in this tier.

‚
Offered Energy Resources (OERs): These resources refer to customer-side offerings to supply, store, offload, or modify the demand of energy.For example, if a building with on-site generation (prosumer resource) generates more energy than it consumes, it may present to the VPP an offering to sell its surplus energy in the electricity spot market [3].Such an offering is termed an offered energy resource (OER) in this tier.Furthermore, offerings from multiple PCRs, either co-located or geographically distributed but under the management of the same owner, can be aggregated and presented to the decentralized VPP as a single OER.We refer to an owner of PCR who participates in the VPP's intelligent energy planning/scheduling as an OER provider.The management of OERs is based on data aggregation, data analysis, and forecasting performed on PCRs.In this tier, the resource operations are typically market driven and DDM based.

Resource Classification and Resource Management Framework
In the field of Smart Grids, there is not yet a clear definition of the term "resource management".It is sometimes even confusing to mention the term "resource" because it could refer to the energy offering in the market, equipment in the power system, or the hardware and software in the IT infrastructure.
For example, in IEC 61970 and 61968, two different classes co-exist to represent resources in the power grid: PowerSystemResource for equipment in the electric network, such as a generation unit, and Asset for all other devices owned by the power grid company, such as communication media [7,8].
On the other hand, in cloud computing and IoT, the term "resource" often refers to "a reusable entity that is employed to fulfil a job or request", e.g., processors to perform computation, or objects that can provide data [19] such as sensors.
This paper proposes a framework for resource management in VPPs, which has been described as event-based because it utilizes the concepts of events and corresponding event processing derived from the resource classification and modeling to be introduced below.In the proposed framework, resources relevant to energy-management are classified into three tiers as shown in Figure 1:  Domain Specific Resources (DSRs): These resources refer to those from different domains that contribute to the monitoring and control of energy generation/consumption.For instance, the information resource from the weather domain helps to define the forecast criteria for renewable energy generation, which in turn could alter the demand of energy from the main grid. Producer/Consumer Resources (PCRs): These resources refer to actors of the local power system such as customer-side generation units and controllable loads.For resources that may both consume and produce energy, such as a charging/discharging plugged-in electric vehicle (EV), they can be referred to as "prosumer" resources in this tier.


Offered Energy Resources (OERs): These resources refer to customer-side offerings to supply, store, offload, or modify the demand of energy.For example, if a building with on-site generation (prosumer resource) generates more energy than it consumes, it may present to the VPP an offering to sell its surplus energy in the electricity spot market [3].Such an offering is termed an offered energy resource (OER) in this tier.Furthermore, offerings from multiple PCRs, either co-located or geographically distributed but under the management of the same owner, can be aggregated and presented to the decentralized VPP as a single OER.We refer to an owner of PCR who participates in the VPP's intelligent energy planning/scheduling as an OER provider.The management of OERs is based on data aggregation, data analysis, and forecasting performed on PCRs.In this tier, the resource operations are typically market driven and DDM based.

Primary Domains for Smart Grid
There exist different domains of resources in VPP.Herein we identify the primary ones: Therefore, in addition to sensory data, spatial-related information of the buildings or facilities is an important resource to achieving accurate energy analysis.

‚
Weather Domain: Similar to spatial information, weather information also contributes to the analysis not only of energy consumption of buildings or facilities, but also of energy generation of on-site DERs.Resources in this domain can be shared among weather-dependent PCRs within the same locality, such as by streaming data from a local weather station to all buildings within the area to facilitate their consumption planning.

Offered Energy Resources (OERs) Modeling and Problem Formulation
The resource management problem in decentralized VPP where time is divided into consecutive time units, and real-time or forecast price signal is broadcast to each PCR is investigated.For example, the electricity wholesale market regulation in New Zealand defines each trading period as half an hour, for which a real-time price signal is broadcast [20].
The OER in VPP can be a contracted load curtailment volume from a consumer resource, or energy supplied from storage discharging on request.All OER providers in a decentralized VPP should be able to determine the optimal operation strategy based on forecast prices.If no dynamics are introduced, the VPP will be in an equilibrium condition where all participants have no intention to modify their consumption/generation patterns.However, a VPP in the Smart Grid is expected to react to energy consumption/generation changes.Those changes could be either a demand response request by the main grid to the VPP to curtail its overall energy demand for peak shaving, or a surge in energy demand experienced by an OER provider due to charging by a large number of visiting EVs unexpectedly.The VPP can select and aggregate one or more OERs in response to various energy change events originating from either within VPP or from the main grid.The definitions to formulate the above problem are as follows: Definition 1: An energy state matrix (SM) is a matrix representing the energy state of a PCR or OER provider (with one or more PCRs).The matrix contains column-wise tuples of time slot index, volume of energy generated/consumed by PCR or energy exchanged between OER provider and VPP, and the corresponding revenue gain/loss over that time slot period.The revenue in SM is calculated based on electricity price and operational expenditure.
The following shows an example SM of a PCR (e.g., a building rooftop solar panel SP1) that contains hourly forecast values for a day (from time slot T to T + 23) where the values in first, second, and third row, represents the time in hourly slots, energy generated in kWh, and revenue in cents/kWh, respectively: The energy and revenue values of the above SM at time slot t = {T, T + 1,..,T + 23} can be represented by matrix elements SM SP1 (2, t), and SM SP1 (3, t), respectively.Similarly, for a SM of an OER provider, the energy exchanged between an OER provider i and VPP at time slot t, and the corresponding revenue, can be represented by SM i (2, t), and SM i (3, t), respectively.
Definition 2: An OER can be described by a parameter group composed of: (i) available time slot (TS); (ii) available energy volume (Q); (iii) economic cost (EcoC) incurred by revenue gain/loss; (iv) environmental cost (EnvC) incurred by environment deterioration during the resource's operation; and (v) social welfare cost (SwC) incurred by effects of resource's operation on power system social welfare.Therefore, a given OER r can be represented as an array <TS, Q, EcoC, EnvC, SwC> whose cost is given by a vector C vector : Let Q(r, t) denotes the energy volume provided by OER r, and P ˚ptq denotes the forecast prices for purchasing energy in future time slot t.The following presents the economic cost models for two different types of OERs:

Type 1 OER: Curtailable consumption and dispatchable generation
Curtailable consumption and dispatchable generation are offered from the OER provider to VPP as a modified amount of energy exchange from previous import planning (for consumption) or export planning (for generation) in a specified time slot only, i.e., there are no changes to the planning in other time slots.We group these two types of resources as type 1 OER.
Let the sign of the energy exchanged represents its flow direction: negative for importing energy while positive for exporting.For curtailable consumption, the OER provider reduces its energy consumption by an amount ∆Q (∆Q ą 0) in one or more time slots, potentially sacrificing utility (benefit) generated from energy consumption, e.g., occupant comfort, as a result.For dispatchable generation, the OER provider increases its energy production by an amount ∆Qp∆Q ą 0q, potentially with more operational expenditure, e.g., by using more fuels.Figure 2 illustrates an example of type 1 OER.In Figure 2a, an OER provider has previously planned a consumption of Q1, and it offers a type 1 OER of reducing the consumption by ∆Q to Q2.In (b), an OER provider has previously planned a generation of Q1, and it offers a type 1 OER of increasing the generation by ∆Q to Q2.
As shown in Figure 2, these two OERs are similar in that they do not introduce inter-time slot dependencies, i.e., changing the energy planning by an amount ∆Q in time slot t is only dependent on P ˚ptq and parameters of the aggregated PCR such as generation capacity.Thus, only column t of their respective SM will be modified accordingly.
When scheduling such an OER r, the OER provider gains revenue from consumption reduction or generation increase based on P ˚ptq, while losing revenue from sacrificial of utility or operational expenditure.Therefore, the economic cost for provisioning ∆Q in time slot t for type 1 OER can be given by: EcoC type1,r p∆Q, Qq " where λ type1,r is the cost function of a type 1 OER r to represent the utility sacrificed, or generation operational expenditure per energy unit.
expenditure.Therefore, the economic cost for provisioning ∆Q in time slot t for type 1 OER can be given by: where , is the cost function of a type 1 OER r to represent the utility sacrificed, or generation operational expenditure per energy unit.Type 2 OER: Shiftable consumption and storage charging/discharging: Shiftable consumption and storage charging/discharging are offered from the OER provider to VPP as a modified amount of energy exchange from previous import planning (for consumption and charging) and export planning (for discharging) in a specified time slot, with corresponding changes to the planning in one or more future time slots.These two types of resources are grouped as type 2 OER.
For shiftable consumption, the OER provider reduces (or increases) its energy consumption by an amount ∆Q in time slot t, but increases (or reduces) its energy demand by the same amount in one or more future time slots.By shifting consumption to a different time slot, it potentially sacrifices some utility (benefit) that could have been generated from consumption in the original time slot t.For example, a cloud data center providing computation services may defer some of its clients' computation tasks (and thus the energy consumption associated with performing those tasks) to some future time slots, which in turn could sacrifice the delivered quality of services to its clients since it would take more time to complete their tasks.For energy storage systems, the OER provider charges to store (or discharges to provide) ∆Q at time slot t, while discharges (or charges) by the same amount in one or more future time slots within a cycle time (typically a day).In addition to the electricity cost for charging, there are also costs associated with the operation and maintenance of the energy storage system, i.e., operational expenditure.Figure 3 illustrates an example of type 2 OER.In Figure 3a, an OER provider reduces its consumption in the first time slot by an amount ∆Q, of which an amount Q1 and remaining amount Q2 is added to its consumption in second time slot, and third time slot, respectively.In Figure 3b, an OER provider charges its storage during the first time slot by an amount ∆Q, of which an amount Q1 and remaining amount Q2 is discharged in second time slot, and third time slot, respectively.(a) Type 2 OER: Shiftable consumption and storage charging/discharging: Shiftable consumption and storage charging/discharging are offered from the OER provider to VPP as a modified amount of energy exchange from previous import planning (for consumption and charging) and export planning (for discharging) in a specified time slot, with corresponding changes to the planning in one or more future time slots.These two types of resources are grouped as type 2 OER.
For shiftable consumption, the OER provider reduces (or increases) its energy consumption by an amount ∆Q in time slot t, but increases (or reduces) its energy demand by the same amount in one or more future time slots.By shifting consumption to a different time slot, it potentially sacrifices some utility (benefit) that could have been generated from consumption in the original time slot t.For example, a cloud data center providing computation services may defer some of its clients' computation tasks (and thus the energy consumption associated with performing those tasks) to some future time slots, which in turn could sacrifice the delivered quality of services to its clients since it would take more time to complete their tasks.For energy storage systems, the OER provider charges to store (or discharges to provide) ∆Q at time slot t, while discharges (or charges) by the same amount in one or more future time slots within a cycle time (typically a day).In addition to the electricity cost for charging, there are also costs associated with the operation and maintenance of the energy storage system, i.e., operational expenditure.Figure 3 illustrates an example of type 2 OER.In Figure 3a, an OER provider reduces its consumption in the first time slot by an amount ∆Q, of which an amount Q1 and remaining amount Q2 is added to its consumption in second time slot, and third time slot, respectively.In Figure 3b, an OER provider charges its storage during the first time slot by an amount ∆Q, of which an amount Q1 and remaining amount Q2 is discharged in second time slot, and third time slot, respectively.
When scheduling a shiftable consumption OER r, the OER provider gains revenue from consumption reduction in time slot t based on P ˚ptq, while potentially loses revenue from sacrificed utility and increased consumption in one or more future time slots.In the case of the storage system, the OER provider gains (loses) revenue from discharging (charging) energy in time slot t based on P ˚ptq, but loses (gains) revenue from charging (discharging) energy in one or more future time slot.Denoting M and ∆Q j as the set of one or more future time slots, and the amount of energy shifted to or charged/discharged in some future time slot j P M, respectively, the economic cost for provisioning ∆Q in time slot t for type 2 OER can be given by: EcoC type2,r p∆Q, t, Mq " P ˚ptq ˆ∆Q ´ÿ jPM ∆Q j ˆ"P ˚pjq `λtype2,r pt, jq ‰ where λ type2,r is the cost function of a type 2 OER r to represent the utility sacrificed due to shifting consumption, or storage operational expenditure for charging/discharging per energy unit.
provider charges to store (or discharges to provide) ∆Q at time slot t, while discharges (or charges) by the same amount in one or more future time slots within a cycle time (typically a day).In addition to the electricity cost for charging, there are also costs associated with the operation and maintenance of the energy storage system, i.e., operational expenditure.Figure 3 illustrates an example of type 2 OER.In Figure 3a, an OER provider reduces its consumption in the first time slot by an amount ∆Q, of which an amount Q1 and remaining amount Q2 is added to its consumption in second time slot, and third time slot, respectively.In Figure 3b, an OER provider charges its storage during the first time slot by an amount ∆Q, of which an amount Q1 and remaining amount Q2 is discharged in second time slot, and third time slot, respectively.When scheduling a shiftable consumption OER r, the OER provider gains revenue from consumption reduction in time slot t based on * t , while potentially loses revenue from sacrificed utility and increased consumption in one or more future time slots.In the case of the storage system, the OER provider gains (loses) revenue from discharging (charging) energy in time slot t based on * t , but loses (gains) revenue from charging (discharging) energy in one or more future time slot.
Denoting M and ∆ as the set of one or more future time slots, and the amount of energy shifted to or charged/discharged in some future time slot ∈ , respectively, the economic cost for provisioning ∆Q in time slot t for type 2 OER can be given by: where , is the cost function of a type 2 OER r to represent the utility sacrificed due to shifting consumption, or storage operational expenditure for charging/discharging per energy unit.
Since each OER provider has the forecast prices, for type 2 OER, the case where a future time slot set is proposed by the OER provider such that the economic cost incurred for every other possible time slot set is greater than the one in , is investigated as follows: To evaluate the social welfare of the power system, the day's peak average ratio (PAR) of the OER provider as the social welfare cost metric is utilized.Let D represents the set of time slots for a day of operation.The social welfare cost (SwC) and the total cost Ctotal for OER r from some OER provider i can be given by Equations ( 5) and ( 6) respectively: where f( ) is the function agreed by VPP participants to evaluate the total cost of OER r using Since each OER provider has the forecast prices, for type 2 OER, the case where a future time slot set ρ is proposed by the OER provider such that the economic cost incurred for every other possible time slot set is greater than the one in ρ, is investigated as follows: To evaluate the social welfare of the power system, the day's peak average ratio (PAR) of the OER provider as the social welfare cost metric is utilized.Let D represents the set of time slots for a day of operation.The social welfare cost (SwC) and the total cost C total for OER r from some OER provider i can be given by Equations ( 5) and ( 6) respectively: SwC prq " PAR pr, iq " C total prq " f pC vector q " f rEcoC prq , EnvC prq , SwC prqs where f ( ) is the function agreed by VPP participants to evaluate the total cost of OER r using cost metrics in C vector .Furthermore, different resource scheduling algorithms that schedule resources according to VPP participants' cost/revenue, such as in [21,22] based on game-theoretic and genetic algorithmic approach, respectively, can be selected for application to the framework by substituting f ( ) with the cost/revenue objective function of the applied algorithm.
With the above OER model, the problem is formulated as follows: given a set of time slots t P D, available OERs r P R, their cost metrics and an energy amount G to be adjusted from previously

Events and Event Processing
The resource selection for decentralized VPP is investigated as a DDM problem.The MAS approach is applied to implement one agent for each OER or PCR.The agent structure is shown in Figure 4.The event classification and processing of the proposed framework, in which the event sending/receiving between VPP participants is implemented based on the Foundation for Intelligent Physical Agents (FIPA) communication [23], are presented.

Events and Event Processing
The resource selection for decentralized VPP is investigated as a DDM problem.The MAS approach is applied to implement one agent for each OER or PCR.The agent structure is shown in Figure 4.The event classification and processing of the proposed framework, in which the event sending/receiving between VPP participants is implemented based on the Foundation for Intelligent Physical Agents (FIPA) communication [23], are presented.

Event Classification
Based on the OER model, the event types are classified as follows:


Energy Events: An energy event en is triggered by a request for change in energy quantity over time.Typically, energy events are originated from an OER provider, and are sent/received between VPP participants in the energy resource tier of the proposed framework.An energy event can be described by a parameter group composed of: (i) request time slot (TS); (ii) change in energy volume (∆ ); (iii) originated OER (OriOER); and (iv) next processing OER (NextOER).Therefore, a given energy event can be represented by an array <TS, ∆ , OriOER, NextOER>. Domain Events: A domain event ed can refer to a state transition event of a DSR or a PCR actuation event initiated by a DSR.Unlike energy events that are abstracted for resource selection, domain events are mostly discrete and occur as DSR state changes, or action tasks initiated by DSRs for PCRs such as the activation of an air-conditioner.They are a form of internal events communicated only within a VPP participant.Natural processes such as changes in the ambient temperature and solar radiation are considered as state transition events in this paper.

Energy Event Routing
An event routing algorithm for solving the DDM problem formulated in Section 3.3 is proposed.One provider agent represents each OER, and the VPP aggregation can be considered as a hierarchical tree with a root OER representing the overall VPP energy offerings to the main grid as shown in Figure 4.In addition, the following definition is given: Definition 3: OERs and PCRs are siblings of each other if and only if they are directly aggregated by the same OER provider such as VPP operator or a customer owning several buildings.An OER is the parent (child) of another OER if it directly aggregates (is directly aggregated by) the other.

Event Classification
Based on the OER model, the event types are classified as follows:

‚
Energy Events: An energy event e n is triggered by a request for change in energy quantity over time.
Typically, energy events are originated from an OER provider, and are sent/received between VPP participants in the energy resource tier of the proposed framework.An energy event can be described by a parameter group composed of: (i) request time slot (TS); (ii) change in energy volume (∆Q); (iii) originated OER (OriOER); and (iv) next processing OER (NextOER).Therefore, a given energy event can be represented by an array <TS, ∆Q, OriOER, NextOER>.

‚ Domain Events:
A domain event e d can refer to a state transition event of a DSR or a PCR actuation event initiated by a DSR.Unlike energy events that are abstracted for resource selection, domain events are mostly discrete and occur as DSR state changes, or action tasks initiated by DSRs for PCRs such as the activation of an air-conditioner.They are a form of internal events communicated only within a VPP participant.Natural processes such as changes in the ambient temperature and solar radiation are considered as state transition events in this paper.

Energy Event Routing
An event routing algorithm for solving the DDM problem formulated in Section 3.3 is proposed.One provider agent represents each OER, and the VPP aggregation can be considered as a hierarchical tree with a root OER representing the overall VPP energy offerings to the main grid as shown in Figure 4.In addition, the following definition is given: Definition 3: OERs and PCRs are siblings of each other if and only if they are directly aggregated by the same OER provider such as VPP operator or a customer owning several buildings.An OER is the parent (child) of another OER if it directly aggregates (is directly aggregated by) the other.
Each OER provider agent and PCR agent advertise their SMs to their sibling resources in order to calculate the social welfare cost metric, i.e., PAR, of the OER.Moreover, each OER provider agent maintains an energy event routing table (EERT) that dictates which OER is to be selected for an energy event, i.e., based on the information on this provider's OER, the sibling OERs, and a child OER with lowest cost among all children, the OER with lowest total cost can be identified by Equation ( 6).An example of EERT is shown in Figure 5 for OER_Customer_2.Each OER provider agent and PCR agent advertise their SMs to their sibling resources in order to calculate the social welfare cost metric, i.e., PAR, of the OER.Moreover, each OER provider agent maintains an energy event routing table (EERT) that dictates which OER is to be selected for an energy event, i.e., based on the information on this provider's OER, the sibling OERs, and a child OER with lowest cost among all children, the OER with lowest total cost can be identified by Equation ( 6).An example of EERT is shown in Figure 5 for OER_Customer_2.The initialization algorithm for EERT (Algorithm 1) is shown in Figure 6.When an energy event is triggered, the OER provider agent that receives the event searches the EERT for the lowest cost OER.If the OER with lowest cost turns out to be its own OER, the provider agent performs the tasks required to provision the OER and propagates domain events to its PCR agents to control generation/consumption.If the lowest cost OER is one of its child OERs, the provider agent generates a new energy event with that child OER's available energy volume, sends the new event to that child and waits for its information update, informs sibling/parent OER on new cost if The initialization algorithm for EERT (Algorithm 1) is shown in Figure 6.When an energy event is triggered, the OER provider agent that receives the event searches the EERT for the lowest cost OER.Each OER provider agent and PCR agent advertise their SMs to their sibling resources in order to calculate the social welfare cost metric, i.e., PAR, of the OER.Moreover, each OER provider agent maintains an energy event routing table (EERT) that dictates which OER is to be selected for an energy event, i.e., based on the information on this provider's OER, the sibling OERs, and a child OER with lowest cost among all children, the OER with lowest total cost can be identified by Equation ( 6).An example of EERT is shown in Figure 5 for OER_Customer_2.The initialization algorithm for EERT (Algorithm 1) is shown in Figure 6.When an energy event is triggered, the OER provider agent that receives the event searches the EERT for the lowest cost OER.If the OER with lowest cost turns out to be its own OER, the provider agent performs the tasks required to provision the OER and propagates domain events to its PCR agents to control generation/consumption.If the lowest cost OER is one of its child OERs, the provider agent generates a new energy event with that child OER's available energy volume, sends the new event to that child and waits for its information update, informs sibling/parent OER on new cost if If the OER with lowest cost turns out to be its own OER, the provider agent performs the tasks required to provision the OER and propagates domain events to its PCR agents to control Energies 2016, 9, 595 11 of 19 generation/consumption.If the lowest cost OER is one of its child OERs, the provider agent generates a new energy event with that child OER's available energy volume, sends the new event to that child and waits for its information update, informs sibling/parent OER on new cost if necessary before repeating the routing algorithm on the event with reduced energy volume.If the lowest cost OER is one of its sibling OERs, the provider agent sets the NextOER field of the event to that sibling OER and sends the event to its provider agent.The detailed algorithm (Algorithm 2) is shown in Figure 7. necessary before repeating the routing algorithm on the event with reduced energy volume.If the lowest cost OER is one of its sibling OERs, the provider agent sets the NextOER field of the event to that sibling OER and sends the event to its provider agent.The detailed algorithm (Algorithm 2) is shown in Figure 7.

Resource Management Framework Implementation
Implementing the resource information modeling of the proposed framework requires addressing a number of essential issues:


Shielding the Heterogeneity: The Smart Grid has been developed based on a myriad of different technologies, systems and devices.Legacy systems, i.e., outdated but still in use resource management systems, are also a primary concern for the evolving new standards that are being developed [1].It is important for the resource model implementation to consider the problem of shielding its users from explicit handling of such heterogeneity and the interoperability between these heterogeneous elements.In the context of a VPP that aggregates multiple buildings, heterogeneity could also be introduced by the disparate energy management systems that may exist within different buildings of the VPP.


Merging Different Domain Knowledge Bases: Different domains have different knowledge base formats, which usually come in the form of different domain ontologies.In order to achieve semantic interoperability between various domain ontologies, the resource model implementation should consider merging them under a top-level or upper ontology [24] for cross-domain synthesis of the resources in Smart Grid.


Predicting User Response: Having the capability to predict the responses of the energy users in different situations is important for VPP operation.The resource model implementation should

Resource Management Framework Implementation
Implementing the resource information modeling of the proposed framework requires addressing a number of essential issues:

‚
Shielding the Heterogeneity: The Smart Grid has been developed based on a myriad of different technologies, systems and devices.Legacy systems, i.e., outdated but still in use resource management systems, are also a primary concern for the evolving new standards that are being developed [1].It is important for the resource model implementation to consider the problem of shielding its users from explicit handling of such heterogeneity and the interoperability between these heterogeneous elements.In the context of a VPP that aggregates multiple buildings, heterogeneity could also be introduced by the disparate energy management systems that may exist within different buildings of the VPP.

‚
Merging Different Domain Knowledge Bases: Different domains have different knowledge base formats, which usually come in the form of different domain ontologies.In order to achieve semantic interoperability between various domain ontologies, the resource model implementation should consider merging them under a top-level or upper ontology [24] for cross-domain synthesis of the resources in Smart Grid.To meet the above requirements, the OWL is used to define the ontology of the framework, and thus the resources are semantically profiled using machine-understandable OWL files based on the model.This approach ensures the compatibility with existing standards and domain knowledge bases, as well as not overlapping with the power system models already defined in IEC 61850 and CIM, but can be incorporated into their future harmonization.Another important aspect is that with the ontology defined in the OWL, resource provisioning and management can utilize domain knowledge in interchangeable format, consequently allowing seamless integration of different software components within the VPP.8 shows the ontology implementation of the proposed resource model: facilitate the extraction of user parameters required by machine learning techniques such as Dynamic Bayesian Networks (DBN) for response prediction.
To meet the above requirements, the OWL is used to define the ontology of the framework, and thus the resources are semantically profiled using machine-understandable OWL files based on the model.This approach ensures the compatibility with existing standards and domain knowledge bases, as well as not overlapping with the power system models already defined in IEC 61850 and CIM, but can be incorporated into their future harmonization.Another important aspect is that with the ontology defined in the OWL, resource provisioning and management can utilize domain knowledge in interchangeable format, consequently allowing seamless integration of different software components within the VPP. Figure 8 shows the ontology implementation of the proposed resource model: A layered ontology structure is adopted, which is divided into upper ontology for OERs and PCRs, and domain ontology for DSRs.In the upper ontology, OERs are abstracted by the OfferedEnergyResource class, which has five types: LoadCurtailmentVolume, LoadShiftingVolume, EnergyConsumptionVolume, EnergyGenerationVolume, StorageChargeVolume and StorageDischargeVolume.
PCRs are abstracted by the ProducerResource, ConsumerResource, and ProsumerResource classes, which are designed to be the grouping points of different domain ontologies.Predicates such as dependsOnWeather are used to link the PCR with each domain class.New predicates could be introduced as the framework extends to encompass more domains.
In the domain ontology, DSRs are abstracted by the DomainResource class, whose subclasses include PowerSystemEntity, ICTResource, SpatialInformation, and WeatherStatus for power system domain, ICT domain, spatial domain, and weather domain, respectively.The PowerSystemEntity links to IEC/CIM harmonized device profiles and metering results by predicates hasProfile and hasMetering, whereas the SpatialInformation links to the resource's Building Information Modeling (BIM) knowledge base by predicate hasSpatialInformation.
Events are classified into DomainEvent and EnergyEvent classes corresponding to previous event analysis.Event class has a predicate hasSourceResource to indicate its originating resource.The predicate nextProcessResource denotes the next receiver of event.
To extract knowledge from the resource information model, Simple Protocol and RDF Query Language (SPARQL) [25] is used to query the semantic database that stores the resource profiles.The SPARQL is a World Wide Web Consortium (W3C) standard query language for the semantic web.It can be easily integrated into enterprise software applications by using SPARQL engines such as Apache Jena [26].A layered ontology structure is adopted, which is divided into upper ontology for OERs and PCRs, and domain ontology for DSRs.In the upper ontology, OERs are abstracted by the OfferedEnergyResource class, which has five types: LoadCurtailmentVolume, LoadShiftingVolume, EnergyConsumptionVolume, EnergyGenerationVolume, StorageChargeVolume and StorageDischargeVolume.
PCRs are abstracted by the ProducerResource, ConsumerResource, and ProsumerResource classes, which are designed to be the grouping points of different domain ontologies.Predicates such as dependsOnWeather are used to link the PCR with each domain class.New predicates could be introduced as the framework extends to encompass more domains.
In the domain ontology, DSRs are abstracted by the DomainResource class, whose subclasses include PowerSystemEntity, ICTResource, SpatialInformation, and WeatherStatus for power system domain, ICT domain, spatial domain, and weather domain, respectively.The PowerSystemEntity links to IEC/CIM harmonized device profiles and metering results by predicates hasProfile and hasMetering, whereas the SpatialInformation links to the resource's Building Information Modeling (BIM) knowledge base by predicate hasSpatialInformation.
Events are classified into DomainEvent and EnergyEvent classes corresponding to previous event analysis.Event class has a predicate hasSourceResource to indicate its originating resource.The predicate nextProcessResource denotes the next receiver of event.
To extract knowledge from the resource information model, Simple Protocol and RDF Query Language (SPARQL) [25] is used to query the semantic database that stores the resource profiles.The SPARQL is a World Wide Web Consortium (W3C) standard query language for the semantic web.It can be easily integrated into enterprise software applications by using SPARQL engines such as Apache Jena [26].

Results and Discussion
This section evaluates the multi-agent system and ontology implementation of the proposed framework for a simulated campus VPP with real building energy data.

Simulation Setup
A full day energy scheduling of a decentralized VPP consisting of campus buildings, renewable generation, fuel cell and energy storage system is considered.Each building has an energy management system, which provides the energy consumption/generation interface to the MAS agents.The energy storage system is controlled by a prosumer resource agent.The topology of the simulated campus VPP is shown in Figure 9.

Results and Discussion
This section evaluates the multi-agent system and ontology implementation of the proposed framework for a simulated campus VPP with real building energy data.

Simulation Setup
A full day energy scheduling of a decentralized VPP consisting of campus buildings, renewable generation, fuel cell and energy storage system is considered.Each building has an energy management system, which provides the energy consumption/generation interface to the MAS agents.The energy storage system is controlled by a prosumer resource agent.The topology of the simulated campus VPP is shown in Figure 9.A normal workday (10 August 2015) during our winter semester is arbitrarily selected for the study case.Figure 10 shows the half-hourly electricity price data for that day obtained from the Electricity Authority of New Zealand [27].The price data is shown for 48 half-hourly trading periods over a full day of 24 h.As demand forecasting is a research topic in itself which is beyond the scope of this paper, the historical metered energy data of Auckland University of Technology campus buildings are considered for the building energy consumption planning, i.e., future energy consumption pattern is considered to likely follow historical consumption pattern, which are shown in Figure 11.A normal workday (10 August 2015) during our winter semester is arbitrarily selected for the study case.

Results and Discussion
This section evaluates the multi-agent system and ontology implementation of the proposed framework for a simulated campus VPP with real building energy data.

Simulation Setup
A full day energy scheduling of a decentralized VPP consisting of campus buildings, renewable generation, fuel cell and energy storage system is considered.Each building has an energy management system, which provides the energy consumption/generation interface to the MAS agents.The energy storage system is controlled by a prosumer resource agent.The topology of the simulated campus VPP is shown in Figure 9.A normal workday (10 August 2015) during our winter semester is arbitrarily selected for the study case.Figure 10 shows the half-hourly electricity price data for that day obtained from the Electricity Authority of New Zealand [27].The price data is shown for 48 half-hourly trading periods over a full day of 24 h.As demand forecasting is a research topic in itself which is beyond the scope of this paper, the historical metered energy data of Auckland University of Technology campus buildings are considered for the building energy consumption planning, i.e., future energy consumption pattern is considered to likely follow historical consumption pattern, which are shown in Figure 11. Figure 10 shows the half-hourly electricity price data for that day obtained from the Electricity Authority of New Zealand [27].The price data is shown for 48 half-hourly trading periods over a full day of 24 h.As demand forecasting is a research topic in itself which is beyond the scope of this paper, the historical metered energy data of Auckland University of Technology campus buildings are Energies 2016, 9, 595 14 of 19 considered for the building energy consumption planning, i.e., future energy consumption pattern is considered to likely follow historical consumption pattern, which are shown in Figure 11.Without loss of generality, it is assumed that the energy storage system initially starts with a random value between zero and full storage capacity, and then subsequently (for next simulated days) starting with the end storage value from the previous day.The parameters of real world 500 kWh storage systems [28] given in Table 1 are used for the simulated energy storage system.There is no environmental cost on OERs since the system only has renewable generation in VPP.The OERs of the buildings and their cost parameters are listed in Table 2 The weather information used for renewable energy generation forecast is based on the weather profile for the same day obtained from New Zealand's National Institute of Water and Atmospheric Research (NIWA) [29].The forecast solar and wind energy generation are shown in Figure 12.The weather information used for renewable energy generation forecast is based on the weather profile for the same day obtained from New Zealand's National Institute of Water and Atmospheric Research (NIWA) [29].The forecast solar and wind energy generation are shown in Figure 12.Two types of energy events are introduced in the simulation: wind generation uncertainty and VPP generation plan.Since solar generation is generally more predictable than wind generation, the solar forecast generation is utilized as the actual solar generation.For wind generation, real-world data quality issues which affect its forecast accuracy are considered [30].Thus, the higher-end value (40%) of the forecast error range for wind generation is adopted.Therefore, at the beginning of each trading period (TP), an energy event will be triggered by the implemented MAS due to the observed difference between the forecast and actual wind generation.At TP 17, 34, 37 and 42 where electricity price peaks, the VPP will initiate an energy event to reduce demands and export as much energy as possible to the main grid.

Simulation Results
The simulated energy storage capacity for the day is shown in Figure 13, and the PAR of each OER provider and the whole VPP against their original planning is shown in Table 3.One can see that the energy storage is scheduled according to the price trends in Figure 10, and the PAR is reduced (closer to 1) compared to previously planned consumption, i.e., the VPP power system has increased the social welfare.The investigation is further extended to larger VPPs with up to 100 buildings.The buildings are selected randomly as VPP members, with each building assigned to one of the three building types used in the previous simulation.For example, type G for halls/offices, type S for labs/offices, and type R Two types of energy events are introduced in the simulation: wind generation uncertainty and VPP generation plan.Since solar generation is generally more predictable than wind generation, the solar forecast generation is utilized as the actual solar generation.For wind generation, real-world data quality issues which affect its forecast accuracy are considered [30].Thus, the higher-end value (40%) of the forecast error range for wind generation is adopted.Therefore, at the beginning of each trading period (TP), an energy event will be triggered by the implemented MAS due to the observed difference between the forecast and actual wind generation.At TP 17, 34, 37 and 42 where electricity price peaks, the VPP will initiate an energy event to reduce demands and export as much energy as possible to the main grid.

Simulation Results
The simulated energy storage capacity for the day is shown in Figure 13, and the PAR of each OER provider and the whole VPP against their original planning is shown in Table 3.One can see that the energy storage is scheduled according to the price trends in Figure 10, and the PAR is reduced (closer to 1) compared to previously planned consumption, i.e., the VPP power system has increased the social welfare.Two types of energy events are introduced in the simulation: wind generation uncertainty and VPP generation plan.Since solar generation is generally more predictable than wind generation, the solar forecast generation is utilized as the actual solar generation.For wind generation, real-world data quality issues which affect its forecast accuracy are considered [30].Thus, the higher-end value (40%) of the forecast error range for wind generation is adopted.Therefore, at the beginning of each trading period (TP), an energy event will be triggered by the implemented MAS due to the observed difference between the forecast and actual wind generation.At TP 17, 34, 37 and 42 where electricity price peaks, the VPP will initiate an energy event to reduce demands and export as much energy as possible to the main grid.

Simulation Results
The simulated energy storage capacity for the day is shown in Figure 13, and the PAR of each OER provider and the whole VPP against their original planning is shown in Table 3.One can see that the energy storage is scheduled according to the price trends in Figure 10, and the PAR is reduced (closer to 1) compared to previously planned consumption, i.e., the VPP power system has increased the social welfare.The investigation is further extended to larger VPPs with up to 100 buildings.The buildings are selected randomly as VPP members, with each building assigned to one of the three building types used in the previous simulation.For example, type G for halls/offices, type S for labs/offices, and type R  The investigation is further extended to larger VPPs with up to 100 buildings.The buildings are selected randomly as VPP members, with each building assigned to one of the three building types used in the previous simulation.For example, type G for halls/offices, type S for labs/offices, and type R for accommodation.Furthermore, the buildings have their energy consumption pattern normally distributed with real world consumption data as mean and 0.1 standard deviation.The cost/revenue objective function of the energy consumption game (ECG) [21] is utilized as the function f ( ) in Equation ( 6) for individual agents, along with a hybrid approach of using ECG for energy planning and our event-based resource selection for real time event processing.
The average results of the proposed event-based resource selection are compared with that of two other approaches: (a) without resource scheduling; and (b) real time ECG that runs the gradient algorithm for demand side management (DSM).In real time ECG, each agent iteratively sends out its energy planning according to price signals to coordinate with each other and adjusts consumption according to events.All agents run on the same computer with 3.2 GHz i5 CPU with 8 GB memory, under 64-bit Windows 7 operating system.The result of VPP revenue, by net energy export of a day, is shown in Figure 14.The communication overhead (Figure 15) is also measured as the average number of messages sent from agents to one another before the scheduling result is finalized for a time slot.In addition, the computation overhead (see Figure 16) is measured as the average total computation time by all agents to finalize the scheduling result for a time slot, using Java Management Extension (JMX) profiling [31].All results are shown with their 95% confidence intervals where applicable.for accommodation.Furthermore, the buildings have their energy consumption pattern normally distributed with real world consumption data as mean and 0.1 standard deviation.The cost/revenue objective function of the energy consumption game (ECG) [21] is utilized as the function f( ) in Equation ( 6) for individual agents, along with a hybrid approach of using ECG for energy planning and our event-based resource selection for real time event processing.
The average results of the proposed event-based resource selection are compared with that of two other approaches: (a) without resource scheduling; and (b) real time ECG that runs the gradient algorithm for demand side management (DSM).In real time ECG, each agent iteratively sends out its energy planning according to price signals to coordinate with each other and adjusts consumption according to events.All agents run on the same computer with 3.2 GHz i5 CPU with 8 GB memory, under 64-bit Windows 7 operating system.The result of VPP revenue, by net energy export of a day, is shown in Figure 14.The communication overhead (Figure 15) is also measured as the average number of messages sent from agents to one another before the scheduling result is finalized for a time slot.In addition, the computation overhead (see Figure 16) is measured as the average total computation time by all agents to finalize the scheduling result for a time slot, using Java Management Extension (JMX) profiling [31].All results are shown with their 95% confidence intervals where applicable.for accommodation.Furthermore, the buildings have their energy consumption pattern normally distributed with real world consumption data as mean and 0.1 standard deviation.The cost/revenue objective function of the energy consumption game (ECG) [21] is utilized as the function f( ) in Equation ( 6) for individual agents, along with a hybrid approach of using ECG for energy planning and our event-based resource selection for real time event processing.
The average results of the proposed event-based resource selection are compared with that of two other approaches: (a) without resource scheduling; and (b) real time ECG that runs the gradient algorithm for demand side management (DSM).In real time ECG, each agent iteratively sends out its energy planning according to price signals to coordinate with each other and adjusts consumption according to events.All agents run on the same computer with 3.2 GHz i5 CPU with 8 GB memory, under 64-bit Windows 7 operating system.The result of VPP revenue, by net energy export of a day, is shown in Figure 14.The communication overhead (Figure 15) is also measured as the average number of messages sent from agents to one another before the scheduling result is finalized for a time slot.In addition, the computation overhead (see Figure 16) is measured as the average total computation time by all agents to finalize the scheduling result for a time slot, using Java Management Extension (JMX) profiling [31].All results are shown with their 95% confidence intervals where applicable.The results show that both real time ECG and the approach based on the proposed framework expectedly performed better than without resource scheduling, and the improvement in revenue increases with the VPP size.It is also observed that the proposed approach achieves a revenue performance comparable with real time ECG, and performs better than real time ECG as VPP size increases to over 60 participants.Moreover, by not having to iteratively compute and send messages at every time slot, the proposed approach incurs significantly lower message and computation overheads as compared to real time ECG.

Conclusions
In Smart Grids, resource management is complex due to the wide variety of resources and the need for collaboration between systems in different domains.With a view to manage this complexity and to facilitate VPP application development, this paper proposes a framework, which views VPP as a hierarchical structure and abstracts consumption/generation from third party VPP participants for managing different resource types of relevance to energy-management in decentralized VPP.
Under the proposed framework, resource models and an event-based approach for distributed decision-making on resource selection are presented.The multi-agent system and ontology implementation of the framework are also presented.As evaluation, an analysis is conducted on a simulated campus VPP with real building energy data.The proposed approach has been shown not only to provide flexibility in making energy decisions in a distributed manner, but also to improve the overall revenue of the VPP with low communication and computation overheads.Therefore, the proposed framework could serve as a promising basis for future VPP automation design and accelerate development of cross-domain energy management applications for the Smart Grid.The results show that both real time ECG and the approach based on the proposed framework expectedly performed better than without resource scheduling, and the improvement in revenue increases with the VPP size.It is also observed that the proposed approach achieves a revenue performance comparable with real time ECG, and performs better than real time ECG as VPP size increases to over 60 participants.Moreover, by not having to iteratively compute and send messages at every time slot, the proposed approach incurs significantly lower message and computation overheads as compared to real time ECG.

Conclusions
In Smart Grids, resource management is complex due to the wide variety of resources and the need for collaboration between systems in different domains.With a view to manage this complexity and to facilitate VPP application development, this paper proposes a framework, which views VPP as a hierarchical structure and abstracts consumption/generation from third party VPP participants for managing different resource types of relevance to energy-management in decentralized VPP.
Under the proposed framework, resource models and an event-based approach for distributed decision-making on resource selection are presented.The multi-agent system and ontology implementation of the framework are also presented.As evaluation, an analysis is conducted on a simulated campus VPP with real building energy data.The proposed approach has been shown not only to provide flexibility in making energy decisions in a distributed manner, but also to improve the overall revenue of the VPP with low communication and computation overheads.Therefore, the proposed framework could serve as a promising basis for future VPP automation design and accelerate development of cross-domain energy management applications for the Smart Grid.

Figure 1 .
Figure 1.Framework for VPP Resource Management.Figure 1. Framework for VPP Resource Management.

Figure 1 .
Figure 1.Framework for VPP Resource Management.Figure 1. Framework for VPP Resource Management.

Figure 5 .
Figure 5. Example of VPP tree structure and energy event routing table.

Figure 5 .
Figure 5. Example of VPP tree structure and energy event routing table.

Figure 5 .
Figure 5. Example of VPP tree structure and energy event routing table.

‚
Predicting User Response: Having the capability to predict the responses of the energy users in different situations is important for VPP operation.The resource model implementation should facilitate the extraction of user parameters required by machine learning techniques such as Dynamic Bayesian Networks (DBN) for response prediction.

Figure 10 .
Figure 10.Electricity prices for the day 10 August 2015 from the Electricity Authority of New Zealand.

Figure 10 .
Figure 10.Electricity prices for the day 10 August 2015 from the Electricity Authority of New Zealand.

Figure 10 .
Figure 10.Electricity prices for the day 10 August 2015 from the Electricity Authority of New Zealand.

Figure 11 .
Figure 11.Building energy consumption planning from real-world historical data.Figure 11.Building energy consumption planning from real-world historical data.

Figure 11 .
Figure 11.Building energy consumption planning from real-world historical data.Figure 11.Building energy consumption planning from real-world historical data.

Table 2 .
. OERs and cost parameters of campus virtual power plant (VPP).

Table 1 .
Energy storage system parameters.

Table 2 .
OERs and cost parameters of campus virtual power plant (VPP).