0% found this document useful (0 votes)
94 views

Rastrigin Function, Ackley's Function and Sphere Function

This document provides an assignment for visualizing and optimizing common test functions used to evaluate optimization algorithms. It lists three popular test functions - Rastrigin, Ackley's, and Sphere - and provides their MATLAB code. Students are tasked with 1) visualizing the plots of these functions, 2) using Particle Swarm Optimization to find the global minima, and 3) using Genetic Algorithms to find the global minima. Useful MATLAB functions for completing these tasks are also listed.

Uploaded by

Vikaskumar Reddy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views

Rastrigin Function, Ackley's Function and Sphere Function

This document provides an assignment for visualizing and optimizing common test functions used to evaluate optimization algorithms. It lists three popular test functions - Rastrigin, Ackley's, and Sphere - and provides their MATLAB code. Students are tasked with 1) visualizing the plots of these functions, 2) using Particle Swarm Optimization to find the global minima, and 3) using Genetic Algorithms to find the global minima. Useful MATLAB functions for completing these tasks are also listed.

Uploaded by

Vikaskumar Reddy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

STTP

Lab Assignment

(Dr R K Chaurasiya, Dept. of ECE, MNIT Jaipur, [email protected])

In applied mathematics, optimization test functions are useful to evaluate characteristics of optimization
algorithms, such as: Convergence rate, Precision, Robustness and General performance etc.

Some of the popular functions such as Rastrigin function, Ackley's function and Sphere function are given below.
Their MATLAB code has also been provided with this assignment. The functions are valid for n
dimensional input; however the plots can only be visualized for one or two dimension input.

Task 1: Visualize the plots for the aforementioned functions.

Task2: Apply PSO for the aforementioned functions to find the global minima.

Task3: Apply Genetic Algorithm for the aforementioned functions to find the global minima.

NOTE: The following MATLAB functions might be required in the process:

ga particleswarm meshgrid surf

Other useful Functions:

plot help clc clear hold figure

You might also like