
96 Dynamic Workflow Application Scheduling with Quality of Service
29 new
chromosomes [ b e s t c o u n t+j ] . s o l u t i o n [ k]=
temp
chromosome 2 . s o l u t i o n [ k ] ;
e l s e g e n e r a t e
n e w or d e r ( new chromosomes [ b e s t c o u n t+j ] ) ;
}
fo r ( j =0; j <p o p u l a t i o n
s i z e ; j ++) {// app l y m utati on w i t h a
s m a l l p r o b a b i l i t y
i f ( ( f l o a t ) random ( ) /RAND
MAX<MUT THRESHOLD) {
34 t
i n d e x=rand om ( ) %|T | ;
new
chromosomes [ j ] . s o l u t i o n [ t i n d e x ]=random ( ) %|S
t
index
| ;
}
i f ( ( f l o a t ) random ( ) /RAND
MAX<MUT THRESHOLD2)
g e n e r a t e
n e w or d e r ( new chromosomes [ j ]