Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!