Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the magic square problem to solve using evolutionary algorithms. In this case, there is a table with dimensions of 3*3 that the numbers 1

Consider the magic square problem to solve using evolutionary algorithms. In this case, there is a table with dimensions of 3*3 that the numbers 1 to 15 should be placed in the cells of this table so that the following conditions are always met : i) Each number is allowed to be used and registered in the table only once. ii) The sum of the numbers in all rows of the table must be the same and equal to 24. iii) The sum of the numbers in all the columns of the table must be the same and equal to 24. Provide a genetic algorithms to solve this problem, in the form of the following questions : A) Determine the structure of chromosomes and how to map the genes of each chromosome in the magic square problem? B) Determine the effective parameters in the fitness function of the magic square problem and propose its fitness function? C) Write the MATLAB code for randomly generating an initial population of chromosomes (n chromosomes) in this magic square p

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

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

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

a. How are members selected to join the team?

Answered: 1 week ago

Question

b. Will new members be welcomed?

Answered: 1 week ago

Question

c. Will leaders rotate periodically?

Answered: 1 week ago