Posts

Showing posts from July 25, 2021

New Post

Particle Swarm Optimization (PSO) |Part - 2| with Numerical Example and ...

Image
Particle Swarm Optimization (PSO) Algorithm Particle Swarm Optimization (PSO) Algorithm step-by-step explanation with Numerical Example and source code implementation. 🌞 Particle Swarm Optimization (PSO) Algorithm Matlab code. Particle Swarm Optimization Main File: main.m pso; Particle Swarm Optimization Function File: Sphere(x) function F1 = Sphere(x) F1 = sum(x.^2); end Particle Swarm Optimization File Name Save as: pso.m clear; close all; %% Fitness Function Calling FitnessFunction=@(x) Sphere(x); % Fitness Function Calling % Total Number of Decision Variables Used nVar=10; % Size of Decision Variables Matrix VarSize=[1 nVar]; % Lower Bound LowerBound =-10; % Upper Bound UpperBound = 10; %% Parameters Initialization Phase % Maximum Number of Iterations used. MaxT=100; % Total Number of Search Agents used. PopulationSize = 10; % Initialize PS
More posts