0% found this document useful (0 votes)
45 views12 pages

AI Project

Uploaded by

Daniyal Hamid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views12 pages

AI Project

Uploaded by

Daniyal Hamid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

COMSATS UNIVERSITY ISLAMABAD

Semester Project Report


Assignment 4

Name: Sarang Sultan


Nouman Farooq
Sain Ali
Class: EE-5B
Registration No: FA21-BEE-167
FA21-BEE-154
FA21-BEE-164
Subject: Artificial Intelligence
Instructor: Dilshad Sabir
TASK GIVEN: -
Problem Statement:
The "feature_comb" database contains waveforms, i.e., signals from 7 different
atmospherically variables like temperature, humidity, evaporation, wind speed, etc,
over six years. The project aims to find the similarity between the first six features
and 7th feature of climate. To find indexes of single from the first six features
having a maximum correlation with any single form seventh feature, we need a
search algorithm. There are number of algorithms with MATLAB code is given in
zip file. Unzip the code to run on your system in latest version of MATLAB. Find
the algorithm related to your group in excels sheet Groups BEE and run the code
for value of variable "reg" from 1.5 to 15 with increment of one.
Our Designated Algorithm:
Particle Swarm Optimization (PSO) Algorithm: -

The Particle Swarm Optimization (PSO) algorithm is a computational optimization


technique inspired by the social behavior of birds flocking or fish schooling. It's a
heuristic algorithm used to solve optimization problems.

Here's a breakdown of how PSO works:

1. Initialization: PSO begins by initializing a population of potential solutions to


the optimization problem. These solutions are termed "particles."

2. Fitness Evaluation: Each particle's fitness or suitability is evaluated based on a


defined objective function. This function quantifies how good or bad the solution
represented by the particle is in solving the problem.

3. Velocity and Position Updates: Particles adjust their positions and velocities
based on their own best-known position and the global best-known position found
by any particle in the swarm.

❖ Velocity Update: The velocity of a particle is adjusted based on its


previous velocity, its distance to its individual best-known position, and
the distance to the global best-known position.

❖ Position Update: Using the updated velocity, particles adjust their


positions in the solution space.
4. Iterative Optimization: PSO iterates through multiple cycles or iterations, with
particles continually updating their positions and velocities based on the best-
known solutions discovered so far.

5. Termination: The algorithm terminates either when a maximum number of


iterations is reached, a satisfactory solution is found, or a predefined stopping
criterion is met.
Solution:
MATLAB Results:
Reg no: 1.5

Reg no 3:
Reg 4:

Reg 5:
Reg 6:

Reg 7:
Reg 8:

Reg 9:
Reg 10:

Reg 11:
Reg 12:

Reg 13:
Reg 14:

Reg 15:
Excel Datasheet Results:

Conclusion:
PSO is flexible and widely used due to its simplicity and efficiency in solving
various optimization problems. However, its performance can be influenced by
parameters like the number of particles, the inertia weight, and the cognitive and
social factors that guide particle movement.

This algorithm has been applied across various domains, including engineering,
economics, machine learning, and other fields where optimization is crucial.

You might also like