Question: 2 . Global optimality of Particle Swarm Optimization Algorithm ( 5 0 Marks ) The optimization algorithms tend to get trapped in local extrema. Hence,
Global optimality of Particle Swarm Optimization Algorithm
Marks
The optimization algorithms tend to get trapped in local extrema. Hence, instead of providing globally optimal solutions, the optimization algorithms usually provide locally optimal solutions. One of the ways to test the ability of an optimization algorithm to provide the global solutions is by using multimodal functions. In this homework assignment, you need to write a particle swarm optimization PSO code in Matlab or Python The code will be applied to three "twodimensional" multimodal functions these functions accept two scalar inputs The range of input variables within which the globally optimal solutions for respective functions exist is provided. The Matlab optimization code should output two values: i the point where the function achieves the minimum value; and ii the value of the function at that point. The functions used for testing the PSO algorithm are provided below:
I. Multimodal Gaussian function as shown in the following figure with three minimums. A Matlab code for the function has been uploaded on the Canvas under the assignment section separately. This function takes a vector with two elements as inputs. Use a range of to for both inputs.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
