Challenge

Week 4.1 - Genetic Algorithm

MATLAB to optimise the stalagmite function and find the global maxima of the function

  • Write a code in MATLAB to optimise the stalagmite function and find the global maxima of the function.
  • Clearly expalin the concept of genetic algorithm in your own words and also explain the syntax for ga in MATLAB in your report.
  • Make sure that your code gives the same output, even if it is made to run several times.
  • Plot graphs for all 3 studies and for F maximum vs no. of iterations. Title and axes labels are a must, legends could be shown if necessary.

Introduction:- Genetic Algorithm(GA)is a search based optimization technique based on the principles of genetics and natural selection .it is frequently used to find optimal or near-optimal solutions to difficult problems which otherwise would take a lifetime to solve

How the genetic algorithm

the algorithm begin by creating a random initial population

the algorithm then creates a sequence of new populations. At each step, the algorithm uses the individuals in the current generation create the next population

Steps

  • defining the search space
  • no of itration
  • creating a 2D mesh
  • evaluating the stalagmite function
  • adding the created function
  • doing several studies using tic toc command for calculating the itration time
  • plotting each studies

THANK YOU

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.