Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 Refer to the Wikipedia page: https: / / en . wikipedia.org / w / index . php ? title = Test functions for optimization&oldid
Refer to the Wikipedia page: https:enwikipedia.orgwindexphptitleTest functions for optimization&oldidThe relevant sections of that page are copied in this assignment. You need to develop your own program, in Python language, that performs DE optimization. The stepbystep process for this is given in the lecture slides, along with the logic and formulae for generating the Mutant vector, Trial Vector, and for performing Selection. Use this program to find the optima for two of the functions in that Wikipedia page the Eggholder function, and the Holder Table function. The relevant section of the page is reproduced below: Function Name D Plot Objective functionNote only parasx y involved Egghildes function Holder table function fxysin pi cos yexpsqrtx y pi The range of parameters for the Eggholder function is: x y while for the Holder Table function is x y There are no explicit constraints in these problems. The same DE program should work on both, as well as any other singleobjective optimization problem you would like to solve. Your optimized values should match the values given in the link page. You will need to make plots of the convergence history of the average across all candidates and the best candidate value of the objective function across all generations gens on xaxisNote that the identity of "best candidate" will change across generations; the plot should track the best value independent of candidate Both these parameters should appear on the same plot; however, the two functions are to be plotted on two different plots. You need to experiment with two parameters the population size and the max. number of generations for solution. Do you find similar trends for both functions? Ballpark figures for parameters: Population size: Num of Gens: Crossover Probability: I Constants K and F for creating mutant vector: K ; for F choose between and randomly across generations, but keep it same for all candidates within a generation. Your submission should be a folder containing your code, a word doc containing comparison of your optimized solution against the correct solution, as well as the plots for the given cases. Ideally all comparison cases, or at least some of them. BONUS: Write the code for PSO for optimization of the same two problems. In place of crossover probability, use c c Choose your own values of c and c Plot the same set of convergence characteristics as you have done for DE for PSO. Put the PSO results also in your final submission folder.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started