Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this question is from my distributed system assignment , please give me the matlab coding from this algo, l want to do similation and check

this question is from my distributed system assignment ,please give me the matlab coding from this algo, l want to do similation and check the performance ...GA method
The optimization approach known as GA is frequently employed in complicated and massive systems to deter-
mine results near the optimal level. Consequently, GA is an excellent technique for training a neural network
model for learning. A standard GA is based on a population search method influenced by the process of natural
selection that relies on the concept of persistence of the healthiest ?40. GA's primary components are (a) chromo-
some, (b) selection process, (c) mutation process, (d) crossover, and (e) calculation and evaluation of fitness
function.
We start by arbitrarily initializing a population of chromosomes, which we typically consider as potential
alternatives to scheduling for any specific task. The allocation of activities to certain machines inside that chro-
mosome allows us to obtain a fitness value (Makespan), which is acquired. After receiving the initial population,
we assess each chromosome in the group according to its unique fitness value.
A smaller makespan is always desired to fine-tune the mapping. We use an allocation scheme that statistically
replicates a specific chromosome and eliminates others. At the same time, we discover that improved mappings
are more likely to be repeated in future generations. At the same time, the number of individuals stays constant
over each age. Algorithm 1 presents the working of the GA method ?41.
Input: Population set (Ps), Probability of Crossover (Cp), Probability of Mutation (Cm),
Output: Best chromosomes
The initialization of variables, i.e., Population, Population dimension vector (PVD)
Ps=[P1dotsdots.Pn] and PVD=[Pi1,dotsdotsdotsdotsPVD],
Initial Gen =1, Gen ?max: Maximum generation
While(Gen Gen ?max)//Repeat steps 3 to
Determine the fitness value by fitness function eq.(1)
3.1 Fitness =1MeanAbsoluteError
3.2 A Mean Absolute Error (MAE) can be calculated using equation 2.
MAE=1Ni=0N[|yi-zi|]
Where MAE is Mean Absolute Error, yi is the predicted and zi is the actual, and N is
the number of variables.
The average of MAE can be measured by eq (3).
MAE=1Ni=0N[|ei|]
Where |ei| : Input count can be calculated using equation 3.1.
|ei|=|yi-zi|
Determine best chromosome // call_Det_best_chro()
Select best chromosome // call_Sel_best_chro()
Determine Crossover // Crossover()
Determine mutation // mutation()
Return Best chromosomes
END
Algorithm 1 GA algorithm
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions