Research Article Novel Web Service Selection Model...

7
Research Article Novel Web Service Selection Model Based on Discrete Group Search Jie Zhai, Zhiqing Shao, Yi Guo, and Haiteng Zhang Department of Computer Science and Engineering, East China University of Science and Technology, Shanghai 200237, China Correspondence should be addressed to Zhiqing Shao; [email protected] Received 2 March 2014; Accepted 11 March 2014; Published 15 April 2014 Academic Editor: Yu-Bo Yuan Copyright © 2014 Jie Zhai et al. is is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. In our earlier work, we present a novel formal method for the semiautomatic verification of specifications and for describing web service composition components by using abstract concepts. Aſter verification, the instantiations of components were selected to satisfy the complex service performance constraints. However, selecting an optimal instantiation, which comprises different candidate services for each generic service, from a large number of instantiations is difficult. erefore, we present a new evolutionary approach on the basis of the discrete group search service (D-GSS) model. With regard to obtaining the optimal multiconstraint instantiation of the complex component, the D-GSS model has competitive performance compared with other service selection models in terms of accuracy, efficiency, and ability to solve high-dimensional service composition component problems. We propose the cost function and the discrete group search optimizer (D-GSO) algorithm and study the convergence of the D-GSS model through verification and test cases. 1. Introduction We have proposed a novel approach for the verification of ser- vice composition with contracts [1]. e approach properties of the generic specification [2] in Tecton [3] are verified by the Violet [4] system. Aſter verification, a global optimum is selected from a number of instantiations of web service composition components with multiple QoS constraints. Compared with other algorithms that evaluate all feasible composition instantiations (e.g., integer programming [5]), evolutionary algorithms (EAs) (e.g., genetic algorithm [6]), which are nature-inspired optimization algorithms, are sim- ple and flexible. Given their characteristics, EAs have been used to solve the service selection problem. We proposed a novel optimization model named discrete group search ser- vice (D-GSS) that mainly employs the group search optimizer (GSO) algorithm [7]. e D-GSS model has competitive performance compared with other EAs in terms of accuracy, convergence speed, and ability to solve high-dimensional multimodal problems. On the basis that GSO can solve continuous optimization problems and that service selection can solve discrete instantiations, we present an evolutionary algorithm called discrete group search optimizer (D-GSO) to select the best instantiation that has the lowest cost evaluated by the cost function. e cost function consists of the utility function and the weight for every QoS attribute. We also verify and simulate results to analyze the convergence of the D-GSS model. e rest of the paper is organized as follows. Section 2 describes the D-GSS model. Section 3 presents a detailed introduction of the cost function, and Section 4 discusses the D-GSO algorithm and applies the algorithm for the problem on searching for the global optimum from discrete instantiations. Section 5 introduces the convergence anal- ysis of the D-GSS model. Finally, Section 6 concludes the paper. 2. Distribute Group Search Optimizer In this paper, we present a novel algorithm named D-GSS toward the atomic service selection of composing complex services with multiple QoS constraints. e population of the D-GSO algorithm is called a group searching for unknown optima in the services composition problem and each indi- vidual in the population is called a member. Hindawi Publishing Corporation e Scientific World Journal Volume 2014, Article ID 460593, 6 pages http://dx.doi.org/10.1155/2014/460593

Transcript of Research Article Novel Web Service Selection Model...

Page 1: Research Article Novel Web Service Selection Model …downloads.hindawi.com/journals/tswj/2014/460593.pdf ·  · 2015-11-22Research Article Novel Web Service Selection Model Based

Research ArticleNovel Web Service Selection Model Based onDiscrete Group Search

Jie Zhai, Zhiqing Shao, Yi Guo, and Haiteng Zhang

Department of Computer Science and Engineering, East China University of Science and Technology, Shanghai 200237, China

Correspondence should be addressed to Zhiqing Shao; [email protected]

Received 2 March 2014; Accepted 11 March 2014; Published 15 April 2014

Academic Editor: Yu-Bo Yuan

Copyright © 2014 Jie Zhai et al. This is an open access article distributed under the Creative Commons Attribution License, whichpermits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

In our earlier work, we present a novel formal method for the semiautomatic verification of specifications and for describing webservice composition components by using abstract concepts. After verification, the instantiations of components were selectedto satisfy the complex service performance constraints. However, selecting an optimal instantiation, which comprises differentcandidate services for each generic service, from a large number of instantiations is difficult. Therefore, we present a newevolutionary approach on the basis of the discrete group search service (D-GSS) model. With regard to obtaining the optimalmulticonstraint instantiation of the complex component, the D-GSS model has competitive performance compared with otherservice selection models in terms of accuracy, efficiency, and ability to solve high-dimensional service composition componentproblems. We propose the cost function and the discrete group search optimizer (D-GSO) algorithm and study the convergence ofthe D-GSS model through verification and test cases.

1. Introduction

Wehave proposed a novel approach for the verification of ser-vice composition with contracts [1]. The approach propertiesof the generic specification [2] in Tecton [3] are verified bythe Violet [4] system. After verification, a global optimumis selected from a number of instantiations of web servicecomposition components with multiple QoS constraints.Compared with other algorithms that evaluate all feasiblecomposition instantiations (e.g., integer programming [5]),evolutionary algorithms (EAs) (e.g., genetic algorithm [6]),which are nature-inspired optimization algorithms, are sim-ple and flexible. Given their characteristics, EAs have beenused to solve the service selection problem. We proposed anovel optimization model named discrete group search ser-vice (D-GSS) thatmainly employs the group search optimizer(GSO) algorithm [7]. The D-GSS model has competitiveperformance compared with other EAs in terms of accuracy,convergence speed, and ability to solve high-dimensionalmultimodal problems. On the basis that GSO can solvecontinuous optimization problems and that service selectioncan solve discrete instantiations, we present an evolutionaryalgorithm called discrete group search optimizer (D-GSO) to

select the best instantiation that has the lowest cost evaluatedby the cost function. The cost function consists of the utilityfunction and the weight for every QoS attribute. We alsoverify and simulate results to analyze the convergence of theD-GSS model.

The rest of the paper is organized as follows. Section 2describes the D-GSS model. Section 3 presents a detailedintroduction of the cost function, and Section 4 discussesthe D-GSO algorithm and applies the algorithm for theproblem on searching for the global optimum from discreteinstantiations. Section 5 introduces the convergence anal-ysis of the D-GSS model. Finally, Section 6 concludes thepaper.

2. Distribute Group Search Optimizer

In this paper, we present a novel algorithm named D-GSStoward the atomic service selection of composing complexservices with multiple QoS constraints.The population of theD-GSO algorithm is called a group searching for unknownoptima in the services composition problem and each indi-vidual in the population is called a member.

Hindawi Publishing Corporatione Scientific World JournalVolume 2014, Article ID 460593, 6 pageshttp://dx.doi.org/10.1155/2014/460593

Page 2: Research Article Novel Web Service Selection Model …downloads.hindawi.com/journals/tswj/2014/460593.pdf ·  · 2015-11-22Research Article Novel Web Service Selection Model Based

2 The Scientific World Journal

In the 𝑛-dimensional search space 𝐼 about compositioncomponent, every dimension represents a class of genericservice denoted as 𝐼

𝑖. The 𝑖th member 𝑋

𝑖in the space 𝐼 is

denoted as follows:

𝐼 = {𝐼1, 𝐼2, . . . , 𝐼

𝑛} ,

𝑋𝑖= {𝑥1

𝑖, 𝑥2

𝑖, . . . , 𝑥

𝑛

𝑖} ,

(1)

where 𝑥𝑗𝑖∈ 𝐼𝑗. The 𝑖th member 𝑋

𝑖at the 𝑘th iteration has

a current position 𝑋𝑘𝑖∈ 𝑅𝑛 and 𝑋𝑘

𝑖is corresponding to an

instantiation of services composition component.A head angle 𝜙𝑘

𝑖is the position of the member; 𝜙𝑘

𝑖=

(𝜙𝑘

𝑖1

, 𝜙𝑘

𝑖2

, . . . , 𝜙𝑘

𝑖(𝑛−1)

) ∈ 𝑅𝑛−1. The search direction of the 𝑖th

member, which is a unit vector 𝐷𝑘𝑖(𝜙𝑘

𝑖) = (𝑑

𝑘

𝑖1

, 𝑑𝑘

𝑖2

, . . . , 𝑑𝑘

𝑖𝑛

) ∈

𝑅𝑛 that can be calculated from 𝜙

𝑘

𝑖via a polar to Cartesian

coordinate transformation [7]:

𝑑𝑘

𝑖1

=

𝑛−1

𝑞=1

cos (𝜙𝑘𝑖𝑞

) ,

𝑑𝑘

𝑖𝑗

= sin (𝜙𝑘𝑖(𝑗−1)

) ⋅

𝑛−1

𝑞=1

cos (𝜙𝑘𝑖𝑞

) (𝑗 = 2, . . . , 𝑛 − 1) ,

𝑑𝑘

𝑖𝑛

= sin (𝜙𝑘𝑖(𝑛−1)

) .

(2)

In D-GSO based on GSO [7] inspired by animal behaviorand animal searching behavior, a group consists of three typesof members: only one producer is assumed to have the lowestcost at each searching bout, and the remaining members areassumed to be scroungers and dispersed members. At eachiteration, a group member representing the most promisinginstantiation and conferring the lowest fitness value is chosenas the producer. It then stops and scans the environment toseek optimal instantiation.The scanning field is characterizedby maximum pursuit angle 𝜃max and maximum pursuitdistance 𝑙max. The apex is the position of the producer. Allscroungers will join the resource found by the produceraccording to area copying strategy. The rest of the groupmembers will be dispersed from their current positions forrandomly distributed better instantiations. To handle thebounded search space, the following strategy is employed:when a member is outside the search space, the memberwill return into the search space by setting the variables thatviolated the bounds into their previous values.

The details of D-GSO (see Figure 1) are introduced asfollows.

(i) Suppose that 𝑛 classes of generic services exist in the𝑛-dimensional composition component; each classhas 𝑁

𝑖(1 ≤ 𝑖 ≤ 𝑛) candidate services in a special

sequence.(ii) Define the concrete cost function of the specific

composition component.The cost function is definedby the QoS attributes of the component servicesas well as their integration relationships, such assequential, parallel, conditional, or loop. Generate

initial members from all instantiations and evaluatethe members according to the cost function.

(iii) Choose a member with the lowest cost as producer.The producer produces on the basis of the discreteGSO algorithm.

(iv) Randomly select 80% of the remaining members toperform scrounging.

(v) The remaining members will be dispersed from theircurrent instantiations to perform ranging.

(vi) Evaluate all members according to the cost function.If no optimal instantiation with multiple QoS con-straints is found, reallocate the role of every memberon the value of the cost.

3. Cost Function

A “generic service” is a collection of atomic web serviceswith a common functionality, but different nonfunctionalproperties (e.g., time and quality). Each atomic service mayprovide a series of QoS parameters, such as service time,cost, reliability, and availability. Users can set the numberof QoS values to be considered and can set the weightsof the QoS values according to their requirements. In ourstudy, each user has 𝑘 QoS attribute constraints in their QoSrequirements: 𝑄

𝑐= [𝑄

1, . . . , 𝑄

𝑘]. We focus on the QoS

service selection problem, in which multiple QoS constraintsmust be satisfied. We present the cost function to help in theselection of the best services.The following steps are involvedin the creation of the cost function.

(i) Each QoS attribute must be quantitative. Servicefunctionalities can be evaluated by several QoS prop-erties. Some QoS attributes, for example, security andreliability, are difficult to measure quantitatively. Forthese criteria, we employ the linguistic expression set𝐿1 = {VP,MP,P,M,G,MG,VG}, where VP is verypoor, MP is medium poor, P is poor, M is medium,G is good, MG is medium good, and VG is verygood. When calculating the cost function, set 𝐿1 istransformed into the corresponding quantitative set𝑃1 = {0.15, 0.3, 0.45, 0.6, 0.75, 0.9, 1}.

(ii) Global QoS attributes (𝑞𝑐= [𝑞1, . . . , 𝑞

𝑘]) are needed

to describe the performance of an instantiation ofservice composition component. Every global QoSattribute is aggregated by the QoS attributes of allatomic services considering the integration relation-ships of the globalQoS attribute. Each service has fourmain basic structures: (1) the sequential structure,which represents 𝑛 services that are invoked one byone; (2) the loop structure, which represents oneservice that is repeated 𝑝 times; (3) the conditionalstructure, which represents only one branch thatis selected to be invoked from 𝑛 branches; (4) theparallel structure, which represents 𝑛 branches thatare invoked simultaneously. The complete structureof the service composition component consists ofthe above four basis structures. Every global QoS

Page 3: Research Article Novel Web Service Selection Model …downloads.hindawi.com/journals/tswj/2014/460593.pdf ·  · 2015-11-22Research Article Novel Web Service Selection Model Based

The Scientific World Journal 3

No

Output the optimal instantiation Xk

i

Yes

Describe every instantiation and generate initial members

Define the concrete cost function and evaluate the members

Choose a member as producer and it performs service producing

Choose scroungers and they perform service scrounging

Dispersed the rest members to perform service ranging

Evaluate members with the cost function

The optimal instantiationis found?

Figure 1: Flowchart of the D-GSS model.

Table 1: Aggregated methods for global QoS attributes.

Method Sequential Loop Choice Parallel

Summation𝑛

𝑖=1

𝑞𝑖

𝑝𝑞𝑖

𝑛

𝑖=1

𝑐𝑖𝑞𝑖

𝑛

𝑖=1

𝑞𝑖

Continued multiplication𝑛

𝑖=1

𝑞𝑖

𝑞𝑖

𝑛

𝑖=1

𝑐𝑖𝑞𝑖

𝑛

𝑖=1

𝑞𝑖

Average 1

𝑛

𝑛

𝑖=1

𝑞𝑖

𝑞𝑖

𝑛

𝑖=1

𝑐𝑖𝑞𝑖 1

𝑛

𝑛

𝑖=1

𝑞𝑖

attribute has its own aggregated method. We sortthe QoS aggregated methods into three types: (1)the summation method (e.g., cost), in which the feesmust be accumulated by the user to pay for invokingthe services; (2) the continuedmultiplication method(e.g., availability), in which global availability can becomputed as the product of the ratios of all atomicservice availability; (3) the average method (e.g.,reputation), in which global reputation is the averagevalue of the related service reputation. We present allparticulars (see Table 1) of these three methods withsequential, parallel, conditional, or loop structures. InTable 1, 𝑐𝑖 is a 0-1 variable. If condition 𝑐𝑖 is satisfied,then we define 𝑐𝑖 = 1; otherwise, 𝑐𝑖 = 0.

(iii) After the values of [𝑞1, . . . , 𝑞𝑘] and [𝑄1, . . . , 𝑄

𝑘] are

evaluated, we present a utility function to describe the

relationship between 𝑞𝑖 and𝑄𝑖. Two types of QoS cri-teria are available, that is, cost and benefit. In the costcriterion, variables (e.g., response time) with highervalues have lower qualities. In the benefit criterion,variables (e.g., availability) with higher values havehigher qualities. The utility function synthesizes thecost and benefit criteria.

Definition 1 (utility function). Suppose that a global QoSattribute 𝑞

𝑖(1 ≤ 𝑖 ≤ 𝑘) and its constraint 𝑄𝑖 of an

instantiation 𝑆𝑗 exist, the utility function is defined as follows:

𝑈(𝑞𝑗

𝑖, 𝑄𝑗

𝑖) =

{{{{{

{{{{{

{

𝑞𝑗

𝑖

𝑄𝑗

𝑖

, if 𝑞𝑗𝑖is the cost criterion,

2 −

𝑞𝑗

𝑖

𝑄𝑗

𝑖

, if 𝑞𝑗𝑖is the benefit criterion.

(3)

Page 4: Research Article Novel Web Service Selection Model …downloads.hindawi.com/journals/tswj/2014/460593.pdf ·  · 2015-11-22Research Article Novel Web Service Selection Model Based

4 The Scientific World Journal

If the global QoS attribute 𝑞𝑖 satisfies the requirementof the QoS constraint 𝑄𝑖, then 𝑈(𝑞

𝑗

𝑖, 𝑄𝑗

𝑖) ≤ 1; otherwise

𝑈(𝑞𝑗

𝑖, 𝑄𝑗

𝑖) > 1.

(iv) The cost function is based on the values of the utilityfunction and the weights the user defined. The betterthe instantiation is, the lower the quality of the costfunction result becomes.

Definition 2 (cost function). Suppose that an instantiation 𝑆𝑗

exists in the QoS attributes 𝑞𝑐= [𝑞𝑗

1, . . . , 𝑞

𝑗

𝑘], QoS constraints

𝑄𝑐= [𝑄𝑗

1, . . . , 𝑄

𝑗

𝑘], and the weights for each QoS attribute;

then the cost function is defined as follows:

𝐹 (𝑋𝑗, 𝑞𝑐, 𝑄𝑐) =

𝑘

𝑖=1

𝑤𝑗

𝑖𝑈(𝑞𝑗

𝑖, 𝑄𝑗

𝑖) , (4)

where ∑𝑘𝑖=1𝑤𝑗

𝑖= 1 and 𝑈(𝑞𝑗

𝑖, 𝑄𝑗

𝑖) ≤ 1 (1 ≤ 𝑖 ≤ 𝑘).

The objective of this paper is to employ D-GSO to get theoptimal solution of the following model:

min (𝐹 (𝑋𝑗)) =

𝑘

𝑖=1

𝑤𝑗

𝑖𝑈(𝑞𝑗

𝑖, 𝑄𝑗

𝑖) , (5)

where𝑋𝑗∈ 𝑅𝑛.

4. D-GSO Algorithm

The GSO algorithm [7] designs optimum searching strate-gies to solve continuous optimization problems. However,service selection is a discrete problem. Therefore, we presentan evolutionary algorithm named D-GSO that can handlecomposition components with discrete atomic services. Thesteps of the D-GSO algorithm are described in Algorithm 1.In the D-GSO algorithm, round(𝑥) represents a round func-tion for half adjust result. Suppose that sub𝑋ℎ

𝑖. represents

[1ℎ

𝑖, 2ℎ

𝑖, . . . , 𝑛

𝑖], which are the subscripts of atomic services

composing an instantiation 𝑋ℎ

𝑖about the 𝑖th member 𝑋

𝑖

at the ℎth iteration. At the (ℎ + 1) iteration, the trans-formation of the subscripts by the following formulas is[1ℎ+1

𝑖, 2ℎ+1

𝑖, . . . , 𝑛

ℎ+1

𝑖] relating to a new instantiation (see

Algorithm 1).

5. Convergence Analysis of the D-GSS Model

5.1. Convergence Verification. In this section, we verified theconvergence of the D-GSS model. After 𝑛 iterations, the bestinstantiation with the lowest cost can be determined withthe cooperation of the producer and some scroungers andrangers.

Lemma3. If𝑋 represents the space of all instantiations𝑋𝑘𝑖and

𝑃 represents the space of the producer, then 𝑋 = 𝑃.

Proof. (1) 𝑙max denotes the maximum distance between twopoints in space 𝑋. By using (3) to (6), we can equate space 𝑃

to a sphere that has center𝑋𝑝ℎpossessing sub(𝑋𝑝

ℎ) and radius

𝑙max. Thus,𝑋 ⊂ 𝑃.(2) The following strategy is employed by using the D-

GSS model: when a member in space 𝑃 is outside space 𝑋,the member will return into space 𝑋 by setting the variablesthat violated the bounds to their previous values. Therefore,𝑃 ⊂ 𝑋.

(3)Thus, we conclude that𝑋 = 𝑃.

Theorem 4. The costs of instantiations in the group willconverge to the global optimum that corresponds to the bestinstantiation with the lowest cost.

Proof. In the D-GSS model at the ℎth iteration,(1) the producer 𝑆𝑝 behaves according to (ii)–(iv) in

Algorithm 1. By applying the D-GSO algorithm, wecan derive the following:

cost (𝑋𝑝ℎ+1

)

= min (cost (𝑋𝑝ℎ) , cost (𝑋

𝑧) , cost (𝑋

𝑟) , cost (𝑋

𝑙)) ,

(6)

(2) the scroungers 𝑋𝑠

ℎ+1will approach the producer

through (vii) in Algorithm 1,(3) the rangers 𝑋𝑟

ℎ+1will disperse from a group to per-

form random walks via (viii) and (ix) in Algorithm 1to avoid entrapments in the local minima,

(4) finally, we calculate the costs of all instantiations in thegroup and reallocate their roles. The cost of the newproducer is shown as follows:

cost (𝑋𝑝ℎ+1

) = min (cost (𝑋𝑝ℎ+1

) , cost (𝑋𝑠ℎ+1

) , cost (𝑋𝑟ℎ+1

)) .

(7)

We conclude that cost(𝑋𝑝ℎ+1

) ≤ cost(𝑋𝑝ℎ) by using (6) and (7),

which means that the cost of the producer is monotonicallydecreasing. A global optimum, which has the lowest cost inall instantiations, exists. As stated in the proof of Lemma 3,𝑋 = 𝑃. Therefore, the infimum of cost(𝑋𝑝) is cost (globaloptimum); that is, after 𝑛 iterations, the instantiation 𝑋

𝑝

converges to the global optimum.

5.2. Simulation Convergence Results. The parameter settingof the D-GSS model is summarized as follows. 𝑀 classesof generic services are present in the complex compositioncomponent, in which each class has 50 candidate servicesthat has 10 QoS attributes. The service requestor provides 10QoS attribute constraints as well as the weights for each QoSattribute. Overall, 51 initial instantiations𝑋𝑖 with𝑈(𝑞𝑖

𝑡, 𝑄𝑖

𝑡) ≤

1 (1 ≤ 𝑡 ≤ 10) are selected at random in all instantiations.Theinitial head angle𝜙0 of each individual is set to (𝜋/4, . . . , 𝜋/4).The constant 𝑎 is given by round(√𝑛 + 1). The maximumpursuit angle 𝜃max is 𝜋/𝑎

2. The maximum turning angle 𝛼maxis set to 𝜃max/2. Suppose 𝑛 = 10, 100; the relations between thecost of the producer and the iteration times within 500 runsare shown in Figure 2.The experimental results show that thecost of the producer always converges to the optimum of thelow- or high-dimensional service composition component.

Page 5: Research Article Novel Web Service Selection Model …downloads.hindawi.com/journals/tswj/2014/460593.pdf ·  · 2015-11-22Research Article Novel Web Service Selection Model Based

The Scientific World Journal 5

Algorithm. D-GSO

Step 1.𝑁 classes of generic services are present in the composition component, where each class has𝑁𝑖(1 ≤ 𝑖 ≤ 𝑛)

candidate services. The maximum pursuit distance 𝑙max is calculated from the following equation:

𝑙max = √

𝑛

𝑖=1

𝑁2

𝑖, (i)

Each candidate service has 𝑘 QoS attributes, which are rearranged into [𝑞1des, . . . , 𝑞𝑘

des] according to the weights indescending sequence. The candidate services of generic service 𝐼

𝑖(1 ≤ 𝑖 ≤ 𝑛) are reordered into a set 𝐼order

𝑖= [𝑥0

𝑖, . . . , 𝑥

𝑁𝑖

𝑖]

with reference to 𝑞1des, . . . , 𝑞𝑘

des in turn.

Step 2. Set ℎ := 0;Randomly initialize 𝑟 instantiations𝑋

𝑖[𝑥1

𝑖, 𝑥2

𝑖, . . . , 𝑥

𝑛

𝑖] (1 ≤ 𝑖 ≤ 𝑟) with 𝑈(𝑞𝑖

𝑡, 𝑄𝑖

𝑡) ≤ 1 (1 ≤ 𝑡 ≤ 𝑘) of services composition

component and head angle 𝜙𝑖of all initial instantiations;

Calculate the values of initial instantiations according to the cost function;WHILE (the best instantiation is not found)

FOR (each instantiation𝑋𝑖 where 𝑈(𝑞𝑖𝑡, 𝑄𝑖

𝑡) ≤ 1 (1 ≤ 𝑡 ≤ 𝑘) in the group)

Choose the producer:Find the producer 𝑋𝑝 with the lowest cost in the group;

Perform producing:(a) The producer will scan at zero degree and then scan laterally by randomly sampling three instantiations in the scanning

field: one instantiation at zero degree, one instantiation in the right-hand side of the hypercube, and one instantiation in theleft-hand side of the hypercube. 𝑟

1∈ 𝑅1 is a normally distributed random number with mean 0 and standard deviation 1,

where as 𝑟2∈ 𝑅𝑛−1 is a uni-formly distributed random sequence in the range (0, 1);

sub (𝑋𝑧) = sub (𝑋𝑝

ℎ) + round(𝑟

1𝑙max𝐷

𝑝

ℎ(𝜙ℎ)), (ii)

sub (𝑋𝑟) = sub (𝑋𝑝

ℎ) + round(𝑟

1𝑙max𝐷

𝑝

ℎ(𝜙ℎ+ 𝑟2

𝜃max2

)), (iii)

sub (𝑋𝑙) = sub (𝑋𝑝

ℎ) + round(𝑟

1𝑙max𝐷

𝑝

ℎ(𝜙ℎ− 𝑟2

𝜃max2

)), (iv)

(b) The producer will find the best instantiation 𝑋𝑖 where 𝑈(𝑞𝑖𝑡, 𝑄𝑖

𝑡) ≤ 1 (1 ≤ 𝑡 ≤ 𝑘) with the lowest cost.

If the best instantiation has a lower cost compared with the current instantiation, then the best instantiationwill be chosen; otherwise, the current instantiation will remain and turn its head to a new randomly generated angle.𝛼max ∈ 𝑅

1 is the maximum turning angle;𝜙ℎ+1

= 𝜙ℎ+ 𝑟2𝛼max, (v)

(c) If the producer cannot find a better instantiation after 𝑎 iterations, then the producer will turn its head back to zero degree;𝜙ℎ+𝑎

= 𝜙ℎ, (vi)

Perform scrounging:Randomly select 80% members from the rest of the instantiations to perform scrounging.The area copying behavior of the 𝑖th scrounger can be modeled as a random walk toward the producer.In (vii), 𝑟

3∈ 𝑅𝑛 is a uniform random sequence in the range (0, 1);

sub (𝑋ℎ+1𝑖) = sub (𝑋ℎ

𝑖) + round (𝑟

3

∘(sub (𝑋ℎ

𝑝) − sub (𝑋ℎ

𝑖))), (vii)

Perform dispersion:The rest of the instantiations will be dispersed to perform ranging: (1) generate a random head angle by using (v); (2) choosea random distance 𝑙

𝑖from the Gauss distribution by using (viii); transform into the new instantiation by using (ix);

𝑙𝑖= 𝑎 ⋅ 𝑟

1𝑙max, (viii)

sub (𝑋ℎ+1𝑖) = sub (𝑋ℎ

𝑖) + round (𝑙

𝑖𝐷ℎ

𝑖(𝜙ℎ+1)). (ix)

Calculate fitness:Calculate the values of the current instantiations according to the cost function;

END FORSet ℎ := ℎ + 1;

ENDWHILE

Algorithm 1: Procedure for the D-GSO algorithm.

Page 6: Research Article Novel Web Service Selection Model …downloads.hindawi.com/journals/tswj/2014/460593.pdf ·  · 2015-11-22Research Article Novel Web Service Selection Model Based

6 The Scientific World Journal

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

0 100 200 300 400 500

Cos

t

Iteration times

n = 10

n = 100

D-GSS model

Figure 2: Convergence for 𝑛 = 10, 100.

The experiments were conducted on a PC with 2.50GHzIntel Processor and 8.0GB RAM. All programs were writtenand executed in Java. The operating system was MicrosoftWindows 7.

6. Conclusion

In this paper, we describe a new evolutionary approach formulticonstraints service selection on the basis of the D-GSS model. We propose the cost function and the D-GSOalgorithm for searching the global optimum from discreteinstantiations of the service composition component. Theconvergence of the D-GSS model is verified via severalformal proofs and simulations. This model has an outstand-ing advantage in terms of solving high-dimensional servicecomposition problems. In the future, we hope to searchfor the global optimum under a dynamic heterogeneousenvironment by using the D-GSS model.

Conflict of Interests

The authors declare that there is no conflict of interestsregarding the publication of this paper.

Acknowledgment

This work was supported by of the National Natural ScienceFoundation of China under Grant no. 61003126 and no.61300133.

References

[1] Z. Jie, S. Zhiqing, G. Yi, and Z. Haiteng, “Generic contract-regulated web service composition specification and verifica-tion,” in Proceedings of the International Conference on Informa-tion Technology and Software Engineering (ITSE ’12), vol. 3, pp.137–145, Beijing, China, 2012.

[2] Z. Jie and S. Zhiqing, “Specification and verification of genericweb service composition,” Computer Application and Software,vol. 28, no. 11, pp. 64–68, 2011.

[3] D. R. Musser and S. Zhiqing, “Concept use or concept refine-ment: an important distinction in building generic specifi-cations,” in Proceedings of the 4th International Conferenceon Formal Engineering Methods (ICFEM ’02), pp. 132–143,Shanghai, China, 2002.

[4] Z. Jie and S. Zhiqing, “The proof system based on tecton—violet,” Journal of East China University of Science and Technol-ogy, vol. 31, no. 2, pp. 198–202, 2005.

[5] L. Z. Zeng, B. Benatallah, A. H. H. Ngu, M. Dumas, J.Kalagnanam, and H. Chang, “QoS-aware middleware for Webservices composition,” IEEE Transactions on Software Engineer-ing, vol. 30, no. 5, pp. 311–327, 2004.

[6] G. Canfora, M. D. Penta, R. Esposito, and M. L. Villani, “Anapproach for QoS-aware service composition on algorithms,”in Proceedings of the Genetic and Evolutionary ComputationConference (GECCO ’05), pp. 1069–1075, Washington, DC,USA, June 2005.

[7] S.He,Q.H.Wu, and J. R. Saunders, “Group search optimizer: anoptimization algorithm inspired by animal searching behavior,”IEEE Transactions on Evolutionary Computation, vol. 13, no. 5,pp. 973–990, 2009.

Page 7: Research Article Novel Web Service Selection Model …downloads.hindawi.com/journals/tswj/2014/460593.pdf ·  · 2015-11-22Research Article Novel Web Service Selection Model Based

Submit your manuscripts athttp://www.hindawi.com

Computer Games Technology

International Journal of

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Distributed Sensor Networks

International Journal of

Advances in

FuzzySystems

Hindawi Publishing Corporationhttp://www.hindawi.com

Volume 2014

International Journal of

ReconfigurableComputing

Hindawi Publishing Corporation http://www.hindawi.com Volume 2014

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Applied Computational Intelligence and Soft Computing

 Advances in 

Artificial Intelligence

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Advances inSoftware EngineeringHindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Electrical and Computer Engineering

Journal of

Journal of

Computer Networks and Communications

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Hindawi Publishing Corporation

http://www.hindawi.com Volume 2014

Advances in

Multimedia

International Journal of

Biomedical Imaging

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

ArtificialNeural Systems

Advances in

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

RoboticsJournal of

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Computational Intelligence and Neuroscience

Industrial EngineeringJournal of

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Modelling & Simulation in EngineeringHindawi Publishing Corporation http://www.hindawi.com Volume 2014

The Scientific World JournalHindawi Publishing Corporation http://www.hindawi.com Volume 2014

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Human-ComputerInteraction

Advances in

Computer EngineeringAdvances in

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014