Write down the steps of the genetic algorithm for an optimization problem. If you use any...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write down the steps of the genetic algorithm for an optimization problem. If you use any notations, clearly define all of them. (10 marks) You have the below quadratic function and the constraint. You need to write a code to implement the genetic algorithm to find the value that maximize the quadratic function value with respect to the given constraint. f(x) = -0.05x² + 3x + 2; subject to 0 ≤ x < 64 1. Devise a binary chromosome to translate the sample space of candidate solutions to above question. (5marks) 2. Setup the parameters that is required to implement Genetic Algorithm to above question (you may take initial parameter values according to your preference). (5marks) 3. Create the initial population, calculate the fitness of each member of population and calculate sampling probabilities for each member of the population. (5marks) 4. Implement the genetic algorithm (iterate your initial population up to certain number of generation) and derive the solution to above question. Your implementation should include the following. (50 marks) a. Selection of chromosomes to reproduce b. Crossover to produce next generation of chromosomes c. Random mutation of chromosomes in new generation 5. Plot the average fitness and maximum fitness with the generation. (10 marks) 6. Repat the above process for another 2 runs. Check whether all the runs give the same solution. Is it possible to have different solutions in different runs? Explain. (15 marks) Write down the steps of the genetic algorithm for an optimization problem. If you use any notations, clearly define all of them. (10 marks) You have the below quadratic function and the constraint. You need to write a code to implement the genetic algorithm to find the value that maximize the quadratic function value with respect to the given constraint. f(x) = -0.05x² + 3x + 2; subject to 0 ≤ x < 64 1. Devise a binary chromosome to translate the sample space of candidate solutions to above question. (5marks) 2. Setup the parameters that is required to implement Genetic Algorithm to above question (you may take initial parameter values according to your preference). (5marks) 3. Create the initial population, calculate the fitness of each member of population and calculate sampling probabilities for each member of the population. (5marks) 4. Implement the genetic algorithm (iterate your initial population up to certain number of generation) and derive the solution to above question. Your implementation should include the following. (50 marks) a. Selection of chromosomes to reproduce b. Crossover to produce next generation of chromosomes c. Random mutation of chromosomes in new generation 5. Plot the average fitness and maximum fitness with the generation. (10 marks) 6. Repat the above process for another 2 runs. Check whether all the runs give the same solution. Is it possible to have different solutions in different runs? Explain. (15 marks)
Expert Answer:
Answer rating: 100% (QA)
To solve the optimization problem using a genetic algorithm with a quadratic function and the given constraint here are the steps 1 Binary Chromosome Representation Convert the continuous space to a b... View the full answer
Related Book For
Microeconomics An Intuitive Approach with Calculus
ISBN: 978-0538453257
1st edition
Authors: Thomas Nechyba
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Describe the impact of mobile computing upon your business and project its impact in the future. Do the same for social media. In both cases, when considering impacts, consider how each technology...
-
Make an order-of-magnitude estimate of the ratio of mass increase to the original mass of a flag, as you run it up a flagpole. In your solution explain what quantities you take as data and the values...
-
Recently, the movies The Dark Knight, Spider-Man 3, and The Twilight Saga: New Moon held the record for having the three highest-grossing weekends at the box office, with a total of $452 million....
-
An engineer prepares a report to evaluate a project using PW and IRR. Just before submitting the report, he spills coffee on it, making the first digit of the 2-digit IRR unreadable. The second digit...
-
(Two Temporary Differences, One Rate, 3 Years) Gordon Company has two temporary differences between its income tax expense and income taxes payable. The information is shown below. The income tax...
-
1. A ray of light enters glass (index 1.570) from air at an incident angle of 25. Find the angles of refraction and of deviation. 2. A light ray is directed through air (index 1.000) at a 25 angle of...
-
The story behind your analysis of your forecast of the future based on your spreadsheet. Why did you choose the specific growth rates? What impact did they have on the value of Walmart? Use the...
-
Part A: Luxury Living Concepts Corp. (LLC) is a publicly accountable enterprise that builds large complexes, including schools, office towers, apartment buildings and shopping centres, on a contract...
-
Cruz Manufacturing Ltds sales slumped badly in 2019. For the first time in its history, it operated at a loss. The companys income statement showed the following results from selling 600 000 units of...
-
Using the tools provided to you in this chapter, conduct a comprehensive review one of the websites listed below. Is it a reliable resource without underlying motivations? MinimumWage.com ...
-
Save your notes and drafts from several assignments so that you can answer the following questions: Which practices of good writers do you follow? Which of the activities discussed in this chapter...
-
An executive at one of your largest client companies is known for his negative attitude. He is feared for his sharp tongue and scathing attacks, and he bullies everyone. Everyone you know, including...
-
Answer the following descriptive questions. a. Explain what the "isoparametric" mapping means. b. For a 1D 3node quadratic element, what is the condition to make the Jacobian constant? c. When...
-
Matahari Landscape Sdn. Bhd. produces small plant stands which sells for RM25 each. The company's annual level of production and sales is 120,000 units. In addition to RM430,500 of fixed...
-
What are the risks and liability factors in an audit? What are the implications to the auditor? What are the implications to the organization? How can the auditor mitigate these risks and liability...
-
Capital Gains Taxes: Taxes on capital g0ains are applied to income earned on investments that return a profit or capital gain and not on income derived from labor. To the extent that such capital...
-
Suppose again, as in exercise 24.5, that two players have $100 to split between them. A: But now, instead of one player proposing a division and the other accepting or rejecting it, suppose that...
-
A: Assume that the production technology uses labor and capital k as inputs, and assume through- out this problem that the firm is currently long run profit maximizing and employing a production...
-
Please list possible definitions of the term embedded system!
-
How would you define the term cyber-physical system (CPS)? Do you see any difference between the terms embedded systems and cyber-physical systems?
-
What is the Internet of Things (IoT)?
Study smarter with the SolutionInn App