Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 Refer to the Wikipedia page: https: / / en . wikipedia.org / w / index . php ? title = Test functions for optimization&oldid

1 Refer to the Wikipedia page: https://en.wikipedia.org/w/index.php?title=Test functions for optimization&oldid=1020702629(The 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 step-by-step 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 3-D Plot Objective function-Note only 2 paras-(x, y) involved Egghildes function )-(+47)+(+47)--(+47) Holder table function f(x,y)=-|sin pi cos yexp(|1-(sqrt(x ^3+ y ^2))/pi|)| The range of parameters for the Eggholder function is: -512<= x, y <=512 while for the Holder Table function is -10<= x y <=10 There are no explicit constraints in these problems. The same DE program should work on both, as well as any other single-objective 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 x-axis).[Note 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? Ball-park figures for parameters:1. Population size: 20,50,100,200.2. Num of Gens: 50,100,200.3. Crossover Probability: 0.80 I 4. Constants K and F for creating mutant vector: K =0.5; for F, choose between -2 and +2 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: 20%. Write the code for PSO for optimization of the same two problems. In place of crossover probability, use c1+ c2=4. Choose your own values of c1 and c2. 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

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

Briefly describe the European Free Trade Association.

Answered: 1 week ago