0% found this document useful (0 votes)
2 views1 page

Genetic Algorithm

The document describes the process of using a Genetic Algorithm (GA) for optimization, particularly in scheduling resources based on CPU and memory load. It outlines the steps involved, including reading instances, performing crossover and mutation, calculating fitness, and sorting the optimized instances. The output is a classified list of instances in descending order based on their optimization results.

Uploaded by

ppjadhav920
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Genetic Algorithm

The document describes the process of using a Genetic Algorithm (GA) for optimization, particularly in scheduling resources based on CPU and memory load. It outlines the steps involved, including reading instances, performing crossover and mutation, calculating fitness, and sorting the optimized instances. The output is a classified list of instances in descending order based on their optimization results.

Uploaded by

ppjadhav920
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Genetic Algorithm

Basically genetic algorithm has used for optimization purpose. Using GA we can optimized the
best resource during the scheduling. Required input for GA memory as well as CPU load. On the
basis of those parameters GA can optimize all VM’s dynamically.

Input: set of test instances which having own weight and label C[c[i]….c[n]] here is CPU load
an memory load

Output: Optimized and classified instance with descending order.

Step 1: Read each instance form pop


n
c=∑
k=0
( pop[k ])
❑ …….(1)

If(c%2==0) then cros[i]

Else cros[i]+1

NewCh[]=crossover(cros[i],cros[i+1])
n
Step 2: Nc=∑
j =0
( Newch[

j] )
…… (2)

AftMut[] = Mutate(Nc)

Step 3: Calculate fitness


n n
f (x)=∑ AftMut [i] ∑
i=0 j=0
( Train[

j] )
…… (3)

Step 4: Calculate Fitness

F [] =f(x)/ sum f(x) ….. (4)


Step 5: Sort Newpop with descending order

You might also like