Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

the program must be in C language what information do you need ? this is the question !!! ---------------------------------------- the question is to write a

the program must be in C language

image text in transcribed

what information do you need ? this is the question !!!

----------------------------------------

the question is to write a Genetic Algorithm program with the requirement attached in the posted question.

population size 8

Crossover probability 100

Mutation Prob. 3

do this over and over until the average candidates is =>29 stop

Program a Genetic Algorithm to find an integer number between 0 and 31 that maximizes the function f(x) = x2 For the 1" generation, you need to print the process and result of selection, crossover, and mutation operation in detail; you need to show the process of each operation by printing corresponding integer value and bits (binary values). You also need to decide and print the crossover point and the mutation point. From the 2nd generation, you don't have to print all results of selection, crossover, mutation operations, but you need to print the result of each generation until you find the answer You can use function itself as your fitness function. When your program produces an average of candidates is equal to or greater than 29, then you can accept it as a terminating condition. Start your program with the following initialization. Population size: 8 Crossover probability: 100% Mutation probability: 3% Program a Genetic Algorithm to find an integer number between 0 and 31 that maximizes the function f(x) = x2 For the 1" generation, you need to print the process and result of selection, crossover, and mutation operation in detail; you need to show the process of each operation by printing corresponding integer value and bits (binary values). You also need to decide and print the crossover point and the mutation point. From the 2nd generation, you don't have to print all results of selection, crossover, mutation operations, but you need to print the result of each generation until you find the answer You can use function itself as your fitness function. When your program produces an average of candidates is equal to or greater than 29, then you can accept it as a terminating condition. Start your program with the following initialization. Population size: 8 Crossover probability: 100% Mutation probability: 3%

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions

Question

=+2 What is the Johari window?

Answered: 1 week ago