Game Theoretic Spectrum Allocation in Femtocell Networks for Smart Electric Distribution Grids

: Ever growing penetration of the behind-the-meter technologies is changing the electricity consumption proﬁles of end-users. Intelligent coordination of these emerging technologies through a robust communication infrastructure enables their seamless integration with electric utilities’ operation. In this context, an efﬁcient and reliable communication infrastructure plays a pivotal role in enabling optimal integration of emerging resources. In this paper, we propose a game-theory based method to enhance efﬁciency of the underlying communication network. Speciﬁcally, we focus on Femtocell communication technology which is one the promising options for improving poor indoor communication coverage. The major drawback for using femtocell communication technology is cross-layer interference of femto users (FUs) and macro users (MUs) which adversely impact network performance. In this paper, we propose a novel approach for sharing spectrum in a cognitive radio system with FUs and MUs as primary and secondary users, respectively. The underlying problem is formulated as Stackelberg game that is joined with a convex optimization problem. In this study, MUs and FUs are assumed to be selﬁsh, rational and motivated to achieve maximum utility function, while MUs are competing to obtain maximum bandwidth. Finally, we present a closed form solution for the proposed approach which obtains a unique Nash Equilibrium and prioritizes the access of MUs to femto-base stations. Simulation results provide proof of concept and verify the effectiveness of our mathematical modeling.

mechanism enhances network capacity. In this work, the merit of hybrid access in comparison to other accesses is investigated by developing an intelligent resource allocation.
In this paper, we propose a novel spectrum allocation approach to share access between FUs and MUs in a hybrid access setup. FUs and MUs are presumably rational and selfish. FBSs are willing to open certain spectrum, in a hybrid mode, to enhance the overall network capacity. In some cases, however, FBSs prefer to select closed access. As a result, only their registered FUs can have access to resource [27]. FBSs are responsible for determining bandwidth assignment to MUs and FUs. In this regard, the monetary value of FBS services directly impact these assignments and operation of neighboring FUs and MUs. By increasing the resource allocated to femto users, FBSs can enhance FUs' performance but at a higher cost. Consequently, access to more resources inflates expenses for MUs. Given these properties, this resource allocation problem naturally lends itself to a game theory setup that determines optimal payment flow among stakeholders, i.e., MUs, FUs, and FBS, as well as optimal resource allocation according to service expenses.
With growing the number of users in a network, finding an optimal resource allocation is challenging. To tackle the resource allocation problem, game theory becomes a well-known method to model and analysis. In the telecommunication problems, usually, a Stackelberg game is used to assign the rate and power to users. The Stackelberg game is a strategic game, in which two types of players participate, leaders and follower. The leaders select the strategy of game and act first, while the followers follow the rule of game. Leaders know that each decision has the specific consequence on the followers' decision and based on the game rule followers should follow the leaders' actions. Some of the interesting works on resource allocation is as follows. The power allocation for two-tier networks is modeled in [28,29] while the problem is solved by robust Stackelberg game [28,30]. In order to assume interference constraints for uplink resource allocation problem, a Bayesian Stackelberg game is proposed in [14,23,31,32]. In [14,31] price-based resource allocation is presented while the macrocell protection is considered.
In this paper, we pose the aforementioned resource allocation problem as a Stackelberg game theory problem. In order to highlight the contribution of our work, we count them as follows:

•
Since the overall bandwidth is limited, the total bandwidth that is divided between MUs and FUs should meet bandwidth capacity limitation. To this end, at first, we formulate a game theory and convex optimization problem. Then we derive a closed form solution for the proposed formulation. To tackle this problem, authors in [33] solve a resource allocation problems in an iterative fashion whereas [34] propose a Fuzzy Logic approach to solve this problem.

•
In this work, we offer an efficient, robust spectrum assignment technique, through two adjustable coefficients, the first coefficient is used to specify the allocation strategy. To this end four strategies are considered: maximizing femtocell utility, establishing fair access for all MUs, removing macro users with maximum bandwidth needs while promoting macro users with bandwidth minimum needs and vice-versa.

•
The second coefficient prioritizes each MU to access more or less amount of bandwidth. The coefficient can be calculated based on the distance, signal-to-interference-plus-noise ratio (SINR) or similar index. For example, since the distance between FBS and MUs increase, FBS usually spend more power to transmit a signal. In this case, FBS prefers to assign less priority to such a user.
The rest of paper is organized as follows: the system model is described in Section 2, and the problem formulation is elaborated in Section 3. In Section 4, game theory analysis is presented, while the Stackelberg game and Nash Equilibrium are presented in Section 5. The results are presented in Section 6, and the last section concludes the paper.

System Model
In this section, the proposed system and network model are elaborately described. We consider the downlink state of a two-tier network which consists of uniformly distributed femtocells in one macro-cell area. The macro-cell and femtocells coverage radius values are R M and R F , respectively (R M >> R F ). Further, total transmit power for MBS and FBSs are P M and P F , respectively (P M >> P F ). Assume that each FBS has one femto user (FU) and k macro users (MUs) which are distributed uniformly near each FBS and are located its coverage radius. All FBSs operate in hybrid access mode, i.e., MUs can use FBS spectrum under certain conditions. Further, any MU suffering from high interference due to closeness to FBS is taken into account. In this paper, due to the negative effect of FBSs' range overlap on FUs performance, FBSs are placed far from each other; hence, interference between them is insignificant and co-tier interference is neglected. Cross-tier interference affects SINR of each MU, and this parameter is a proper index to specify which macro user needs less power to reach its desired SINR; therefore, a MU with higher SINR gets higher priority. In this regard, FBSs assign more bandwidth to MUs with higher priority because this leads to a decrease in overall consumable power.
In this paper, FU requires a bandwidth equal to w f . Additionally, each macro user (MU) needs a bandwidth of w i and total bandwidth of FBS is w. In this regard, total bandwidth that FU and all MUs need is larger than that of the total bandwidth assumed which means: Since the total requested bandwidth is larger than the available bandwidth, there is a competition between FU and each MU form. In order to tackle this problem, we propose to develop a Stackelberg game-based formulation. In the proposed game theoretic framework, each FBS splits w between FU and MUs. Let w * f = b w represent the bandwidth allocated to FU and w demonstrates the bandwidth which is allocated to all MUs where b is the bandwidth allocation ratio and is expressed as b = α * w f w ; α * denotes the satisfaction percentage of femto user. In order to have a proper hybrid mechanism, the system should consider 0 < α * < 1. If α * becomes greater than one, it means system assigns more bandwidth than the requirement of femto users. Our focus is on analyzing the downlink and uplink states in a similar way. To this end, in this paper, we design a Stackelberg game theory which allocates bandwidth by prioritizing MUs. In order to achieve optimal assignment of bandwidth, we propose to formulate and solve a joint convex optimization and game theory problem.

Problem Formulation
In this section, spectrum sharing in hybrid access mode is proposed in which MUs are desired to motivate FBSs to share their spectrum through a refunding scheme. In hybrid access mechanism, MUs are satisfied and overall network capacity increases because FBSs can enhance their utilities by compensating service expenses and MUs obtain bandwidth. Therefore, this is a win-win game, and the aim of our study is to assign high data rate for FUs while providing a better condition for MU to get rid of high interference. To achieve this goal, this problem is formulated as a Stackelberg game.

Utility Function
Utility function of FBSs as given in (2) consists of two parts in which, the first term is the amount of spectrum which is assigned to FUs, and the second part represents the revenue which MUs pay [35]: where U w is the churn rate of femto user, Ω F is the equivalent revenue and m i is the revenue that each macro user pays. When U w is decreased by one percent, U w is the data rate utility which demonstrates FU's satisfaction and is defined as a sigmoid function [35]. Sigmoid function is one of the best functions for approximating user satisfaction with respect to resource allocation [36] and is given by: Here, a represents the femto user's sensitivity and w 0 is the bandwidth reservation of FU. In addition, α is the femto user's satisfaction factor, w f is the desirable bandwidth of femto user and αw f represents bandwidth that is allocated to FU.
Hence, the objective of FU optimization problem is to maximize: Moreover, macro users' utility function consists of two terms; the bandwidth that MUs have attained with a reasonable payment and the refunding that each macro user should pay: Here, w * i can be derived as: Ω m denotes the equivalent revenue per unit bandwidth that macro user receives from FBS and w * i is the allocated bandwidth to the i-th MU. Moreover, µ is a parameter to regulate assigned bandwidth and revenue and can establish fairness among MUs or it can maximize total revenue of FBS. Also, Z i specifies the priority of each MU and depends on each macro user's specification (e.g., SI NR).
In fact, this parameter increases MU bandwidth assignment.
Since the FBS wants to assign the whole bandwidth (w) to femto and macro users, utility function described by (5) should be maximized under the condition which leads to bandwidth allocation to FU and MUs as in [33]: By substituting (5) and (6) in (7), these conditions can be derived as:

Game Theory Analysis
In this section, the problem of bandwidth allocation is formulated as a non-cooperative Stackelberg game, in which FU is considered as a leader or primary user, and MUs act as followers or secondary users. In this section, we analytically proved that the aforementioned problem has unique Nash Equilibrium by which the utility of both FU and MUs are maximized. Since both FU and MUs are rational as well as selfish, and they intend to maximize their utility, game theory is one of the best tools for solving this problem. In this paper, it is assumed that both FU and MUs prefer to work in hybrid access mode where both can maximize their utility. Therefore, it is reasonable to formulate the problem based on Stackelberg game theory.
The Stackelberg game is a strategic game that consists of two types of player: leaders and follower. Leaders select a strategy and act, while the followers will choose their strategy based on leaders' action. Since the leaders know the follower reaction, they select the best strategy that maximizes their benefits. In this paper the Stackelberg game proceeds in two steps. First, an FBS specifies the amount of bandwidth that intends to share with MUs while it is aware that its move will not only be seen by MUs, but also it will influence the decision of MUs. Thus, FBS determines optimum α to maximize its utility. In the next step, followers should obtain the leader's strategy, therefore, MUs specify their revenue to maximize their utility while considering FBS determination. This decision affects the other side of the game. So, the solution procedure can be described as follows:

•
Find the optimal value for revenue (m) and Lagrange multipliers based on α. • Derive the condition that U FBS can be a maximized point.

•
Find an optimal value for α by solving first order optimality solutions.

Macro Users' Payment
To solve the resource allocation problem, according to Stackelberg game theory method, a backward induction method is used [35]. First, the problem of having one unique Nash Equilibrium point is indicated where MUs have maximum utility. The problem described by (7) is a convex optimization problem. After solving this problem, FBS is able to specify the optimum value of α to maximize its utility. In order to solve this problem, we first prove that (7) is a convex.
Afterward, we find the optimal solution by solving first-order optimality conditions of underlying problem [33]. To this end, the Lagrangian of MUs utility can be derived as: where λ 0 and λ j are the Lagrange multiplier. Based on KKT condition, λ j should be equal to 0. To prove the convexity of macro users' utility in Lagrangian form, the second derivative on mi is calculated as: The second order derivative of L with respect to m i is always negative, so the problem in (10) is convex; hence, this function has a maximum. In order to solve the convex optimization problem, m * i should be obtained under Karush-Kuhn-Tucker (KKT) condition. With regard to this, each MU tries to achieve Nash Equilibrium because the best answer can maximize its utility, consequently, MUs compete with each other. Therefore, m * i is given by: In which: Because B is a dependent variable with respect to λ 0 , X and m * i also depend on λ 0 , λ 0 can be obtained from the above condition as: Appendix A provides detailed analytical discussion for derivation of (21). By putting λ 0 in B, X is obtained as follows: where X demonstrates overall revenue that FBS can get from MUs. Also, the value of parameter µ has a vital role in the allocation and price. This parameter both affects the sign of m * i and determines the strategy of allocation. At first, the condition that µ is acceptable should be obtained, then, how µ determines a strategy should be specified as well as each bandwidth assigning strategy. The condition that leads to turning the sign of m * i to a positive state is as follows: Based on the above condition, two proposed values for parameter µ are placed in this range. If µ = k is selected, the system can establish fairness among MUs. In this case, the ratio of assigned bandwidth to desired bandwidth is directly dependent on Z i , furthermore, all macro users pay the same revenue if the priority factor Z i is assumed to be one, i.e.,: On the other hand, if µ = √ Dw x , not only is the whole revenue, that FBS can get, maximized but also the utility of FBS reaches its maximum. Two other strategies are defined to compete with these proposed methods. The µ low is considered as the lower bound and µ up is the upper bound. If Z i is assumed equal to one, the system by selecting µ low deprives one of the macro users which needs minimum desired bandwidth from allocation, and the system promotes macro users requiring higher desired bandwidth. Also, choosing µ up removes MU with maximum desired bandwidth and promotes the macro user which needs less; this is not rational and useful for the system. In this case, if the allocated bandwidth is more than the desired bandwidth, system adjusts the assigned bandwidth to the desired one. Considering the analytical results of MUs payment, FBS can maximize its utility function based on revenue which was obtained from (22). A leader knows that its strategy will influence the follower's decision, so it specifies α * which maximizes its utility. Substituting (22) with (2), the utility function of FBS is expressed as: where . In order to find the optimum value of α * , first, the utility function of FBS that has a maximum point should be proved. Next, based on the first derivative, the maximum point will be obtained. The first and second derivatives of UFBS with respect to α are calculated as: When α > w 0 w f , the second derivative of UFBS with respect to α, is always negative, UFBS is concave in terms of α, so it has a maximum point. On the other side, when α < w 0 w f , the second derivative of UFBS with respect to α, is always positive, UFBS has a minimum. To further clarify the point, it is from the second derivative that the function falls down at first, then, it approaches the minimum point. Next, it goes up and reaches the maximum point of UFBS in α * and the function decreases again. When the following conditions are satisfied: Energies 2018, 11, 1635 9 of 18 the optimum α * by assigning the first derivative of UFBS to 0 can be found. In this case, there are a local minimum point α 1 and a maximum point α 2 which are obtained as follows: The optimal value should have two features: first, α * should satisfy criteria which are presented in (32) and the other feature is that α * should be a global maximum point in this criterion, so the optimum value should be on the interior range of domain: The local maximum α 2 should be a global maximum which is expressed as: When it can be easily proved that α 2 is the global maximum and U * FBS = U FBS (α 2 ). When η = aΩ f w f 4 , MUs provide maximum revenue for FBS. In this case, MUs motivate FBS to share more bandwidth and decrease α * . By substituting this value into (28), α * is obtained as If α * = 0, it means that FBS prefers to assign the whole bandwidth to MUs only and if α * = 1, the system allocates the desired bandwidth that FU desires, so the satisfaction parameter is equal to 1. The system does not assign more than the desired bandwidth to user. This causes the maximum value of α * to be less than 1. In other words, the system always works in hybrid access mode because it is not reasonable for the system to allocate greater bandwidth than the desired bandwidth to FU, i.e., closed access.

Simulation Results and Discussion
In this section, a system model which consists of one MBS and FBS is considered. In this case, it is assumed that one FU which is known as a home user is connected to FBS which is surrounded by k macro users. Also, MUs which are placed adjacent to FBS prefer to be connected to FBS instead of MBS; hence, the system is assumed to be in hybrid access mode, and the total available bandwidth is 50 MHz. For better results, Monte Carlo simulation is used, and all results are taken on average of 1000 times run. The simulation follows LTE specification. In order to clarify more how the game problem is solved backward, the solution procedure is demonstrated in Figure 1. In this flowchart, we should initialize the tuning parameters. Then the strategy index (µ) should be specified between the acceptable range (i.e., based on (23)). In the next step, both m and λ, should be calculated based on α. Since in the utility function of FBS all parameters are plugged in based on α. We can derive an optimal point by using the first derivative of it. Finally, when α * obtained, other variables can be calculated.
This paper could find specific λ 0 compared to [33], so it does not require to be iterative in order to converge to the best solution, and bandwidth allocation is done within a scheduled time unit. Moreover, we prove that the whole bandwidth which is assigned to MUs and FU is equal to whole FBS bandwidth. This is because of convex optimization used in the Stackelberg game. The allocated bandwidth depends on both the cost that MUs pay and the priority factor. Depending on the Z i of each MU, each user that has a higher priority factor has a better condition and gets more bandwidth. In this case, parameter µ determines the main strategy to assign bandwidth, and changing this parameter specifies how the system distributes the bandwidth among MUs while following the constraint expressed in (7).

Impact Number of Macro Users on System Performance with the Same Priority
In this section, k MUs are placed near FBS and their desired bandwidths are uniformly distributed between 12 and 18. The equivalent revenue parameter s  is considered one.
The proposed Stackelberg game theory with different s  is evaluated. Figure 2a, It is clear that by increasing the number of MUs, the competition between them increases and this results in an increase in the revenue. Increasing revenue motivates FBS to improve its source further. Figure 2c depicts the fact that for maximizing its utility, the system prefers sharing more The parameter µ has an important role in determining the bandwidth allocation and four µs are defined: µ opt , µ f air , µ low and µ up . In these terms, µ opt and µ f air are always placed between µ low and µ up . As mentioned above, µ opt means that if µ = µ opt , the system can obtain maximum revenue and this is the optimum value for FBS to maximize its utility. In this case, MUs which require less bandwidth suffer from more payment but obtain more reception to desired ratio of bandwidth. On the other hand, by choosing µ f air the system allocates its bandwidth based on MU merit which is expressed by Z i and if Z i = 1 for all MUs, the ratio of the allocated bandwidth to the desired one is equal for all. By doing so, the system can share its bandwidth fairly between all MUs. Choosing µ low and µ up leads to MUs with minimum and maximum of Z i w i to be removed from allocation, respectively.

Impact Number of Macro Users on System Performance with the Same Priority
In this section, k MUs are placed near FBS and their desired bandwidths are uniformly distributed between 12 and 18. The equivalent revenue parameter Ω s is considered one.
The proposed Stackelberg game theory with different µs is evaluated. Figure 2a,b depict the utility of FBS and the revenue which is based on the number of MUs. It is demonstrated that the system obtains maximum revenue and utility of FBS by choosing µ opt ; also, choosing µ f air causes the system performance to be optimum, so by choosing µ f air and µ opt , FBS utilities and revenues have an insignificant difference. Moreover, the system decreases the revenue and FBS utility by choosing µ low and µ up compared to two other methods, but it raises the average utility of MU. Although choosing µ low and µ up increases the average utility of macro user, choosing µ low causes to remove MU with minimum bandwidth and µ up removes the maximum one. reducing the importance of macro users. Although by choosing low  and up  the bandwidth that FBS prefers to assign to MUs is less than the other method, the competition decreases by removing one MU; hence, the total revenue decreases. In this case, the shared bandwidth has a little difference with the case when the system selects low  and up  but the overall revenue has more difference, so the average utility of MUs is higher than two other methods (Figure 2d).

Assignment of Bandwidth Based on Different Decision Rules
In this section, we investigate the way that communication system assigns its bandwidth according to different decision rules. In other words, the effect of different  amounts on the extent of resources going to be allocated to each MU is discussed. Five macro users are placed near FBS, their priority factors are the same and the desired bandwidths for them are generated from a normal distribution with mean 16 and standard deviation 8. To demonstrate the detail of assignment, one snapshot is sufficient. Figure 3a depicts the accuracy of the point mentioned above which expresses when the system works with fair  , the ratio of bandwidth allocation to the desired one for all macro users is the same if their priority factors are equal. In another aspect, when the system selects opt  , a macro user who needs less bandwidth is more satisfied. Also, macro users 5 and 2 show the case where an MU is less satisfied though it needs more bandwidth. It is clear that by increasing the number of MUs, the competition between them increases and this results in an increase in the revenue. Increasing revenue motivates FBS to improve its source further. Figure 2c depicts the fact that for maximizing its utility, the system prefers sharing more bandwidth rather than obtaining more revenue. As mentioned above, the system maximizes its revenue and utility by choosing µ opt , so this raising revenue leads to further sharing of the bandwidth in comparison to the time when the system selects µ low and µ up .
Obviously, there is a trade-off between U i and UFBS i.e., promoting FBS and its femto user, reducing the importance of macro users. Although by choosing µ low and µ up the bandwidth that FBS prefers to assign to MUs is less than the other method, the competition decreases by removing one MU; hence, the total revenue decreases. In this case, the shared bandwidth has a little difference with the case when the system selects µ low and µ up but the overall revenue has more difference, so the average utility of MUs is higher than two other methods (Figure 2d).

Assignment of Bandwidth Based on Different Decision Rules
In this section, we investigate the way that communication system assigns its bandwidth according to different decision rules. In other words, the effect of different µ amounts on the extent of resources going to be allocated to each MU is discussed. Five macro users are placed near FBS, their priority factors are the same and the desired bandwidths for them are generated from a normal distribution with mean 16 and standard deviation 8. To demonstrate the detail of assignment, one snapshot is sufficient. Figure 3a depicts the accuracy of the point mentioned above which expresses when the system works with µ f air , the ratio of bandwidth allocation to the desired one for all macro users is the same if their priority factors are equal. In another aspect, when the system selects µ opt , a macro user who needs less bandwidth is more satisfied. Also, macro users 5 and 2 show the case where an MU is less satisfied though it needs more bandwidth.
larger i i , so the second macro user obtains maximum ratio of bandwidth allocation to the desired one. As we mentioned before, when the system selects fare  , the system allocates bandwidth directly based on i Z , so we see the second MU has the maximum ratio of bandwidth allocation to the desired one, and it is higher than opt  . By choosing up  , the strategy changes completely and MU with minimum i i w Z promotes; hence, unlike three previous methods, the system assigns maximum ratio of bandwidth allocation to the desired bandwidth to the first MU and deprives the second from allocation. Figure 3c demonstrates the similar simulation result as Figure 3b because of the same reason mentioned above. opt  has the maximum utility of FBS as provided in the previous section, next fair  , low  and opt  have the maximum utility, respectively which is represented in Figure 3d.

Hybrid Access Model
In this section, three models of access consisted of hybrid access, open access and closed access are assumed. Hybrid access is the proposed algorithm expressed with four above strategies of allocation. Without any revenue, FBS does not tend to share its source with macro users but if FBS is forced to share its bandwidth, FBS sees MUs as FUs, so in this case, the system assigns its resources equally. In other words, all macro and femto users have the same ratio of allocated bandwidth to the In order to analyze the influence of the priority parameter on the system performance, simulation parameters are adjusted as follows: assume that five macro users are distributed around one FBS and one of them has a priority factor equal to 1. All macro users have the same bandwidth (w i = 15) and the other priority factors are uniformly distributed between 1 and 1.4. In addition, one snapshot is sufficient to demonstrate the details of allocation. Figure 3b depicts that when the system works with µ opt and µ low , it promotes MUs which have larger w i Z i , so the second macro user obtains maximum ratio of bandwidth allocation to the desired one. As we mentioned before, when the system selects µ f are , the system allocates bandwidth directly based on Z i , so we see the second MU has the maximum ratio of bandwidth allocation to the desired one, and it is higher than µ opt . By choosing µ up , the strategy changes completely and MU with minimum w i Z i promotes; hence, unlike three previous methods, the system assigns maximum ratio of bandwidth allocation to the desired bandwidth to the first MU and deprives the second from allocation. Figure 3c demonstrates the similar simulation result as Figure 3b because of the same reason mentioned above. µ opt has the maximum utility of FBS as provided in the previous section, next µ f air , µ low and µ opt have the maximum utility, respectively which is represented in Figure 3d.

Hybrid Access Model
In this section, three models of access consisted of hybrid access, open access and closed access are assumed. Hybrid access is the proposed algorithm expressed with four above strategies of allocation.
Without any revenue, FBS does not tend to share its source with macro users but if FBS is forced to share its bandwidth, FBS sees MUs as FUs, so in this case, the system assigns its resources equally. In other words, all macro and femto users have the same ratio of allocated bandwidth to the desired bandwidth. In closed access mode, the satisfaction factor of femto user is equal to 1 and the system does not share its bandwidth among other macro users.
The simulation parameters are considered as follows: three to 10 macro users are distributed around a FBS, and the desired bandwidths are uniformly distributed between 15 and 20 and the priority factor of them is equal to 1. For better conclusion, 1000 snapshots are recorded and then their average is expressed. Figure 4a depicts that when the system works in hybrid access mode, the utility of FBS is the highest and goes up along with the number of macro users because the system can get more revenue if the number of macro users increases. In the closed access, the number of macro users does not affect the utility of FBS while in open access mode because all users have the same satisfaction factor, by increasing the number of macro users α decreases which causes a decrease in the utility of FBS. The satisfaction factor of FU in closed access is constant and equal to 1; in hybrid access mode increasing the number of macro users leads to increased revenue, so the system prefers to share more bandwidth and decreases α and finally, in open access mode increasing the number of macro users results in a decrease in value of α due to the same reason which is expressed above (Figure 4b).
Energies 2018, 11, x FOR PEER REVIEW 13 of 18 desired bandwidth. In closed access mode, the satisfaction factor of femto user is equal to 1 and the system does not share its bandwidth among other macro users.
The simulation parameters are considered as follows: three to 10 macro users are distributed around a FBS, and the desired bandwidths are uniformly distributed between 15 and 20 and the priority factor of them is equal to 1. For better conclusion, 1000 snapshots are recorded and then their average is expressed. Figure 4a depicts that when the system works in hybrid access mode, the utility of FBS is the highest and goes up along with the number of macro users because the system can get more revenue if the number of macro users increases. In the closed access, the number of macro users does not affect the utility of FBS while in open access mode because all users have the same satisfaction factor, by increasing the number of macro users decreases which causes a decrease in the utility of FBS. The satisfaction factor of FU in closed access is constant and equal to 1; in hybrid access mode increasing the number of macro users leads to increased revenue, so the system prefers to share more bandwidth and decreases  and finally, in open access mode increasing the number of macro users results in a decrease in value of  due to the same reason which is expressed above (Figure 4b).   Figure 4d defines the summation of macro user's and FBS's utilities. Figure 4d shows that the social welfare in hybrid access mode is the highest and in open access mode, social welfare decreases if the number of macro users increases. Finally, closed access has constant and minimum social welfare.

The Impact of Interference on Hybrid Access
In this section, we consider that there are some FBSs and one macro user placed adjacent to them while it is far from the MBS. In such a case, the victim macro user not only suffers from poor coverage of MBS but also interference signal that coming from other femtocells make the situation worse. Since the MU prefers to switch from MBS to one of the FBS, we need to consider the impact of different interference on our problem. When the MU connect to one FBS, the MBS signal make interference. Also other femtocells that are work in the same frequency and time can make interference for MU. Based on our assumption, The SINR for the victim macro user is expressed as: where P i is the transmitted power from the connected FBS i and L i is the pathloss between FBS i and MU. P j and L j are the transmitted power from different FBSs and the pathloss between them and MU. P M and L M are the transmit power and path loss from MBS. δ 2 is the noise power [33].
In order to investigate the impact of interference on our problem. We consider one MU is placed in the coverage range of FBSs and far from MBS. Figure 5 demonstrates that MU is moving on the arrow and the distance between MU and each FBS is changing. MU should make a decision which FBS can provide a better condition and then connect it. The larger SINR is better quality for MU obviously. Also, the larger SINR for FBS means FBS should spend less amount of power to guarantee a good quality of service for MU. We can conclude SINR has a good index to be considered as priority parameter (Z i ). Based on the SINR, Z i are normalized between (0.7, 1.4). In this regard, by moving MU toward the arrow, Z i changes and it leads to have different utility function amount. Since MU should connect the best FBS, it connects to the FBS that provide a larger U i . The system parameters are summarized in Table 1, in which Z i and w i are the priority and desired vector for entire MUs that are connected to FBS 1 or FBS 2 . In the Figure 6a, the priority index is changed over the course of distance, and it is clear when the MU is closed to the connect FBS and has the most distance with the other FBS can obtain the most Z i . Since the priority index is obtain based on SINR, and the system discerption doesn't have influence on Z i , the both two priority curves are symmetric and exactly the same as each other. On the other hand, the MU prefers to connect to the FBS that has larger utility amount. Since the utility of victim MU depends on system parameters, the utility curve for each connection is different. Based on the Figure 6b, the MU prefers to switch to FBS 2 when it has 10.66-meter distance from the starting point.

Conclusions
In this paper, we proposed a Stackelberg game for optimal assignment of bandwidth to macro and femto users. The proposed method improves the efficiency of the femtocell communication network that can facilitate communications for a smarter electric grid. In our game, both macro-and femto users benefit from the proposed hybrid access schemes. To be more specific, macro users pay for their bandwidth. In this bandwidth allocation scheme, involves solving the KKT conditions for the underlying optimization problem to achieve optimal solution while ensuring the satisfaction of problem's constraints. Moreover, four strategies are studied for bandwidth allocation. Each strategy is designed to achieve a certain goal including; maximizing femtocell's utility, establishing fairness between macro users, disconnecting macro user with maximum desired bandwidth, promoting service for the macro user which requires minimum bandwidth and vice-versa. We have differentiated between macro users and designed our scheme so that the usage of some macro users is promoted to improve their satisfaction. Simulation results demonstrate that a system can choose the best strategy to rationally divide bandwidth between both macro users and femto users to optimize utility. In addition, numerical results illustrate that hybrid access mode leads to better social welfare compared with closed or open access modes. Specifically, in this case, macro users are willing to obtain more bandwidth while femto-base station is open to earning more revenue. Thus, this competition results in increasing revenue which motivates femto-base station to share more spectrum with macro users.

Conclusions
In this paper, we proposed a Stackelberg game for optimal assignment of bandwidth to macro and femto users. The proposed method improves the efficiency of the femtocell communication network that can facilitate communications for a smarter electric grid. In our game, both macro-and femto users benefit from the proposed hybrid access schemes. To be more specific, macro users pay for their bandwidth. In this bandwidth allocation scheme, involves solving the KKT conditions for the underlying optimization problem to achieve optimal solution while ensuring the satisfaction of problem's constraints. Moreover, four strategies are studied for bandwidth allocation. Each strategy is designed to achieve a certain goal including; maximizing femtocell's utility, establishing fairness between macro users, disconnecting macro user with maximum desired bandwidth, promoting service for the macro user which requires minimum bandwidth and vice-versa. We have differentiated between macro users and designed our scheme so that the usage of some macro users is promoted to improve their satisfaction. Simulation results demonstrate that a system can choose the best strategy to rationally divide bandwidth between both macro users and femto users to optimize utility. In addition, numerical results illustrate that hybrid access mode leads to better social welfare compared with closed or open access modes. Specifically, in this case, macro users are willing to obtain more bandwidth while femto-base station is open to earning more revenue. Thus, this competition results in increasing revenue which motivates femto-base station to share more spectrum with macro users.

Conclusions
In this paper, we proposed a Stackelberg game for optimal assignment of bandwidth to macro and femto users. The proposed method improves the efficiency of the femtocell communication network that can facilitate communications for a smarter electric grid. In our game, both macro-and femto users benefit from the proposed hybrid access schemes. To be more specific, macro users pay for their bandwidth. In this bandwidth allocation scheme, involves solving the KKT conditions for the underlying optimization problem to achieve optimal solution while ensuring the satisfaction of problem's constraints. Moreover, four strategies are studied for bandwidth allocation. Each strategy is designed to achieve a certain goal including; maximizing femtocell's utility, establishing fairness between macro users, disconnecting macro user with maximum desired bandwidth, promoting service for the macro user which requires minimum bandwidth and vice-versa. We have differentiated between macro users and designed our scheme so that the usage of some macro users is promoted to improve their satisfaction. Simulation results demonstrate that a system can choose the best strategy to rationally divide bandwidth between both macro users and femto users to optimize utility. In addition, numerical results illustrate that hybrid access mode leads to better social welfare compared with closed or open access modes. Specifically, in this case, macro users are willing to obtain more bandwidth while femto-base station is open to earning more revenue. Thus, this competition results in increasing revenue which motivates femto-base station to share more spectrum with macro users.