Answered step by step
Verified Expert Solution
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 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 finetune 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 presents the working of the GA method
Input: Population set Ps Probability of Crossover Cp Probability of Mutation Cm
Output: Best chromosomes
The initialization of variables, ie Population, Population dimension vector
dotsdots. and
Initial Gen Gen : Maximum generation
WhileGen Gen Repeat steps to
Determine the fitness value by fitness function eq
Fitness
A Mean Absolute Error MAE can be calculated using equation
MAE
Where MAE is Mean Absolute Error, is the predicted and is the actual, and is
the number of variables.
The average of MAE can be measured by eq
MAE
Where : Input count can be calculated using equation
Determine best chromosome callDetbestchro
Select best chromosome callSelbestchro
Determine Crossover Crossover
Determine mutation mutation
Return Best chromosomes
END
Algorithm GA algorithm
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started