CN105282229A - Web service composition method based on improved QPSO algorithm - Google Patents

Web service composition method based on improved QPSO algorithm Download PDF

Info

Publication number
CN105282229A
CN105282229A CN201510577745.9A CN201510577745A CN105282229A CN 105282229 A CN105282229 A CN 105282229A CN 201510577745 A CN201510577745 A CN 201510577745A CN 105282229 A CN105282229 A CN 105282229A
Authority
CN
China
Prior art keywords
particle
web service
service
pbd
sigma
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510577745.9A
Other languages
Chinese (zh)
Other versions
CN105282229B (en
Inventor
王海艳
严骐
骆健
徐昱
朱振江
吴英强
汤涌泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Post and Telecommunication University
Nanjing University of Posts and Telecommunications
Original Assignee
Nanjing Post and Telecommunication University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Post and Telecommunication University filed Critical Nanjing Post and Telecommunication University
Priority to CN201510577745.9A priority Critical patent/CN105282229B/en
Publication of CN105282229A publication Critical patent/CN105282229A/en
Application granted granted Critical
Publication of CN105282229B publication Critical patent/CN105282229B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/004Artificial life, i.e. computing arrangements simulating life
    • G06N3/006Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Molecular Biology (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a web service composition method based on an improved QPSO algorithm. Based on the Web service task numbers, each task has ni (i=1, 2, 3.....m) candidate Web services having same service functions and different QoSs, the Web services are encoded at a fixed length based on the task numbers, the number of the services is shown in the description, services meeting user demands and constrained conditions can be found, and service instance numbers corresponding to particles are resolved based on the improved QPSO algorithm, namely, an optimum service sequence can be obtained, and a larger service function can be provided for the Web service composition. The iteration frequency for achieving an optimal solution is reduced and the practical significance for building complex composition services based on Internet is achieved.

Description

Based on the web service composition method improving QPSO algorithm
Technical field
The present invention relates to and solve Web service combination optimization problem, specifically a kind of web service composition method based on improving QPSO algorithm.
Background technology
Web service, as a kind of emerging Web application model, is a brand-new distributed computing platform.Single Web service function is limited, Web service combination (WebServiceComposition, WSC) by distribution loosely-coupled multiple Web service combination composite service of becoming to satisfy the demands on internet, while realizing software reuse, tissue is made to have the ability of " adjust to changed conditions, fast reaction ".WSC is subject to academia and business circles are extensively paid attention to, and emerges a large amount of WSC correlative studys.How dynamically existing Web service combination is got up to be formed new, that can meet different demand, value-added complex services and become new application demand and study hotspot.
Web service combination based on QoS (QualityofService) belongs to non-linear, Mixed Integer Multiple Goal Programming problem, needs the running time considering Web service, the factors such as service cost when Modling model.Service Combination Algorithm at present based on QoS mainly contains the method for exhaustion, linear programming technique, genetic algorithm, simulated annealing etc.Web service combination problem based on QoS belongs to np hard problem, although adopt the combined optimization method of limit can obtain optimal solution in theory, amount of calculation is very big, autgmentability is poor, Time and place expense is large; Nonlinear QoS attribute and constraints need be carried out linear transformation by linear programming technique, and the practicality of algorithm suffers restraints; Genetic algorithm local search ability is more weak, and convergence rate is slow, is easily absorbed in local optimum; Simulated annealing belongs to single-point optimizing on solution combinatorial optimization problem, does not have advantage to Web service combination problem.
Particle swarm optimization algorithm (ParticleSwarmOptimization, PSO) be a kind of global optimization approach, its basic thought be by individual in population between cooperation and information sharing find optimal solution, but the search volume of particle is a limited region, whole feasible space can not be covered, can not ensure to converge to globally optimal solution.2004, the people such as Sun proposed a kind of new PSO algorithm model from quantum-mechanical angle and improve standard P SO.This model, based on DELTA potential well, thinks that particle has quantum behavior, and proposes the particle swarm optimization algorithm (Quantum-behavedParticleSwarmOptimization, QPSO) based on quantum behavior according to this model.In vector subspace, particle is searched in whole solution space, and its global search performance is better than PSO algorithm, but the particle in population is easy to attracted by the best particle position of the current overall situation and quickly converge on a local optimum, causes precocity.
Summary of the invention
The object of the invention is by the improvement to QPSO algorithm, providing the web service composition method based on improving QPSO algorithm, to solve the Web service scheme more meeting user's request.
Based on the web service composition method improving QPSO algorithm, comprise the following steps,
Step 1, definition M particle, represent M bar service combination path;
Step 2, the dimension defining each particle are D, represent Web service combination number of tasks, the numbering of the corresponding a certain service of value of D;
Step 3, basis provide the QoS initialization particle position vector of service;
Step 4, QoS property parameters particle often being tieed up service substitute into the QoS computation model of Web service combination, calculate the polymerization QoS attribute that Web service combination is corresponding;
Step 5, employing improve the evolution that QPSO algorithm carries out particle;
Step 6, output form the optimal service of Services Composition.
Described Service Quality Metrics is that service execution time is less than 100s, and availability is greater than 0.8.
The detailed process of described step 5 is,
Step 51, initialization population, according to the random site of the fitness setting particle of particle, and the desired positions p of initialization particle experience i, all particles experience in population desired positions p gwith iterations t;
Step 52, according to current iteration number of times dynamic conditioning QPSO shrinkage expansion coefficient
β=(1-0.5)*(Maxiter-t)/Maxiter+0.5,
Its value is with iterations from 1.0 to 0.5 linear decrease, and wherein Maxiter represents maximum iteration time;
Boolean distance pbd under step 53, calculating current iteration number of times between each particle and global optimum's position particle i,g: pbd i,g, particle weights w i, with the weight average particle desired positions point mbest of boolean's distance weighting w;
Step 54, evolution equation according to population, generate new particle, and determine whether to upgrade p iand p g;
Whether step 55, the number of particles judging whether to reach maximum iteration time or generation equal the service plan number of user's request, namely generate enough number of particles, if then terminate to calculate, otherwise get back to step 52.
The concrete computational process of described step 53 is as follows, boolean's distance between particle
pbd i , j : pbd i , j = 1 D Σ d = 1 D i f f ( s i , d ≠ s j , d , 1 , 0 )
Wherein, i f f ( s i , d ≠ s j , d , 1 , 0 ) = 1 , s i , d ≠ s j , d 0 , s i , d = s j , d , S i,drepresent the value that i-th particle d ties up, S j,drepresent the
The value that j particle d ties up,
Then boolean's distance of particle and optimal location particle is expressed as:
pbd i , g : pbd i , g = 1 D Σ d = 1 D i f f ( s i , d ≠ s g , d , 1 , 0 )
Wherein S g, drepresent the value of optimal location particle d dimension,
Weight
w i = pbd i , g : pbd i , g Σ i = 1 M pbd i , g : pbd i , g
Weight average particle desired positions point
mbest w = 1 M Σ i = 1 M w i p i = ( 1 M Σ i = 1 M w i p i 1 , 1 M Σ i = 1 M w i p i 2 , ... 1 M Σ i = 1 M w i p i D ) .
Described step 54 detailed process is,
According to Evolution of Population equation wherein in [0,1] upper equally distributed random number, 1
≤ d≤D, generates new particle x id,
Ifrand(0,1)>0.5x id=p id-β*abs(mbest wd-x id)*ln(1/u)
Elsex id=p id+β*abs(mbest wd-x id)*ln(1/u)
If f is (x i) > f (p i) set up, then make p i=x i; If f is (p i) > f (p g) set up, then make p g=p i.
The optimal solution that the web service composition method that the present invention is based on the quanta particle algorithm of improvement is tried to achieve needs iterations less, and solving result is better, has realistic meaning to building the application of serving based on the complex combination of the Internet.
Accompanying drawing explanation
Fig. 1 is the flow chart of the QPSO algorithm improved;
Fig. 2 is the QoS computation model of the Web service combination of Web service combination order model and correspondence thereof;
Fig. 3 solves flow chart based on the Web service combination improving QPSO algorithm.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Suppose have m task jointly to provide certain service function, each task has n icandidate's Web service that (i=1,2,3......m) identical QoS of individual service function is different is available, fixes, by its block code, have according to Web service combination number of tasks plant service, find out the service of meeting consumers' demand with constraints, according to the particle that the QPSO algorithm improved is obtained, corresponding Service Instance is numbered, and can obtain optimal service sequence.
Adopt the web service composition method based on improving QPSO algorithm, as shown in Figure 3, step is as follows,
Step 1): define M particle, represent the service combination path that M kind is possible, population scale is M.
Step 2): the dimension defining each particle is D, represents Web service combination number of tasks, adopts integer block code mode, and the numbering of the corresponding a certain Service Instance of this dimension values, then a solution of Web service combination uses particle x i=(x 1i, x 2i... x di) represent, a Web service combination solution is x=(w herein 12, w 24, w 36... w d7).
Step 3): in the scheme of kind, Stochastic choice meets the M bar combinatorial path initialization particle position vector of Service Quality Metrics, and Service Quality Metrics can be that service execution time is less than 100s, and availability is greater than 0.8.
Step 4): use Web service combination QoS computation model as shown in Figure 2, calculate the polymerization QoS property value that Web service combination is corresponding, the time of implementation D () of such as Web service combination, Executing Cost P (), success rate R l(), availability A (), reputation degree R e() etc., the fitness f (x that each particle is corresponding i), this method both can be the Services Composition improving QPSO algorithm based on single QoS attribute, also can be the Services Composition that many QoS attribute improves QPSO algorithm, if many QoS attribute solves Web service combination problem tries to achieve every bar combinatorial path Integrated Services Quality function by weighting method, standardized transformation is carried out to attribute vector, be worth larger, represent that QoS attribute corresponding to Web service is better.
Step 5): the individual local extremum p of particle iequal its initial position value, p gequal the top-quality particle vector value of QoS in M primary vector, iterations t=1.
Step 6): calculate QPSO shrinkage expansion factor beta=(1-0.5) * (Maxiter-t)/Maxiter+0.5.
Step 7): under calculating this iterations, p iwith p gboolean's distance particle weights
w i = pbd i , g : pbd i , g Σ i = 1 M pbd i , g : pbd i , g ,
Weight average particle desired positions point
mbest w = Σ i = 1 M w i p i = ( Σ i = 1 M w i p i 1 , Σ i = 1 M w i p i 2 , ... Σ i = 1 M w i p i D ) .
Step 8): according to wherein be in [0,1] upper equally distributed random number, generate new particle representation formula as follows:
Ifrand(0,1)>0.5x id=p id-β*abs(mbest wd-x id)*ln(1/u)
Elsex id=p id+β*abs(mbest wd-x id)*ln(1/u)
If f is (x i) > f (p i) set up, then p i=x icarry out p ithe renewal of value, if relational expression f is (p i) > f (p g) set up, then p g=p icarry out p gthe renewal of value;
Step 9): make t=t+1, judge whether to reach maximum iteration time Maxiter or generate enough number of particles, if meet, forward step 10 to), do not meet and then forward step 6 to);
Step 10): according to the particle of trying to achieve, export the optimal service scheme forming Services Composition according to coding.

Claims (5)

1., based on the web service composition method improving QPSO algorithm, it is characterized in that: comprise the following steps,
Step 1, definition M particle, represent M bar service combination path;
Step 2, the dimension defining each particle are D, represent Web service combination number of tasks, the numbering of the corresponding a certain service of value of D;
Step 3, basis provide the QoS initialization particle position vector of service;
Step 4, QoS property parameters particle often being tieed up service substitute into the QoS computation model of Web service combination, calculate the polymerization QoS attribute that Web service combination is corresponding;
Step 5, employing improve the evolution that QPSO algorithm carries out particle;
Step 6, output form the optimal service of Services Composition.
2. the web service composition method based on improving QPSO algorithm according to claim 1, is characterized in that: Service Quality Metrics described in step 3 is that service execution time is less than 100s, and availability is greater than 0.8.
3. the web service composition method based on improving QPSO algorithm according to claim 1, is characterized in that: the detailed process of described step 5 is,
Step 51, initialization population, according to the random site of the fitness setting particle of particle, and the desired positions p of initialization particle experience i, all particles experience in population desired positions p gwith iterations t;
Step 52, according to current iteration number of times dynamic conditioning QPSO shrinkage expansion coefficient
β=(1-0.5)*(Maxiter-t)/Maxiter+0.5,
Its value is with iterations from 1.0 to 0.5 linear decrease, and wherein Maxiter represents maximum iteration time;
Boolean distance pbd under step 53, calculating current iteration number of times between each particle and global optimum's position particle i,g: pbd i,g, particle weights w i, with the weight average particle desired positions point mbest of boolean's distance weighting w;
Step 54, generate new particle according to Evolution of Population equation, and determine whether to upgrade p iand p g;
Whether step 55, the number of particles judging whether to reach maximum iteration time or generation equal the service plan number of user's request, namely generate enough number of particles, if then terminate to calculate, otherwise get back to step 52.
4. the web service composition method based on improving QPSO algorithm according to claim 3, is characterized in that: the concrete computational process of described step 53 is as follows, boolean's distance between particle
pbd i , j : pbd i , j = 1 D Σ d = 1 D i f f ( s i , d ≠ s j , d , 1 , 0 )
Wherein, i f f ( s i , d ≠ s j , d , 1 , 0 ) = 1 , s i , d ≠ s j , d 0 , s i , d = s j , d , S i,drepresent the value that i-th particle d ties up, S j,drepresent the value that a jth particle d ties up,
Then boolean's distance of particle and optimal location particle is expressed as:
pbd i , g : pbd i , g = 1 D Σ d = 1 D i f f ( s i , d ≠ s g , d , 1 , 0 )
Wherein S g, drepresent the value of optimal location particle d dimension,
Weight
w i = pbd i , g : pbd i , g Σ i = 1 M pbd i , g : pbd i , g
Weight average particle desired positions point
mbest w = 1 M Σ i = 1 M w i p i = ( 1 M Σ i = 1 M w i p i 1 , 1 M Σ i = 1 M w i p i 2 , ... 1 M Σ i = 1 M w i p i D ) .
5. the web service composition method based on improving QPSO algorithm according to claim 3, it is characterized in that, described step 54 detailed process is,
According to Evolution of Population equation wherein that 1≤d≤D, generates new particle x in [0,1] upper equally distributed random number id,
Ifrand(0,1)>0.5x id=p id-β*abs(mbest wd-x id)*ln(1/u)
Elsex id=p id+β*abs(mbest wd-x id)*ln(1/u)
If f is (x i) > f (p i) set up, then make p i=x i; If f is (p i) > f (p g) set up, then make p g=p i.
CN201510577745.9A 2015-09-11 2015-09-11 The web service composition method for the particle swarm optimization algorithm for being based on improvement sub-line Active CN105282229B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510577745.9A CN105282229B (en) 2015-09-11 2015-09-11 The web service composition method for the particle swarm optimization algorithm for being based on improvement sub-line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510577745.9A CN105282229B (en) 2015-09-11 2015-09-11 The web service composition method for the particle swarm optimization algorithm for being based on improvement sub-line

Publications (2)

Publication Number Publication Date
CN105282229A true CN105282229A (en) 2016-01-27
CN105282229B CN105282229B (en) 2018-04-20

Family

ID=55150534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510577745.9A Active CN105282229B (en) 2015-09-11 2015-09-11 The web service composition method for the particle swarm optimization algorithm for being based on improvement sub-line

Country Status (1)

Country Link
CN (1) CN105282229B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071028A (en) * 2017-04-19 2017-08-18 上海天玑科技股份有限公司 The third party's IT method for service selection perceived based on discrete group hunting and QoS
CN108512707A (en) * 2018-04-18 2018-09-07 南京邮电大学 The parameter adaptive microhabitat differential evolution method of Web service combination
CN112733999A (en) * 2021-01-19 2021-04-30 昆明理工大学 Service mode construction method based on self-error correction mechanism particle swarm optimization algorithm
CN113887691A (en) * 2021-08-24 2022-01-04 杭州电子科技大学 Whale evolution system and method for service combination problem

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101790251A (en) * 2010-01-13 2010-07-28 北京邮电大学 Wireless sensor node alliance generating method based on improved particle swarm optimization algorithm
CN103260179A (en) * 2013-05-23 2013-08-21 重庆理工大学 QPSO self-correcting locating method based on ZigBee
CN104601565A (en) * 2015-01-07 2015-05-06 天津理工大学 Network intrusion detection classification method of intelligent optimization rules

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101790251A (en) * 2010-01-13 2010-07-28 北京邮电大学 Wireless sensor node alliance generating method based on improved particle swarm optimization algorithm
CN103260179A (en) * 2013-05-23 2013-08-21 重庆理工大学 QPSO self-correcting locating method based on ZigBee
CN104601565A (en) * 2015-01-07 2015-05-06 天津理工大学 Network intrusion detection classification method of intelligent optimization rules

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王创伟,汤克明: "基于量子粒子群优化算法的Web服务组合问题", 《成都大学学报(自然科学版)》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071028A (en) * 2017-04-19 2017-08-18 上海天玑科技股份有限公司 The third party's IT method for service selection perceived based on discrete group hunting and QoS
CN107071028B (en) * 2017-04-19 2020-07-24 上海天玑科技股份有限公司 Third-party IT service selection method based on discrete group search and QoS (quality of service) perception
CN108512707A (en) * 2018-04-18 2018-09-07 南京邮电大学 The parameter adaptive microhabitat differential evolution method of Web service combination
CN112733999A (en) * 2021-01-19 2021-04-30 昆明理工大学 Service mode construction method based on self-error correction mechanism particle swarm optimization algorithm
CN112733999B (en) * 2021-01-19 2023-03-21 昆明理工大学 Service mode construction method based on self-error correction mechanism particle swarm optimization algorithm
CN113887691A (en) * 2021-08-24 2022-01-04 杭州电子科技大学 Whale evolution system and method for service combination problem

Also Published As

Publication number Publication date
CN105282229B (en) 2018-04-20

Similar Documents

Publication Publication Date Title
Xia et al. Simplex quantum-behaved particle swarm optimization algorithm with application to ecological operation of cascade hydropower reservoirs
CN105282229A (en) Web service composition method based on improved QPSO algorithm
CN103034766B (en) A kind of laying angular direction of definite Test of Laminate Composites and the method for thickness
CN102999678B (en) Nonlinear multi-target range robust optimization based automobile noise reduction method
CN104283946A (en) Resource self-adaptive adjusting system and method of multiple virtual machines under single physical machine
CN105243438A (en) Multi-year regulating storage reservoir optimal scheduling method considering runoff uncertainty
CN104932938A (en) Cloud resource scheduling method based on genetic algorithm
CN104462861B (en) A kind of reservoir operation decision-making technique synthesized based on regulation o f reservoir operation
CN102262692B (en) Method for optimizing skins of airplane airfoil by subsonic flutter
CN101866143B (en) Road traffic service level prediction method based on space-time characteristic aggregation
CN104516785A (en) Cloud computing resource scheduling system and method
CN104899431A (en) LSSVM fluctuating wind speed prediction method based on integration of ant colony and particle swarm
CN103106256A (en) Gray model (GM) (1,1) prediction method of orthogonal interpolation based on Markov chain
CN104965954B (en) A kind of step load economical distribution method based on the modeling of omnicharacteristic space curved surface
CN109193807A (en) A kind of Economic Dispatch method and system
Duan et al. Heuristic algorithms for the inverse mixed integer linear programming problem
Reddy et al. Performance evaluation of elitist-mutated multi-objective particle swarm optimization for integrated water resources management
CN103116698A (en) GM (1, 1) model prediction method based on cubic spline
CN109118120A (en) Consider the Multiobjective Decision Making Method of Reservoir Operation Scheme Substantial evaluation
CN107341277A (en) Parameter Fitting Method and Parameter Fitting System Based on Particle Swarm Optimization Algorithm
CN110334851B (en) Hybrid cascade reservoir combined flood control optimal scheduling method considering branch flood storage civil application
He et al. Study on guaranteed output constraints in the long term joint optimal scheduling for the hydropower station group
CN107392460A (en) A kind of acquisition methods of multi-reservoir Multiobjective Scheduling risk analysis optimal equalization solution
CN103324821A (en) GM (1, 1) model prediction method based on combined interpolation
CN102063525A (en) Method for generating practical multidisciplinary design optimization model automatically

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant