Abstract

Energy Internet (EI) is aimed at sustainable computing by integrating various energy forms into a highly flexible grid similar to the Internet. The network subsystems of EI connect different components to enable real-time monitoring, controlling, and management. In this paper, the spectrum allocation problem of the cognitive radio network for EI in a smart city is investigated. The network spectrum allocation with both heterogeneous primary operators and secondary users is formulated as the combinatorial auction problem and then is converted to a subset selection problem on a weighted bipartite graph. We propose a hybrid algorithm to solve the problem. Firstly, the proposed algorithm uses a constructive procedure based on the Kuhn-Munkres algorithm to obtain an initial solution. Then, a local search is used to improve the solution quality. In addition, the truthfulness of the auction is guaranteed by adopting a “Vickrey-like” mechanism. Simulation results show that the performance of the proposed algorithm is better than existing greedy algorithms in terms of the social welfare, seller revenue, buyer satisfaction ratio, and winning buyer ratio.

1. Introduction

The smart city is an innovation of the physical city with high integration of advanced monitoring, sensing, communication, and control technologies aimed at providing real-time, interactive, and intelligent urbanization services to end users [1]. To realize the smart city, Energy Internet is one of the key technologies. Energy Internet (EI) is aimed at sustainable computing by integrating various energy forms into a highly flexible grid similar to the Internet in the smart city [2]. A typical EI system for a smart city consists of three subsystems: energy subsystem, information subsystem, and network subsystem [3]. The network subsystems connect different devices of EI to enable real-time monitoring, controlling, and management [4, 5]. The devices in the network subsystem use wired or wireless technologies to establish direct transmission links between devices, such as D2D communication, WiMAX, cognitive radio (CR) network, and cellular network [6, 7]. These communication technologies are combined in EI to implement real-time monitoring of devices in a smart city [8, 9]. To improve the reliability and efficiency of device information communications in a smart city, the cognitive radio network spectrum allocation technology is required. Cognitive radio [10] technology has been introduced to increase transmission availability and efficiency. In a cognitive radio network, the secondary user can dynamically access the spectrum bands when the licensed primary users are not occupied according to the dynamic spectrum access technology. The dynamic spectrum access technology makes the primary wireless service providers not only satisfy their own spectrum requirement but also obtain additional profit by offering a free spectrum to the other secondary users. So it is vital to design a mechanism to encourage the primary spectrum operators to permit the secondary users to access the idle primary operators’ spectrum band and to enhance the spectrum availability and efficiency. While dynamic spectrum access is attractive, how to allocate the spectrum across multiple primary operators and secondary users is still an important open issue. The fact of the matter is to construct a mechanism that can effectively allocate the spectrum. There are many works that had been done about the dynamic spectrum allocation for the cognitive radio network with many tools such as game theory [11, 12] and contract theory [13]. Different from [12, 13], the dynamic spectrum access on auction is more suitable because of its economic incentive and joint consideration about the quality of service and statistical reference in the network. To achieve the economic incentive for the spectrum auction, the truthfulness, revenue, and utilization must be guaranteed. The truthfulness can make the bidders in the auction not benefit from their untrue valuation for the spectrum opportunity, the revenue can make the total amount of payment from all winning buyers in the auction maximized, and the utilization can make as many buyers as possible to reuse the spectrum. So the auction has been widely applied to the spectrum market.

In general, the spectrum auction mechanism includes online auction and periodical auction. The online auction is developed based on short intervals in the time domain and small areas in the space domain, while in the periodical auction, the spectrum is sold periodically by the primary operator and the intervals are relatively long. For the periodical auction, in [14], Gandhi et al. proposed a general centralized periodical auction framework for spectrum allocation in the cognitive radio network. In [15], the spectrum opportunity in a time-frequency division manner and the spectrum allocation mechanism on combinatorial auction are proposed. As for the online auction, Tehrani and Uysal proposed an auction-based spectrum trading method to maximize the total satisfaction of the secondary users and revenue of the wireless service provider in [16]. In [17], Yi et al. proposed an online spectrum auction framework for the cognitive radio network which considered the uncertain activities of primary users. To further improve the spatial reusability of the spectrum, Wang et al. proposed an online auction framework using a mixed graph for licensed shared access systems in [18]. Different from [18], group buying strategy is used to design the spectrum auctions to increase the buying power of small network providers in [19]. Considering the channels are heterogeneous, Khairulla and Chatterjee proposed an auction-based allocation algorithm in a distributed multichannel cognitive radio network in [20]. To satisfy the quality of service of user equipment in the specific network, Shen et al. proposed a spectrum sharing framework for the hybrid access in the two-tier macro-femtocell networks in [21]. Secondary spectrum auction taking communication constraints into account is studied in [22]. Yi and Cai introduced another spectrum auction framework among heterogeneous secondary users with various quality of service requirements for recall-based cognitive radio networks in [23].

To improve the fairness and efficiency of the online auction, another research topic for spectrum sharing is the double auction. Compared with the single auction on spectrum allocation, the double auction is more fair and effective because both buyers and sellers can submit bids to the central auctioneer. In [24], a truthful multichannel spectrum double auction framework is proposed. Considering the shared spectrum consists of a wide range of frequencies, a truthful double auction framework for a heterogeneous spectrum named TAMES is proposed in [25]. Assuming without the valuation distribution knowledge, a framework for spectrum double auction which jointly considers spectrum reusability, truthfulness, and profit maximization is designed in [26]. To ensure strategy-proof auction, Sun et al. proposed a multiunit double auction approach that guarantees the competitive fairness among buyers while remaining strategy-proof for spectrum allocation in [27]. Another spectrum allocation on double auction for explicitly decoupling the buyer-side and seller-side auction while achieving truthfulness, individual rationality, and budget balance is investigated in [28].

For both online auctions mentioned above, none of them takes both multiple multichannel primary operators and secondary users existing in the cognitive radio network into account. In [29], Zhou et al. firstly proposed a spectrum allocation framework on combinatorial auction and an approximation algorithm is presented. Another spectrum combinatorial auction framework for the scenario that each primary user has multiple channels to sell and each secondary user demands multiple channels is proposed in [30]. Assuming primary users possess heterogeneity and secondary users may request different types of spectrum bands, a spectrum combinatorial double auction and corresponding greedy allocation algorithm are proposed in [31].

Spectrum allocation for the cognitive radio network on both multiple multichannel primary users and secondary users is mostly based on combinatorial auction, because the combinatorial auction problem is NP-hard; most studies in the literature model the combinatorial auction as a multiple multidimensional knapsack problem or integer program problem, then use greedy algorithms to solve the problem and derive an approximate solution, but the quality of the solution is not good enough. In this paper, we focus on the spectrum auction problem with multiple heterogeneous primary operators and multiple secondary users in a smart city. Each primary operator in a smart city has multiple channels, and the channels have different widths (e.g., the channel width for a TV broadcast network is 6 MHz, and the channel width of a global system for mobile communications is 200 kHz). The secondary user in a smart city can dynamically access the different primary operators according to cognitive radio technology [32]. We also assume that each secondary user in a smart city has a different spectrum requirement, and it must request different channel numbers from multiple primary operators. So the spectrum allocation in a smart city can be formulated as a combinatorial auction problem because the secondary user bids a bundle of channels. To make the auction mechanism work efficiently, we firstly model the spectrum combinational auction problem in a smart city as a subset selection problem on the weighted bipartite graph; then, we design a hybrid algorithm which can run in a hybrid manner with high efficiency. Simulation results and comparison show that the efficiency of the proposed auction mechanism can be enhanced.

The key contributions of this paper can be summarized as follows: (i)We consider the spectrum allocation problem of the cognitive radio network for EI in a smart city. The spectrum combinational auction problem of the cognitive radio network with multiple heterogeneous primary operators and multiple secondary users is converted to a subset selection problem on a weighted bipartite graph(ii)We design a constructive procedure, which iteratively uses the Kuhn-Munkres (KM) algorithm [33, 34], to generate an initial solution. Then, a swap procedure and an interchange procedure are applied to improve the solution quality(iii)We design extensive experiments to verify the performance of the proposed auction mechanism. Social welfare, seller revenue, buyer satisfaction ratio, and winning buyer ratio have been carefully investigated. Simulation results show that the proposed algorithm can obtain higher allocation performance and efficiency for the cognitive radio network of EI in a smart city

The remainder of this paper is organized as follows. Section 2 formulates the spectrum allocation model and describes the framework with multiple heterogeneous primary operators and multiple secondary users in a smart city. Section 3 presents a hybrid spectrum allocation algorithm on a weighted bipartite graph model to obtain a good-quality allocation scheme. Section 4 gives the simulation results and comparisons. The concluding remarks are made in Section 5.

2. System Model

2.1. System Model

In this section, the spectrum allocation model and framework for the cognitive radio network for EI in a smart city are described in Figure 1. We consider a cognitive radio network of EI in a smart city [35] with secondary users (such as the neighborhood area network gateway) and primary operators. We also assume that the primary operators have a different number of channels, and the channel width of the primary operators is different. To share the spectrum between the primary operators and the secondary users, we assume that there exists a centralized control center that acts as the spectrum auctioneer which manages the spectrum allocation. In the auction, the primary operators act as the seller and the secondary users act as buyers; we also assume that the auctioneer is a nonprofit body which runs the auction, determines the winners, and allocates the spectrum to the secondary user.

Each primary operator owns a spectrum which serves its licensed users. When the spectrum is idle at a time, the primary operator would like to allow the secondary user to access the idle spectrum to earn extra profits. We assume that the auction is an online auction-based short interval in the time domain. Because the auctioned spectrum bandwidth of the primary operator is different, without loss of generality, we further assume that each primary operator’s ideal spectrum band is divided into a series of channels with identical channel bandwidth; thus, the number of channels may be different for each primary operator in terms of the different channel bandwidths, for example, 6 MHz for a TV band and 200 kHz for a global system band for mobile communication.

Assume that the secondary users in the system can request and obtain multiple channels from different primary users to satisfy their own bandwidth demand, but it is difficult for the secondary users to use multiple discontinuous spectrum bands from different primary operators; we assume that each secondary user can only access the spectrum band for the same primary operator. All secondary users in the system are not interfere-free because within the same communication range, one channel can only be accessed by secondary users at some specific time.

In order to describe the formulation and our spectrum combinational auction mechanism clearly, some notations are introduced. Let be the set of the primary operators and denote the number of channels owned by the th primary operator, where . Then, the set of primary operators in the auction channel in terms of quantity can be denoted as. Let be the channel’s bandwidth of the th primary operator. The vector represents the set of primary operators of the channel bandwidth.

Let be the set of secondary users; each secondary user has a spectrum bandwidth demand to satisfy its own quality of service. Let be the specific spectrum demand of the th secondary user. The secondary user’s valuation of its own spectrum demand is denoted as ; we also denote the , where the denotes the signal-to-noise ratio of the th secondary user, and we also assume that it is a constant during the auction interval. Letbe the bid price the secondary user is willing to pay for using the spectrum demand; thus, the bid price vector of the secondary user can be denoted as . We assume that the auction is the truthful auction; then, the bidding price is equal to the valuation price of the secondary user, i.e., .

For the reason that each secondary user can bid a bundle of channels for different primary operators, we can formulate the spectrum allocation as a combinational auction model. For each round of the auction, the auctioneer collects each primary operator channel number and channel bandwidth; it also collects each secondary user’s private spectrum bandwidth demand and bid price. Then, the auctioneer determines the optimal spectrum allocation according to these sealed bid information.

2.2. Problem Formulation

We assume that the primary operators and secondary users in the network subsystem can exchange the information with the auctioneer. After receiving the primary operator-submitted information, the auctioneer generates the channel bandwidth vector , the channel quantity of the primary operators, the specific spectrum demand vector , and the bid price vector .

Basing on the above bid information, the auctioneer executes the winner determination algorithm to maximize the utility of the seller, and thus, the allocation matrix can be achieved. The allocation matrix can be denoted by .

The element in the allocation matrix can be denoted by and can be defined as follows:

Since each secondary user can only acquire the specific spectrum demand from no more than one primary operator, the spectrum allocation constrained equation of the th secondary user can be written as follows:

Similarly, the primary operator spectrum is limited; thus, the requested spectrum chunk of all the secondary users cannot exceed the bandwidth the primary operator owns. So the spectrum bandwidth constraint of the th primary operator can be written as follows:

The objective of the spectrum combinational auction is to determine an optimal allocation matrix so that the social welfare is maximized. We can model the above problem as an optimization problem as follows:

The optimization problem with spectrum constrain condition must satisfy equations (1)–(3), and the optimization problem is known to be NP-hard [36].

2.3. Spectrum Auction Model on a Weighted Bipartite Graph

Due to the high complexity of solving the optimization problem, we propose a heuristic method to find good-quality allocation schemes. Existing greedy algorithms used the individual information to allocate the spectrum. In order to consider all information simultaneously, we use the weighted bipartite graph to model the considered spectrum combinational auction problem in a smart city.

Let be an undirected weighted bipartite graph, where is the vertex set and is the edge set. The vertex set consists of two disjoint subsets and . Each vertex in the set represents a secondary user, and each vertex in the set represents a primary operator. Each edge in the edge set is denoted by , where and ; the edge exists only if the vertex and the vertex satisfy the following equation:

If there exists an edge between the primary operator and the secondary user , the weight of is set as the secondary user’s bid price . So we have

Based on the above definition, we convert the spectrum combinatorial auction model to a weighted bipartite graph. The vertices of the graph are the primary operator and secondary user in the network. The edges between the primary operators and the secondary users exist only if the primary operators, which can satisfy the corresponding secondary user’s spectrum requirement, and the edges are constructed according to equation (5). The weights of the edges are set according to equation (6).

In fact, an edge subset represents a spectrum allocation scheme. If an edge is selected in , it means that primary operator allocates the spectrum chunk to secondary user . Otherwise, primary operator does not allocate the spectrum chunk to secondary user . An edge set is called feasible if its corresponding spectrum allocation scheme satisfies equations (2) and (3).

The objective of the spectrum allocation is to maximize the social welfare for allocating the spectrum to the secondary user. Maximizing the social welfare of the auction can be converted to finding a feasible edge set, such that the sum of the weights of the selected edges is maximized.

3. Spectrum Allocation Mechanism on a Weighted Bipartite Graph

In this section, we propose a hybrid spectrum auction mechanism by finding a feasible edge set of the weighted bipartite graph. The hybrid spectrum auction mechanism consists of two phases. In the first phase, a constructive procedure based on the well-known Kuhn-Munkres (KM) algorithm [33, 34] is used to generate a feasible edge set (i.e., an initial spectrum allocation scheme). Then, the initial spectrum allocation scheme is further improved by the local search procedure in the second phase. In the following subsection, we will give the detailed descriptions of the constructive procedure based on KM and the local search procedure and analyze the computational complexity and the auction properties of the mechanism.

3.1. The Constructive Procedure Based on KM

The existing greedy algorithm [30] used the individual information to generate a spectrum allocation scheme. In each iteration, only one secondary user obtained the spectrum. In this work, our proposed constructive procedure applies the KM to achieve global optimization efficiently and generate an initial spectrum auction scheme. Different from existing greedy algorithms, in each iteration of our constructive procedure, several secondary users are simultaneously allocated by global consideration. It enhances the efficiency of the allocation.

The pseudocode of the constructive procedure is given in Algorithm 1. After receiving all channel information and bid information, the constructive procedure firstly constructs the weighted bipartite graph , where . Note that the number of primary operators is usually smaller than the number of secondary users (i.e., ). In order to apply the KM, we add virtual vertices to for ensuring . Meanwhile, we add edges between each virtual vertex and each vertex in , and the weights of these adding edges are set to zero. The obtained graph is also denoted by . Let and be the selected edge set and the weight sum of the selected edges in , respectively.

Then, the proposed constructive procedure employs the KM to find a maximum perfect matching of . The obtained maximum perfect matching is an edge set which indicates a spectrum auction scheme. Add the obtained maximum perfect matching into . After adding the obtained maximum perfect matching, for each , the primary operator allocates the spectrum to the secondary users , and its surplus spectrum is calculated by . There may exist primary operators whose surplus spectrum exceeds the requested spectrum chunk of unallocated secondary users. In other words, after the above auction allocation, some primary operators may still have enough spectrum to provide to secondary users. A primary operator is called active if it can allocate the surplus spectrum chunk to at least one unallocated secondary user in the system. We update the graph as follows. First, we delete all edges with . Second, for each and , if equation (5) is satisfied, we add an edge into , and the weight of is set to . Finally, we remove all edges between the allocated secondary user and primary operator, which indicates that the allocated secondary user is not allowed to receive the spectrum again. Let be the number of active primary users. If , the constructive procedure executes the above process. Otherwise, if there is no active primary operator in the system, we stop the algorithm and return the selected edge set, which indicates an initial spectrum allocation scheme and its social welfare.

Require: input , , , , , .
Ensure: , and .
1: Construct the initial weighted bipartite graph , where .
2: Add virtual vertices and edges.
3: Initialize , .
4: repeat
5:  Find the maximum perfect matching by using the KM.
6:  Let , , and for each , update .
7:  Update graph .
8: until
9: RETURN , and

Figure 2 shows an example of the constructive procedure based on KM with and . The spectrum demand and the signal-to-noise ratio of secondary users (cognitive users) are set to and , respectively. The number of channels and the channel’s bandwidth of primary operators are set to and , respectively. The weighted bipartite graph is constructed by adding four virtual vertices in . The weights of the edges between the primary operator and the secondary user are set as . The weights of the edges between the virtual vertices and the secondary user are set to zero.

There are six active primary operators in the weighted bipartite graph, i.e., ; the KM algorithm is applied to find the maximum perfect matching. The secondary users with spectrum demand are allocated with a spectrum by primary operators with the channel’s bandwidth . After the first match, the primary operator with the channel’s bandwidth of sixteen has four channels remaining, and the primary operator with the channel’s bandwidth of twenty has eight channels remaining also. Therefore, the new weighted bipartite graph can be constructed. The number of active primary operators is , the KM algorithm is applied to find the maximum perfect matching, and finally the secondary users with spectrum demand are allocated with a spectrum by primary operators with the channel’s bandwidth . After the second match, the secondary users with spectrum demand are still not allocated. Because all the primary operators are not active, the constructive procedure on KM stops and we get the initial spectrum allocation.

3.2. Local Search Procedure

According to the execution of Algorithm 1, an initial spectrum allocation scheme is obtained. Although there are no primary operators that can directly allocate the spectrum to any secondary users in the system, the allocation is not the optimal allocation for the system because some of the primary operators also have some idle spectrum chunk. We propose a local search procedure, which integrates a swap procedure and an interchange procedure, to improve the solution quality.

The basic idea of the swap procedure is to swap the allocated spectrum chunk between the primary operators and make some primary operators get a bigger idle spectrum chunk. So it is possible for the primary operators with a bigger idle spectrum chunk to assign spectrum chunk to some unallocated secondary users.

Let be the number of secondary users which the primary operator has been allocated to and be the quantity of the spectrum chunk of the th secondary user in the array the primary user has been assigned to. To swap the allocated spectrum chunk, we also define the value of the swap flag as , where denotes that there exist primary operators swapping allocated secondary users. Variable records the status of the secondary user , where can be defined as follows:

At the beginning of the swap procedure, we first sort all the primary operators according to the surplus spectrum chunk quantity value in descending order; then, we swap the idle spectrum chunk between the sorted primary operators to make one of the primary operator idle spectrum chunk bigger. During the swap procedure, if the primary operator with a bigger idle spectrum chunk can be allocated to an unallocated secondary user, the primary operator allocates the spectrum to this unallocated secondary user to improve the social welfare. We iteratively implement the swap process until all primary operators have been checked. The swap procedure is presented in Algorithm 2.

1: Generate primary operator array according to the assigned secondary user.
2: Sort primary operator array on the surplus spectrum chunk in descending order.
3: set ; .
4: fordo
5:  fordo
6:   fordo
7:    ifthen
8:     Move secondary user in primary operator to the idle surplus spectrum of primary operator ; .
9:    else
10:    fordo
11:     ifthen
12:      break.
13:     else
14:      ifthen
15:       Swap allocated spectrum between secondary user in primary operator and secondary user in primary operator .
16:      end if
17:     end if
18:    end for
19:   end if
20:  end for
21:  Finding an unassigned secondary user with maximal bid price.
22:  ifthen
23:   , , .
24:  end if
25:  Sort the primary operator on the assigned spectrum chunk in descending order.
26: end for
27: if
28: .
29: end for

After the swap procedure, we use an interchange procedure to further improve the social welfare. The proposed interchange procedure uses the interchange of the allocated secondary user by some unallocated users set with higher bid price, so as to promote the total social welfare of the auction.

In order to describe the interchange procedure clearly, we introduce some notations. Let be the total value of some given secondary user set bid price, be the value of the temporary secondary user set, and be the number of the vector , respectively. represents the value of the spectrum quantity. The step of the interchange algorithm on local search can be presented as Algorithm 3.

1: Inherit the parameter value obtained from Algorithm 1 and Algorithm 2.
2: fordo
3: ifthen
4:  Set ; .
5:  Set ; .
6:  Set .
7:  fordo
8:   ifthen
9:    ; .
10:    ; .
11:    .
12:   end if
13:  end for
14:  ifthen
15:   fordo
16:    .
17:   end for
18:   ; .
19:   .
20:  end if
21: end if
22: end for
23: Return .
3.3. The Computational Complexity

We now analyze the computational complexity of the proposed spectrum auction mechanism. The proposed mechanism contains three main procedures: the constructive procedure, the swap procedure, and the interchange procedure. The computational complexity of the constructive procedure (Algorithm 1) is decided by the application of the KM. The computational complexity of the KM is . Since the KM is executed at most iterations in the constructive procedure, the computational complexity of the constructive procedure is bounded by . To find a bigger spectrum chunk for secondary users, the swap procedure (Algorithm 2) searches the idle spectrum chunk between all the primary operators. This operator takes time. If a bigger idle spectrum chunk is found, the swap procedure needs to find a secondary user for allocation. Hence, the swap procedure is bounded by . The interchange procedure (Algorithm 3) takes to further improve the social welfare. Therefore, the computational complexity of the proposed spectrum auction mechanism is bounded by .

3.4. The Payment Rule and Economic Properties

We propose the payment rule and the economic properties for the auction model. After executing the proposed algorithm, we adopt the payment of each winning secondary user; if secondary user was denied in the auction or , then its payment is zero. Otherwise, secondary user wins, and its payment is , where , represents the bid set of the secondary user that was denied in the auction, and denotes the bid bundle of the secondary user that won in the auction, and theandcan be calculated according to the following: bidblocksor not. We say the bid blocks if removing secondary user from the bidders’ set, all bids in can be granted.

[30] analyzed the economic properties of their auction model. Although our proposed spectrum auction mechanism is different from the mechanism in [30], we use the same payment rule. The results in [30] indicate that our auction model has incentive compatibility and individual rationality. Therefore, it guarantees that no secondary user can get a higher utility by bidding untruthfully and all true bidding for the secondary user can get nonnegative utilities in the proposed auction model.

4. Experiment

In this section, we evaluate the performance of the proposed spectrum auction mechanism of the cognitive radio network for EI in a smart city. We run the implementation in a Windows 7 system with Intel Core i5-3210M 2.5GHZ and 4GB memory. The program was written in C language and run in software C-Free 5. We also generate the scenario with heterogeneous primary operators (the channel bandwidth and the number of channels are different) and multiple secondary users with different spectrum demands in the cognitive radio network of EI in a smart city. For comparison purposes, the specific simulation parameters in this paper are similar to those in [30]. We also coded the spectrum allocation algorithm in [30] in C language and made comparisons between this spectrum allocation algorithm [30] and our proposed algorithm.

4.1. Experimental Setup

We assume that there are 100 secondary users randomly distributed in the network. All the primary operators are independent, and the number of channels of each primary operator is randomly selected in ; the channel bandwidth of each primary operator is also randomly selected in  MHz. In the same way, we also assume that the spectrum demand of each secondary user in the network is randomly chosen in  MHz, and the corresponding secondary users’ SNR for secondary user is randomly selected in ; the bid price of the secondary user is defined as , where is the spectrum demand of secondary users . We use the following performance metrics to evaluate the proposed auction model: (i)Social Welfare. The sum bid price of the secondary user in the auction.(ii)Seller Revenue. The sum of charged payments of all the winning secondary users in the auction.(iii)Buyer Satisfaction Ratio. The percentage of winning secondary user bids to the total demands.(iv)Winning Buyer Ratio. The percentage of the number of winning secondary users to the total number of secondary users.

4.2. Experimental Results
4.2.1. Fixed Network Size

Firstly, we evaluate the proposed algorithm performance with the number of primary operators is fixed to 50. The other network parameter is randomly generated as described in Section 4.1. The result generated under the greedy algorithm and the enhanced greedy algorithm in [30] is, respectively, denoted as the Greedy algorithm and Enhanced Greedy algorithm; the results of the social welfare, seller revenue, buyer satisfaction ratio, and winning buyer ratio for the different algorithms are compared on the value over 100 runs.

Figure 3 shows the computational results with respect to the social welfare when the number of different algorithm run indexes varies from 1 to 100. It can be clearly seen that the proposed algorithm is higher (average of 11.48% times) than the Greedy algorithm on the social welfare with different algorithm run indexes. The proposed algorithm is also higher (average of 1.23% times) than the Enhanced Greedy algorithm. The simulation result shows that the proposed algorithm is more efficient than the benchmark algorithms in terms of the social welfare.

Figure 4 shows the computational results with respect to the auction revenue when the number of different algorithm run indexes varies from 1 to 100. It can be clearly seen that the proposed algorithm is higher (average of 13.7% times) than the Greedy algorithm on the auction revenue with different algorithm run indexes. The proposed algorithm is also higher (average of 5.19% times) than the Enhanced Greedy algorithm. The simulation result shows that the proposed algorithm is more efficient than the benchmark algorithms in terms of the auction revenue.

Figure 5 shows the computational results with respect to the buyer satisfaction ratio when the number of different algorithm run indexes varies from 1 to 100. It can be clearly seen that the proposed algorithm is higher (average of 11.3% times) than the Greedy algorithm on the buyer satisfaction ratio with different algorithm run indexes. The proposed algorithm is also higher (average of 1.9% times) than the Enhanced Greedy algorithm. The simulation result shows that the proposed algorithm is more efficient than the benchmark algorithms in terms of the buyer satisfaction ratio.

Figure 6 shows the computational results with respect to the winning buyer ratio when the number of different algorithm run indexes varies from 1 to 100. It can be clearly seen that the proposed algorithm is higher (average of 15.99% times) than the Greedy algorithm on the winning buyer ratio with different algorithm run indexes. The proposed algorithm is also higher (average of 8.47% times) than the Enhanced Greedy algorithm. The simulation result shows that the proposed algorithm is more efficient than the benchmark algorithms in terms of the winning buyer ratio.

4.2.2. Varied Network Size

Secondly, we varied the number of primary operators from 5 to 50 to evaluate the proposed algorithm performance with different network sizes. The result also generated under the greedy algorithm and the enhanced greedy algorithm in [30] is, respectively, denoted as Greedy algorithm and Enhanced Greedy algorithm; the results of the social welfare, seller revenue, buyer satisfaction ratio, and winning buyer ratio for the different algorithms are compared on the average value over 1000 runs.

In Figure 7, the social welfare of different algorithms increases when the number of primary operators varies from 5 to 50. That is because more primary operators in the network can allocate more spectrum requirements for higher bid secondary users. When the number of primary operators varies from 5 to 50, the gap between the proposed algorithm and the Greedy algorithm increases, and the social welfare is varied from 2.96% to 11.03% times higher than the Greedy algorithm. Compared with the Enhanced Greedy algorithm, the proposed algorithm can achieve larger social welfare. Moreover, the social welfare of the proposed algorithm is about averagely 0.42% times higher than that of the Enhanced Greedy algorithm. From the simulation result, we can see that when the network size is small, the social welfare of the proposed algorithm is slightly larger than that of the two benchmark algorithms. When the number of the primary operator and secondary users is large, the social welfare of the proposed algorithm is more efficient than that of the benchmark algorithms.

Figure 8 shows the computational results with respect to the auction revenue. We can see clearly from Figure 8 that the auction revenue increases when the number of primary operators varies from 5 to 50. That is because the more primary operators in the network, the more spectrum requirements of secondary users can be satisfied. The proposed algorithm is 13.75% to 38.6% times higher than the Greedy algorithm on the auction revenue (average of 24.67%). The proposed algorithm is 4.89% to 25.31% times higher than the Enhanced Greedy algorithm (average of 13.08%). The simulation result shows that the proposed algorithm is more efficient than the benchmark algorithms in terms of the auction revenue.

Figure 9 lists the buyer satisfaction ratio obtained by three algorithms. In Figure 9, we can see that with the increase of primary operators, the buyer satisfaction ratio goes up. The buyer satisfaction ratio of the proposed algorithm is averagely 8.3% and 0.12% times higher than that of the Greedy algorithm and the Enhanced Greedy algorithm, respectively.

In Figure 10, we compare the winning buyer ratio achieved by our proposed algorithm with the two benchmark algorithms. We can see that with the increase of primary operators, the winning buyer ratio increases because more secondary users’ spectrum demands are satisfied. The proposed algorithm is averagely 47.79% times and 23.78% times higher than the Greedy algorithm and Enhanced Greedy algorithm on the winning buyer ratio, respectively. The proposed algorithm can allocate more secondary users because the demand and the bid price are globally considered.

Figure 11 shows the time of each run (the average value over 1000 runs) achieved by our proposed algorithm with the two benchmark algorithms. We can see the running time increases with primary operators increasing. That is because more primary operators in the network increase the computational complexity. Though the running time of the proposed algorithm is a few milliseconds than the two benchmark algorithms, the proposed algorithm achieves obviously higher social welfare, auction revenue, buyer satisfaction ratio, and winning buyer ratio than the two benchmark algorithms. The proposed algorithm can obtain higher allocation performance and efficiency for the cognitive radio network of EI in a smart city.

From the above observations, we can conclude that our proposed algorithm outperforms the two greedy algorithms in terms of the above four performance metrics. The proposed algorithm provides an efficient method to allocate the allocation spectrum resource in the cognitive radio system of EI for a smart city.

5. Conclusions

In this paper, we have proposed a novel spectrum combinatorial auction mechanism for the cognitive radio network of EI in a smart city with multiple heterogeneous primary spectrum operators and multiple secondary users. The proposed mechanism iteratively used the well-known KM to generate an initial allocation scheme. Then, a swap procedure and an interchange procedure were applied to further promote the spectrum allocation efficiency. The truthfulness was guaranteed by adopting a “Vickrey-like” mechanism. Simulation results show that the proposed auction mechanism can enhance the spectrum allocation efficiency of the cognitive radio network in a smart city in terms of the social welfare, seller revenue, buyer satisfaction ratio, and winning buyer ratio by comparing with the existing mechanism. As a future work, our hybrid spectrum auction mechanism can be extended to resource allocation problems in other networks of EI in a smart city.

Data Availability

No data were used to support this study.

Conflicts of Interest

The authors declare no conflict of interest.

Authors’ Contributions

The contributions of the authors involved in this study are as follows: conceptualization, H.F. and G.L.; methodology, G.L.; software, Z.Y.; validation, H.F., J.G., and Z.Y.; formal analysis, H.F.; investigation, H.F.; resources, J.G.; data curation, Z.Y.; writing–original draft preparation, H.F.; and writing–review and editing, G.L. All authors have read and agreed to the published version of the manuscript.

Acknowledgments

This research was supported partially by the National Natural Science Foundation of China (61163055), Fujian Natural Science Fund of China (No. 2016J05160), Technology Project of Fujian Province (JK2015040), and Technology Project of Minjiang University (MYK14008).