Matlab Projects

Matlab Projects

Share

Caters to the need of engineering oblivion and procurement of industrial projects as well as providi

11/04/2025

New MATLAB PROJECTS available

07/01/2024

B.Tech/ B.E. final year Matlab Projects available for all topics

b.tech

05/01/2024

B.Tech & B.E. students need Matlab Projects
Contact Matlab Projects team

Call now to connect with business.

04/01/2024

B.Tech Engineering projects available at a disconted rate.

07/01/2023

The next topic in focus shall be PID Control

24/12/2022

In genetic algorithm
After fitness score, next step is to do selection.
Let's consider Roulette wheel selection process.

In Roulette wheel, the circle area is divided in parts.
So let's consider a linear array instead of a circle to relate it with a circle.
Population is as follows
char Popn[11];
Popn[11] = { A, B, C, D, E, F, G, H, I, J};
Now the fitness score of the Popn is a numeric value:
int Fitscore[10] = {1, 1, 1, 2, 0, 0, 0, 3, 0, 1, 1};
here let's see the fitness sum
int fitsum = 10; // summed up the fitscore manually
next lets' review the area of roulette wheel in a linear array
char RW_Array[11] ={'A', 'B' , 'C', 'D','D', 'H','H','H','I','J'};
We see that 'H' has the maximum area and 'E','F','G' does not have any area as there fitness score is 0.
So if we play the wheel then lets see how and what Population is getting selected from the Roulette wheel array.
To do this generate a random number between index 0 to 9 for two trials to fetch two parents.
int i, r, Parent[2];
TRIAL 2;
for (i = 0; i < TRIAL; i++) {
r = random();
Parent[i] = r;
}
the two random numbers in parent will be index for Population Array.
// fetch the two parent
char Parent1, Parent2;
int index1, index2;
index1 = Parent[0];
index2 = Parent[1];
Parent1 = Popn[index1];
Parent2 = Popn[index2];
Hence the Roulette wheel has provided the two fit parents for reproduction stage.
Hope this post helps!!!

Want your school to be the top-listed School/college in Delhi?
Click here to claim your Sponsored Listing.

Category

Telephone

Address


D-58 Sector 2 Noida
Delhi
110025

Opening Hours

Monday 9am - 8pm
Tuesday 9am - 8pm
Wednesday 9am - 8pm
Thursday 9am - 8pm
Friday 9am - 8pm
Saturday 9am - 8pm
Sunday 9am - 8pm