Abstract
In this paper, we discuss the role of microgrids as a “prosumer”. Microgrids are used to provide locally generated power (energy), and this concept is becoming increasingly prominent with time. Microgrids have added economic value when assuming the role of “prosumer” or “group of prosumers”. A new outlook in managing prosumers connected to the energy sharing network has led to the creation of prosumer coalition groups, which can subsequently manage numerous goals in microgrid energy systems. For achieving prosumer energy goals, Goal-Oriented Requirements Engineering (GORE) is deployed in this work. Hence, the purpose of this research is to develop prosumer coalition-GORE artefacts, strategising GORE players, modelling non-functional requirements and ensuring sustainable requirements engineering management in the microgrid energy system. In this research, an
Keywords
Introduction
The power sector strives to provide a sustainable, manageable, and cost-effective power system arrangements to the consumers. Decades ago in developed countries, when electricity was distributed on a large scale, it was done only unidirectionally using transmission cables and transformers, which are not economically feasible in today’s times. The usage of such cables posed safety hazards and also incurred huge power loss during transmission. The socio-economic benefits such as the utilisation of local resources, security, shorter transportation, higher efficiency based on small community initiatives led the governments to review and revise policies related to the power companies. This led to the development of energy prosumption idea all over the world in urban and rural areas since the 1990s. A prosumer is a power user who uses power and at the same time also produces power and distributes the surplus power to other energy users [1].
The application of the prosumption idea and the modernisation of the electrical systems gave rise to the microgrid (MG) concept. A MG is an energy system which functions within a restricted area or a localised energy system. The MG generates, stores and consumes electric power within that area. The MG uses the locally distributed energy resources (DER) to generate power and independently satisfy demand within that local area. The MG does not depend on the main grid. The MG is connected to the nearby utility grid, which helps it to sell surplus energy, as well as to buy additional energy in the event of an energy deficit. This utility grid is made possible with the involvement of power companies and green sources, traditional power sources and loads, as well as new customer-owned devices such as storage units and electric vehicles [2]. Several years ago, power transactions had their own limitations, as they were hierarchical and the markets were centralised. In today’s times, smart grid deployment is derived after studying the requirements of a heterogeneous dynamic environment by modelling and analysing the requirements. The heterogeneous environment also requires an effective design and evaluation of power transaction methods among substations, the utility grid, renewable energy sources, electric cars and energy users.
Different optimisation-based energy management system approaches in the literature
Different optimisation-based energy management system approaches in the literature
The power generated by the MG differs from time to time due to the irregular nature of DER, thus causing either a surplus or a shortage of power generation. Various energy management techniques have been suggested to curtail the ill effects of irregular power supply. These techniques include the use of storage devices such as batteries, flywheels, capacitors, etc., as well as of forecasting techniques, demand load management and backup generators. Another technique is to connect to nearby MGs that interchange power with each other. This technique can solve the issue of unsteady power supply caused by weather conditions. An agent-based architecture has been presented by Yasir et al. [3] for local energy distribution, where the group of MGs has a coordinator agent. This coordinator agent trades power with other interconnected groups to satisfy a group-wide power surplus or deficit.
MG created the concept of prosumer, namely consumers and energy producers. Prosumers sometimes generate excess renewable energy, which can be stored for future use or sold to buyers. Sometimes prosumers lack energy despite local production. Prosumers include DER, power loads, energy storage, electric vehicles, and smart meters. DER can be used in renewable energy sources such as rooftop solar systems and small-scale wind turbines, which produce green energy. Power loads operating under the regular and irregular energy requirements of different prosumer end users can be represented by heating and cooling devices, audio visual devices, lighting, etc. By accumulating unused energy in the battery, it can be used anytime in the future [4, 5]. Smart meters receive energy from the public grid and return it to the grid, making it two-way. Many consumers are becoming prosumers to reduce electricity bills and reduce negative impacts on the climate. The government has also tried to promote prosumer by introducing a generous feed-in tariff schemes [6]. With more and more prosumers on the market with complete freedom to share energy, it is important to focus on sustainable and reliable energy sharing models, so that prosumers can be managed in the most effective way. The motivational factor for single prosumers is that it allows the prosumer to make independent decisions, such as deciding how much energy to produce and how much energy to share with energy buyers. Prosumers have the option of signing a contract with a service provider of their choice. They also have the freedom to change suppliers depending on favorable electricity rates, contract terms and conditions of the mentioned public service provider company [6].
As opposed to traditional methods, the prosumer has tremendous control over renewable energy usage. This, together with the combination of green energy sources, rings about new opportunities for energy trading in the retail market. Therefore, prosumers have much more control in deciding where, when and in what amount to trade the energy produced. This association of the prosumers with the utility grid and energy management still has its limitations in energy production and distribution. Therefore, it is necessary to use analytical approaches to help understand the complicated association between independent and interdependent players.
A shortcoming of sharing energy directly from a single prosumer is that individual prosumers are not part of the wholesale energy market due to their perceived inefficiency and unreliability [7]. An individual prosumer does not have the larger energy-producing capacity, and therefore lacks real bargaining power. This can, in turn, force them to settle for a lower price per kilowatt. Another shortcoming is the uncertainty of the energy supply from individual distributed energy sources, due to their total dependence on unreliable climatic conditions [6]. There could be situations in which individual prosumers would be left out of the entire energy-sharing marketplace. Their inclusion depends on whether they will be able to satisfy the energy demands of the buyers. For example, solar systems and wind turbines are too small to compete with large scale power generators.
Individual prosumers generate electricity at a higher cost, but it is still cheaper than buying electricity from distribution companies. At the same time, prosumers hardly buy electricity during peak production, which increases demand for storage and finally storage costs of the system. The requirement is to build a grid using the latest technology that helps in optimising and at the same time distributing the energy. There is a need for a smart energy management system which consists of an active and improvised high technology power grid. This power grid caters to the gap caused by limited energy resources and the higher demand in the power supply.
To enable prosumers to generate higher volumes of energy, the concept of a coalition was created. A group of prosumers can come together to form a coalition with the aim of distributing electricity among themselves [3]. This is how coalitions can help generate more energy in the market. Individually, prosumers can produce green energy and, by forming coalitions, can sell larger amounts of energy. In this way, prosumers can get a higher price per kilowatt in the energy market. Compared to individual prosumers, coalitions of prosumers can produce larger amounts of energy, which can meet the needs of energy buyers in the most effective way. However, there is a downside to such coalitions, as they are not goal-oriented. This causes uncertainty among energy buyers regarding long-term energy supply.
There are some challenges in the prosumers’ coalition based energy sharing network, as it contains multiple opposing goals. During the development of complex systems in real-world scenarios, many of the stakeholders’ objectives are found to be conflicting in nature. For example, goals include the maximisation of external customer satisfaction, local energy demand satisfaction, quality of service, income, profit, etc. In order to manage and analyse goals in energy sharing network, it is necessary to model it using goal-oriented modelling. Also, it has been found that the presence of opposing goals was negatively impacting the decision-making process [8]. Given the challenges above, there is an urgent need for methods to improve coalition access to energy, resilience and reliability. Another major challenge that the energy coalition will need to reach an agreement that ensures a fair share of revenues and benefits [9].
This uncertainty led to our proposal, which includes the concept of goal-oriented prosumer coalitions provided in the given literature.
Literature review
In general terms, Goal-Oriented Requirements Engineering (GORE) involves the design of a software system by using goals as the starting point. The goal model demonstrates how goals, actors, states, objects, tasks and domain characteristics are all interconnected in the specified system [10, 11, 8] with respect to software engineering. The Knowledge acquisition of Automated Space (KAOS) Model [12],
From popular research studies, the
The
An important group of researchers applies the game theory to solve the energy management problem of prosumers [25]. Game theory is a set of mathematical techniques which can be used for logical and fair decision-making on energy trading and management among various players (substations, utility grid, renewable energy sources, electric cars and prosumers and energy users) in the smart grid. Game theory can be a beneficial tool in understanding independent and interdependent decision-making associated with various situations. There have been several research proposals in the past [26, 27, 28, 29], some using a single energy user (prosumer/consumer) for energy trading. Other research works involve grouping energy users [30, 31, 32] with no mention of prosumers. Few other types of researches involved grouping prosumers using agent-oriented methods. Another research approach is to group prosumers using a game-theoretical approach. Coalitions are formed to help in balancing supply and demand, backup storage and physical network limitations. Similarly, [31] proposed a cooperative game-theoretic approach where communities mutually decide to schedule the usage of appliances in a collaborative manner, thus reducing peak energy demand. Further research proposals [33] suggest an association between energy users and the grid, as opposed to prosumers and the grid. An effective proposition was made [34] to form a coalition between customers and MG to bring about efficient utilisation of energy. A comprehensive comparison of the different types of energy management systems is provided in Table 2.
Impact values
Impact values
In the centralised type, all of the controllable generation and consumption devices are controlled by a central controller, failing to protect customer privacy. The central controller not only manages the power interaction among MGs and the generation scheduling, but also participates in market bidding, stability control, and switching of MG operation modes. In general, the centralised structure can maximise the overall benefits of all MGs. Nevertheless, the centralised structure requires a high computational capability as the penetration of renewable generation continues to grow. In the decentralised type, every MG is an autonomous entity and has a local controller to maximise its own profit. The local controller monitors the operation status of MG and then independently determines the operation condition and controllable loads. However, the decentralised type may bring in the competition between MGs, thus degrading the system wide performance. The global optimal control of MGs can be realised through the information exchange among MGs. The hybrid type, which contains a central controller at the system level and local controllers at the MG level, is developed to overcome the disadvantages of centralised and decentralised type. The local controller of each MG performs local energy management and optimisation, and only informs the central controller on the total amount of surplus/deficit energy. The central controller is used for negotiating the control inconsistencies and economic conflicts between MGs, ensuring that the system operates in a global optimal state. Besides, the hybrid structure has the advantages of flexibility and low operation cost, making it popular in the MG system. However, no mechanism was created for managing the prosumer coalition’s non-functional requirements in the given energy trade environment. In an environment which has dynamic energy requirements, all the earlier proposed techniques would not work, since the value of energy requirement is fixed after the load is created. After reviewing the techniques given above, it was found that these techniques focused on grouping prosumers and consumers in a static environment, and also did not address or satisfy the prosumers’ non-functional energy needs. The payoffs by the prosumers were also not properly distributed and were not based on their specific energy trade. None of the proposals and work done until now were able to develop a framework based on goal-oriented coalition formation in a dynamic and real-time environment. This would help in improving the technical and economical aspects, while also taking into account the non-functional requirements during the power trades. Another energy trading model was proposed based on the research done by Capodieci and Paganin [29]. According to this model, an energy trade was made possible between individual prosumers, the power companies and the energy users based on an agent-based technique, so that their independent and individual energy needs could be satisfactorily achieved. Lamparter et al. [35] also developed a proposal for energy trading, which was also an agent-based model. An agent can use the limitations or preferences which are based on the local policy-concerned bidding mechanism. Another model for energy trading proposed making energy trades in a localised distribution network. This proposal aimed to reduce energy consumption during peak hours, while strictly adhering to game theory. In spite of the numerous other research proposals for enabling active energy trades between consumers and power companies, it was observed that none of these proposals were based on energy trades between prosumer coalitions and energy buyers, nor were they based on game theory. Another major shortcoming in most of these proposals is that they are based on the traditional, non-cooperative and static environment, and only consider interactions of a single energy user with the power trading company. While some research proposals focused on assimilating the interdisciplinary characteristics of power systems, networking and communications for energy trades, all the other proposals focused on the energy demand aspect, along with the problem of optimisation for the grid. Hence it was concluded that all of the earlier research proposals were unable to develop a game goal-oriented model between prosumers and energy buyers, which could also take into account the strategic trading of the maximum amount of surplus energy. At the same time, these proposals did not take into account the non-functional requirements of the prosumers, the demand-side needs, and the problem of optimisation, which would be beneficial to the two parties participating in the energy trades.
An example of a simple SD 
In this proposed approach, the intentional strategic actor is modelled as the central unit. There are several characteristics that represents the intentional aspects of an actor such as goals, beliefs, ability and commitment [20]. An actor’s intention is to successfully and strategically attain the goal. The structural relationship of an actor in comparison to other actors in sharing resources or accomplishing goals by performing some tasks is also a significant aspect. Among functional goals, in other words, ‘hardgoals’, some preferred behaviours are captured by the non-functional goals also known as ‘softgoals’ [36]. The
An example of a simple SR 
There are some challenges in the prosumers’ coalition-based energy sharing network, as it contains multiple opposing goals. For example, goals include the maximisation of external customer satisfaction, local energy demand satisfaction, quality of service, income, profit, etc. In order to manage and analyse goals in energy sharing network, it is necessary to model it using the
Game theory uses scientific and mathematical explication in studying decision-making tools. Both conflict and cooperation among intelligent decision-makers are taken into account. It has a significant part in competing situations for analysing issues and obtaining the pay-off values based on the player’s results’. Game theory is a powerful inter-disciplinary tool for the analysis of competitive situations (or situations of conflict) in multi-agent systems [18]. It was originally developed for the domains of mathematics and economics. It can effectively characterise the interaction between decision-makers. It is an appropriate tool to analyse challenges of requirements-based engineering design [37]. The reason for choosing the game theory idea is that it finds an ideal solution under conditions of conflict assuming that players are rational and act based on their interests [18]. In this paper, analogous to game theory, the game players are considered as the top softgoals having opposing natures and the game strategy is treated as the alternative design options of inter-dependent actors in the
Motivated by the discussion presented, in this article we propose a game theory based prosumer coalition to sell the excess energy to customers. We also explain how coalition outcomes (payoffs) are shared equally among prosumers using the Shapley Value concept. Therefore, this paper proposes a new game theory based methodology to explore MG energy systems and implies an optimal evaluation of their NFR objective function. We have adopted an agent-based
Following are the main contributions of the paper summarised as ready reference:
We proposed a novel methodology based on game theory for exploring the MG energy system and implementing multi-agent based coalition formation of prosumers in MG to sell their surplus energy with customers. We proposed a fuzzy logic method to effectively interpret and evaluate the goals/requirements of the prosumer coalitions which are usually expressed in a more linguistic/subjective manner. We proposed an We implemented the game theory-based goal modelling approach using Shapely Value theory for optimally quantifying and evaluating payoffs from the coalition that are fairly shared among the prosumers in the presence of opposing NFRs.
modelling
There are several characteristics that represents the intentional aspects of an actor such as goals, beliefs, ability and commitment [19]. An actor’s intention is to successfully and strategically attain the goal. The structural relationship of an actor in comparison to other actors in sharing resources or accomplishing goals by performing some tasks is also a significant aspect. Among functional goals, in other words, “hardgoals”, some preferred behaviours are captured by the non-functional goals also known as “softgoals” [23]. The
The
Figure 2 demonstrates an example of an SR model. The
Game theory
Game theory uses scientific and mathematical explication in studying decision-making tools. Both conflict and cooperation among intelligent decision-makers are taken into account. It has a significant part in competing situations for analysing issues and obtaining the pay-off values based on the player’s results’. Game theory is a powerful interdisciplinary tool for the analysis of competitive situations (or situations of conflict) in multi-agent systems [17]. It was originally developed for the domains of mathematics and economics. It can effectively characterise the interaction between decision-makers. It is an appropriate tool to analyse challenges of requirements-based engineering design [39]. Also, game theory is applied to represent and help understand the complicated association between independent and interdependent players [28]. A game model can be organised either in a cooperative or a non-cooperative way to find the optimal values of the payoff. In a non-cooperative game model, the players have the option of making a decision themselves to optimise the payout values. However, in a cooperative game model, players are organised into multiple sets of coalitions and cooperate with each other to achieve the optimal payout value. The current research works prove that cooperative type of game models are more efficient and profitable than non-cooperative ones. A cooperative game theory method called Shapley Value is used in this approach to distribute the economic benefits of the cooperation between the prosumers. In a cooperative game model, multiple coalitions are possible if the number of players are more than two. It is a decision-making process that can resolve various types of conflicts between decision-makers and find maximum payoff. The game theory model is a combination of autonomous decision makers known as players, and they must play two or more in quantity. In addition, each player must have more than one choice to profit from the game, otherwise he/she cannot apply the strategy. This means that the game theory model is a combination of several players, strategies and payoff functions. Game theory is a great way to tackle various decision-making problems in MGs, where various renewable resources are used for generation purposes. In recent years, game theory techniques are used in various research fields to solve various technical problems, which confirms a solid basis for the contribution of the market to get their optimal profit. The main element of any game model is that the player and each player must have more than one option to implement their own strategy to find the maximum payoff. One of the main challenges facing community energy schemes using coalition game theory is the problem of scalability [40, 41]. In particular, when determining Shapley Value in a coalition, the calculations become very complex and time-consuming, as the number of players in the coalition increases. To overcome this computational challenge, we proposed a mechanism based on the marginal contribution of each players. The next section describes the prosumer coalition structure formation, its optimisation and the generation of optimal solutions.
Layered structure of actors in prosumer coalition.
With the aim of saving costs in the power distribution sector, better coordination of activities between power generating companies and individuals (prosumers) with the other parties can be achieved by using a software controller, which would represent each coordination as shown in the Fig. 3. This led to the idea of forming coalitions using the three activities mentioned below:
Generating a coalition structure To solve the problem of optimising each coalition To divide the value of the generated optimal solution among prosumers
Prosumer coalitions are formed in such a way that prosumers within each coalition would coordinate their activities only within their own coalition. These coalitions do not interact or coordinate with any other coalitions. This created a need to make disjoint and exhaustive coalitions by partitioning them into what we call a Coalition Structure (CS).
To solve the problem of optimising each coalition
To optimally solve their coalition problems, the tasks and resources of the prosumers in the coalition are pooled together. The purpose of these coalitions is to maximise their total payoffs by further selling the surplus energy to the other energy buyers.
To divide the value of the generated optimal solution among prosumers
Prosumers can do an energy exchange with other prosumers within the same coalition or with other coalitions. The quantity of energy that is produced by each coalition group is denoted as the ’decision variables’ in this research proposal. In the absence of enough prosumers to form the coalitions, the coalition can consist of only one prosumer.
If
If
For achieving equilibrium in energy distribution from prosumers to the other energy buyers (customers), a small communication overhead between one another is required in order to make strategic choices for forming a coalition among prosumers. If any excess energy remains after a coalition payoff function has taken place, the CC promptly informs the customers after assigning values to the excess energy,
Block diagram of prosumer coalition-based goal management.
A detailed explanation is presented in this Section, providing a framework for prosumers’ goal-based environment as shown in Fig. 4.
Theoretical explanation of the goal-based framework
This subsection explains a brief synopsis of the goal-based framework for the prosumers in the coalition. The following Fig. 4 illustrates the framework. A key requirement for making the prosumers goal-oriented is ensuring that their goals are managed after a clear understanding of the overall aims and objectives for this model, which depends on prosumers’ coalition-based energy sharing. We also need to take into account the effective tools that are used to tackle the numerous conflicting goals. At the same time, there was a need to optimise these functions so as to achieve multiple goals (objectives). There are several challenges that we encountered while sharing energy in this coalition-based environment. As an example, limitations due to income and costs, profit maximisation, etc. are some goals that created many oppositions and conflicts. On the other hand, there are some goals that can be achieved only by sacrificing some other goals. For example, the numbers of prosumers in each coalition need to be kept as low as possible, so that the overhead cost of managing these prosumers can also be kept low in order to achieve the goal of maximum profit from these coalitions. However, the drawback here is that the total energy produced and shared will be reduced, further affecting the payoffs (or total tariff income) received from the energy buyers due to the lower number of prosumers. Hence there is a pressing need to work with these limitations by ensuring that multiple conflicting goals are handled most effectively, while also keeping in check all the alterations and changes made in the required parameters for achieving all the goals satisfactorily. Moreover, all the goals determined for the prosumers need to be further categorised into customised goals for the different prosumers which have entered into a coalition. This would ensure that these prosumers stay motivated and inspired to achieve their respective goals. After further studying the above-mentioned factors, it seemed necessary to develop an effective methodology in this framework for managing the prosumers and their goals. We also had to define and present alternative design options so that the prosumers’ goals could be achieved to their maximum satisfaction. This paper presents the development of an effective goal-oriented framework to obtain an optimised set of overall goals within the prosumers’ coalition-based energy sharing model.
Our sole focus is to achieve the strategic goals while also keeping all the limitations in mind, which would help in optimising the overall strategy by using proper logic and reasoning methods. We present below a detailed explanation of the steps that must be taken in this framework, which are completely based on the prosumers’ goals.
An analysis of the stakeholders
In order to analyse the stakeholders, we first need to clearly identify the actors (stakeholders) that should be considered, clearly identify their goals and objectives, and also ascertain the impact of using the different alternatives. These different alternatives are again based on the subjective understanding of the stakeholders’ preference for solving their problems. A bottom-up approach is used to understand the stakeholders’ perspective on the methods used to attain their objectives. This approach helps in identifying all the non-functional energy requirements, while also noting the implications of using various alternatives. The very first step in this framework is the identification of the two actors for the proposed coalition-based energy sharing model: i.e. the Prosumer and CC.
In order to achieve the goal of effective energy management, the five non-functional requirements for the prosumer were identified. The identification of these non-functional requirements was based on the various factors related to the prosumers’ energy management profiles in the existing literature. The five non-functional requirements identified are:
To maximise revenue by maximising the
surplus energy sold to the energy buyers with more demand, satisfaction of the external customer, and; quality of service provided. To minimise costs by minimising overheads of
managing prosumer coalition, storing information about the energy needs of each member, total money invested, and; operation and maintenance of the coalition. To maximise the profit by
minimising the overall costs, and; maximising the revenue generated.
In the proposed coalition-based energy sharing framework, solar panels and windmills were also considered as options or design alternatives for sourcing energy. Three non-functional needs for the CC are mentioned below, so that the energy is managed effectively and the payoff to each prosumer within the coalition is distributed as fairly as possible. These non- functional needs are:
each prosumer should get maximum payoffs; the price function needs to be optimised, and; the total surplus energy in each coalition needs to be maximised.
An Example 
In this Section so far, we have provided a completely generalised framework of the
For better understanding and clarity, a brief description of the methods used to derive the scores of softgoals is presented in this Section. To formalise the suggested framework and techniques provided, an example is shown in Fig. 5 for a clear understanding of the SR
Here, it is assumed that the goal (
The decision makers would find it very difficult to express their requirements and preferences in exact numbers, due to the ambiguous data and complex problems which arise during the desision-making process. The respective defuzzified values for the softgoal contributions are shown in Table 2. In order to find the scores of top softgoals to achieve maximum satisfaction levels, the impacts that softgoal preferences would have on the top softgoals are generated. The generation of leaf softgoal scores is done in a backward direction so that the scores of top softgoals can be ascertained as accurately as possible. Many contribution links are received by the softgoals.
Let us consider that there are
If any softgoal has
where,
If
In the above equation,
This process of calculating the score for each softgoal is generated upwards, as explained above. That is, the scores of a level
Thus, we see that the objective function of the top softgoals with regards to each actor is generated based on the score calculation in Eq. (4). This is explained further in the following Section.
Consideration has to be given to both strategic dependencies and rationale diagrams of the
Such that
To enable all the actors in the goal model to reach optimal solution values, these multi-objective functions are also optimised. In the next Section, we elaborate on how conflicting goals, which can be maximum or minimum in nature, can be optimised for the multi-objective functions.
An optimised set of overall goals for energy sharing in this coalition-based model decides the output in the goal-oriented energy management phase. In this proposal, we assume that each actor has two conflicting top softgoals (
The following equation defines the optimal solutions, as shown below:
Moreover, multi-objective function values are generated for all the actors present in the goal model. These optimal values denote the potential of each alternative in order to attain the objectives of the actor (stakeholder). In these muliti-objective problems, a set of optimal solutions is referred to as the Pareto optimal set. In this environment, which contains objective functions in multi-objective optimisation problems, the Pareto optimal set helps in evaluating a collection of solutions which are not mutually controlling, but are instead superior to the rest of the search area. In this goal-based model, we pay special attention to the design of agents and the derivation of organisations from the goal-oriented needs. At this stage, we find that there is a need to manage multiple conflicting goals in a coalition-based energy sharing matrix so that an optimal set of goals can be achieved.
A linear goal programming technique is used here so that a formula can be derived to reach an optimal solution, which in turn contains the problem of conflicting goals. Now, the objectives are allocated for the optimal achievement, also keeping in mind their relative priority at each level. These objectives are considered to be the softgoals which need to be achieved, and hence efforts are made to find an optimal solution which is “as accurate as possible” to the optimal satisfaction. Goal programming models have earlier been used successfully in numerous application areas, such as environmental, health and academic planning [49]. These goal programming models have a good track record as a means for handling multiple conflicting goals in a feasible and efficient manner. However, this model has been rarely used in such energy sharing networks. In this model, we use and further develop Multi-Choice Goal Programming (MCGP) methodology for our solution framework as presented in Fig. 6.
Proposed goal-oriented framework for prosumer coalitions using 
In a socio-economic community environment [20, 21, 22, 23], the GORE network specifically
Proposed phases in the 
The goal modelling of the
The proposed phases in the
Analysing Requirements:
The SD and the SR models are used to define and specify requirements. Both SD and SR models are used to analyse and describe the dependency between actors, organisations and also the rationale of the actors. Designing Agents:
To design the agents in detail, SD and SR models are used. A classification of the elements is finalised into actor, goals, resources, alternative design options, actions, impacts, dependencies, decompositions and context models. A series of actions are specified in this design to find a way for the actors to achieve their goals. Designing Organisations:
Even though organisations are designed in detail just like the agents, there are differences with respect to the actions and roles of the organisation versus those of agents. In an organisation, roles are also played by other agents and/or organisations at run time. The organisations do not perform all the actions on their own. A role is explained in detail with a set of goals, a context model and two conditions. For an organisation to achieve its goal, plans of the goal are pursued by a goal of roles instead of actions by an agent.
In the following Section, an explanation of the proposed fair distribution between prosumers based on the Shapley Value method is presented.
Using the tools and techniques given in this proposal, the objectives of prosumers are formulated in such a manner that the total revenue is maximised by minimising the overhead costs and expenditures. The total costs involve the cost of producing energy, such as fuel cost, and overheads such as operation and maintenance costs. Each prosumer’s objective functions are derived individually. These objective functions are dependent on decision variables, such as the quantity of local energy production, the amount of surplus energy available for sale with the prosumer, the expenditure of initial investment, operation and maintenance costs, quality of services provided, etc. The latter conducted the authors of this paper to formulate in this section an optimum payoff characteristic function in this Section such that the profits gained by prosumers in the coalition are maximised. This, in turn, is achieved by trading energy locally and by using a fair calculation technique based on the Shapley Value method [38]. The numerical reproduction of the results is presented towards the end of this Section, which shows that the proposed technique can maximise the payoff of the prosumers when they are in a coalition. However, in the absence of these coalitions, the payoffs are not as optimal. The concept of the cooperative game-theory solution presented in the Shapley Value method helps in fairly compensating the energy exchange between the prosumer and the utility grids. The Shapley Value criteria can be applied in many scenarios in this coalition-based energy sharing environment. For example, this method can be used in order to fairly allocate emission [50] or transmission expansion [51] costs.
The numerous applications and favourable properties of this method ensure that the payoffs are distributed fairly and that the
The Shapley Value is defined as the distribution of payoff value that is canonically held to fairly divide the value of a coalition. This method is used to allocate the income of a coalition to each individual prosumer in that coalition. This method is arguably the most significant payoff plan and is used in coalition games for regulating the payoffs. Within game theory, special attention has been placed on the Shapley Value method due to its well-defined approach to solving the problems of complex strategic interplay [52]. To enhance the cooperation within associations, numerous authors have developed and used methods based on the Shapley Value. The average payoff contribution of all the viable orders of the prosumers is considered as the Shapley Value of a prosumer. This Shapley Value supports a mutual understanding of how the payoffs will be divided as fairly as possible, among the prosumers.
The Shapley Value
where
As a consequence, the Shapley Value
Pareto-efficiency: It distributes the total values of a coalition among all its players.
Symmetry: Notwithstanding the number of players, the value can be ascertained by using this method.
Additivity: This property requires any of the two games:
that is:
Zero player: A player would gain a value of zero,
in case the marginal value of the player in any possible coalition is zero.
In order to fairly distribute the payoffs using the Shapley Value method, we need to ask some questions to apply this coalitional game theory. The questions to be asked are:
Will a coalition be formed? How will the players in the coalition divide their payoffs?
The answer to the first question is usually the ‘grand coalition’, which is the name assigned to the coalition of all the prosumers in
The cooperative game is still described in terms of a characteristic function, which specifies (for every group of players (for example prosumer coalitions)) the total payoff that the members of
An 
Figure 8 shows an example
Based on the given scenario, total no. of coalitions among four prosumers
Surplus Energy in kWh
Surplus Energy in kWh
Characteristic function values based on each coalition set (S)
We further initiate
which is the convex characteristic function based on the amount of surplus energy. This formula for
Marginal contribution of each prosumer within the coalition of four prosumers
We have provided Table 4 to show different sets of coalitions
Table 6 shows the Shapley Values of each prosumer with and without a coalition.
So that the best pricing characteristic function can be chosen, we consider the various pricing characteristic functions – Linear, convex and concave functions. The characteristic functions
Shapley values of each prosumer with and without coalition
Shapley values of each prosumer with and without coalition
Linear:
Convex:
Concave:
where the value 0.1 is considered as the ‘cost per unit’. We consider coalitions of various numbers of prosumers, so as to choose the most suitable pricing characteristic function.
Marginal contribution of each prosumer for different characteristic functions
We observe from Table 7 and Fig. 9 that the linear and concave pricing functions do not show a considerable gain when coalitions containing different numbers of prosumers are formed. Hence, it was found that the individual prosumers gained better benefits when the characteristic function used was a convex function, i.e. Convex
Marginal contribution using shapley value method of each prosumer for different characteristic functions.
In this Section, we formulate the objective problem and constraint functions of the optimisation framework. These functions enable energy management for prosumers in the coalition. A detailed
To illustrate the goal-based optimisation framework, we consider the same case study which we used and discussed in the earlier Section, where we took the example of forming coalitions with four prosumers. We have chosen this case study since it is simple and has been interpreted in easy terms. The two main actors presented in the figure have been simplified significantly as Prosumer and Coalition Controller. The mandatory non-functional requirements or top softgoals of the actors (i.e. Prosumer and Coalition Controller) have been identified as Profit and Payoff, respectively. We can achieve both Profit and Payoff by using Solar Panel and Windmill as alternatives for generating energy, so as to bring down this overhead cost. The actor Prosumer, benefits by achieving the topmost softgoal of maximising Profit through maximising Income and by minimising Total cost incurred. The impacts (Make; Help; Hurt; Break; Some
In order to obtain a maximum score for each top softgoal as defined in the
The value of the top softgoal Profit can be obtained from the softgoals Total Cost and Income, as shown in Fig. 8. The objective function for the softgoal Income is given below:
where
The objective function for the top softgoal Profit can be found from the softgoals Total Cost and Income, as shown below:
As an example, we considered the profit calculation from each prosumer in the case study (Table 6). The above equation can be further simplified as shown below:
The IBM ILOG CPLEX tool is used to interpret the multi-objective function defined in the above sub-section.
Optimal values of each prosumer with and without coalition formation.
In order to test the effect of coalition, we first considered three different characteristic functions (concave, linear and convex), and studied the Shapley Value with and without coalitions. In the investigation of the three different characteristic functions, we have found that for the linear function, no payoff was achieved by forming a coalition. In the case of concave functions, the overall payoffs are reduced by making coalitions. Higher payoffs are attained by forming a coalition only when we have a convex function. In the proposed work, a greater number of prosumers can be considered and investigated by using the Shapley Value. We also optimise the formation of a coalition and define the members that can be part of the coalition. All the multi-objective functions obtained are in linear form, so we use linear programming to find an optimal solution for the game. Hence, by solving the multi-objective formulations using the IBM ILOG CPLEX tool, the optimal and proportional values of the strategies are ascertained. Tables 8 and 9 and Fig. 10 are provided for ready reference with regard to the optimised values of the Pareto optimal multi-objective function, both with and without the coalition of prosumers. The results of simulation show that the proposed approach of coalition formation based on goal modelling of prosumers using the
Pareto optimal values of each softgoals of each prosumers in coalition
Pareto optimal values of each softgoals of each prosumers without coalition
This study examines the coalition of prosumers and suggests a method to fairly compensate for surplus energy exchange through power transactions based on the individual contributions. Thus, we proposed the
