Posts

New Post

Intelligent Traffic Management Using || AI & Metaheuristics || ~xRay Pixy

Image
Hybrid Artificial Intelligence and Metaheuristics for Smart City TRafci Management Problem Video Chapters: 00:00 Introduction 00:40 Smart Cities 01:14 Traditional Methods for Traffic Management 02:12 Hybrid Approach AI and Metaheuristics 02:47 STEPS for Hybrid  Traffic Management System 08:40 Advantages of Smart Traffic Management System 09:33 Conclusion

Firefly Algorithm Step-by-Step with Numerical Example [PART - 2]

Image
Firefly Algorithm Firefly algorithm is a swarm-based metaheuristic algorithm that was introduced by Yang. Firefly algorithm is used for solving optimization problems. In this video, you will learn the Firefly algorithm with an example. Firefly Algorithm is inspired by the FLASHING Behavior of Fireflies. For simplicity certain Assumptions used in Firefly Optimization Algorithm: - 1.) Fireflies are attracted to each other. 2) Attractiveness is proportional to BRIGHTNESS. 3.) Less Brighter Firefly is attracted to the Brighter Firefly. 4.) Attractiveness decrease as the distance between 2 fireflies increase. 5.) If the brightness for both is the same, fireflies move randomly. 6.) New Solutions are generated by Random walks & the Attraction of fireflies. Firefly Optimization Algorithm Steps: Initialize Parameters Initialize Population randomly in the search space. Compute Fitness values and select the best solution. Check Stopping Criteria. While Current Iteration = 1:Maximum Iterat

Manta Ray Foraging Optimization (MRFO) Algorithm Example

Image
Manta Ray Foraging Optimization (MRFO) Algorithm  Manta Ray Foraging Optimization (MRFO) Algorithm Example Step 01: Initialize Population Size Suppose, Population Size = 4; Lower Bound = -10; Upper Bound = 10; Maximum Iteration = 4; Suppose Initial Population  1.1  2  0.9  3 Step 02: Compute Fitness Value for each using fitness function. Fitness Values 1.21 4 0.81 9 Step 03: Obtain Best Solution Best solution = Minimum Fitness Value in the current population Best Solution = 0.81 Step 04: Check Stopping Criteria While (Current < Maximum Iteration)  1 < 4   ((True) move to next step )  If stopping criteria is then stop and return the best cost. Step 05: Update Position for each individual. For i = 1 to PopulationSize For i = 1:4 If (rand < 0.5)  THEN Cyclone Foraging Else Chain Foraging End if Step 06: Compute Fitnee Value for Each individual and Select Best Individual. Step 07: Perform Somersault Foraging.  Step 08: Compute Fitness Value for Each. End For End While Step 0

Grey Wolf Optimization Algorithm Numerical Example

Image
 Grey Wolf Optimization Algorithm Numerical Example Grey Wolf Optimization Algorithm Steps 1.) Initialize Grey Wolf Population. 2.) Initialize a, A, and C. 3.) Calculate the fitness of each search agent. 4.) 𝑿_𝜶 = best search agent 5.) 𝑿_𝜷 = second-best search agent 6.) 𝑿_𝜹 = third best search agent. 7.) while (t<Max number of iteration) 8.) For each search agent       update the position of the current search agent by the above equations end for 9.) update a, A, and C 10.) Calculate the fitness of all search agents. 11.) update 𝑿_𝜶, 𝑿_𝜷, 𝑿_𝜹 12.) t = t+1 end while 13.) return 𝑿_𝜶 Grey Wolf Optimization Algorithm Numerical Example STEP 1.  Initialize the Grey wolf Population [Initial Position for each Search Agent] 𝒙_(𝒊  )  (i = 1,2,3,…n)     n = 6 // Number of Search Agents  [ -100, 100] // Range Initial Wolf Position      3.2228     4.1553    -3.8197     4.2330     1.3554    -4.1212 STEP 2. Calculate Fitness for Each Search Agent.    Objective Function: F6(x)  = su

Grey Wolf Optimization Algorithm

Image
 Grey Wolf Optimization Algorithm  (GWO) Grey Wolf Optimization Grey Wolf Optimization Algorithm is a metaheuristic proposed by Mirjaliali Mohammad and Lewis, 2014. Grey Wolf Optimizer is inspired by the social hierarchy and the hunting technique of Grey Wolves. What is Metaheuristic? Metaheuristic means a High-level problem-independent algorithmic framework (develop optimization algorithms). Metaheuristic algorithms find the best solution out of all possible solutions of optimization. Who are the Grey Wolves? Wolf (Animal): Wolf Lived in a highly organized pack. Also known as Gray wolf or Grey Wolf, is a large canine. Wolf Speed is 50-60 km/h. Their Lifespan is 6-8 years (in the wild). Scientific Name: Canis Lupus. Family: Canidae (Biological family of dog-like carnivorans). Grey Wolves lived in a highly organized pack. The average pack size ranges from 5-12.  4 different ranks of wolves in a pack: Alpha Wolf, Beta Wolf, Delta Wolf, and Omega Wolf. How Grey Wolf Optimization Algorithm

Invasive Weed Optimization (IWO) Algorithm Step-by-Step with Numerical E...

Image
Invasive Weed Optimization (IWO) Algorithm with Example Invasive Weed Optimization The invasive weed optimization algorithm (IWO) is a population-based metaheuristic optimization method inspired by the behavior of weed colonies. Weeds are u nwanted plants (plant in the wrong place). Weeds can change their behavior according to the environment and gets fitter. Weeds plant can be easily found in: Parks, Fields, Garden, and Lawns Invasive Weed Optimization Algorithm Steps. 1.) Initialization Phase Initialize all important parameters. 2.) Initialize Population. The initial population is created by spreading the finite number of seeds randomly in the search space. 3.) Compute Fitness Values.  Every seed will grow into a flowering plant and produce seeds. [Reproduction].  Seed production is based on fitness values so compute: Individual Fitness Value Best Fitness Value Worst Fitness Value 4.) Random distribution of germinated seeds. Determine new positions of seeds in the search space For R

PARTICLE SWARM OPTIMIZATION ALGORITHM NUMERICAL EXAMPLE

Image
 PARTICLE SWARM OPTIMIZATION ALGORITHM NUMERICAL EXAMPLE PSO is a computational method that Optimizes a problem. It is a Population-based stochastic search algorithm. PSO is inspired by the Social Behavior of Birds flocking. n Particle Swarm Optimization the solution of the problem is represented using Particles. [Flocking birds are replaced with particles for algorithm simplicity]. Objective Function is used for the performance evaluation for each particle / agent in the current population. PSO solved problems by having a Population (called Swarms) of Candidate Solutions (Particles). Local and global optimal solutions are used to update particle position in each iteration. Particle Swarm Optimization (PSO) Algorithm step-by-step explanation with Numerical Example and source code implementation. - PART 2 [Example 2] 1.) Initialize Population [Current Iteration (t) = 0] Population Size = 4; 𝑥𝑖 : (i = 1,2,3,4) and (t = 0) 𝑥1 =1.3; 𝑥2=4.3; 𝑥3=0.4; 𝑥4=−1.2 2.) Fitness Function used:

Firefly Optimization Algorithm

Image
Firefly algorithm is a swarm-based metaheuristic algorithm that was introduced by Yang. Firefly Algorithm is inspired by the FLASHING Behavior of Fireflies.  Assumptions Fireflies are attracted to each other. Attractiveness is proportional to BRIGHTNESS.  Less Brighter Firefly is attracted to the Brighter Firefly. Attractiveness decrease as the distance between 2 fireflies increase. If brightness for both is the same, fireflies move randomly. New Solutions are generated by Random walks & the Attraction of fireflies. Video Link:  https://youtu.be/QvpEMR-Jp0U Firefly Optimization Algorithm Steps Initialize Parameters. Generate Population of n Fireflies. Calculate Fitness Value for Each Firefly. Check stopping criteria if (CurrentIteration := 1 to MaximumIteration ).  Update Position and Light Intensity for Each Firefly. Report the Best Solution. Initialize Parameters, Population of Fire Fly Swarm. Population Size (n) = 20; Maximum Iteration (Maxt) = 50; Dimension (d) = 10; Upper Bou

Manta Ray Foraging Optimization (MRFO) Algorithm Step-by-Step Explanatio...

Image
Manta Ray Foraging Optimization (MRFO) Manta ray foraging optimization (MRFO) is a new optimization approach for global optimization problems. The Manta ray optimization algorithm is developed by Zhao et al. (2020). Manta ray optimization algorithm is a bio-inspired optimization technique. Manta ray optimization algorithm is inspired by foraging strategies of manta rays. Manta ray optimization algorithm is used to solve optimization problems. Manta Ray basic structure Manta Ray foraging is often found in groups. Three main manta Rays Foraging Strategies:  Chain Foraging Cyclone Foraging Somersault Foraging Chain Foraging: More than 50 Manta Rays line up. One behind another. (the line is formed by Manta Rays). Manta Rays observe plankton’s position and swim towards it. Manta Rays form a foraging chain by line-up from head to tail. Assumed that BEST Solution is plankton with high concentration manta rays want to approach. In every generation, all individuals will update their position w

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

Software Engineering

  Software Engineering   Software Engineering: Software Engineering (S.E.) is a profession dedicated to the designs, implementation, and modification of software.  Applications of Software Engineering are:  Re-engineering of software Software Testing Software Maintainance  Software Analysis Software Design Software Implementation The objective of software engineering is to produce good quality software, on time and within budget. To obtain this objective it is very important to focus on Software Quality and Software Development Process. Software Characteristics are:  Reusability of the components. Softwares are not manufactured as hardware.  In the Software development process, there is no wear-out phase. Software is fixable. Software Life Cycle Models: Software life cycle means the time period when a software product is conceived and when the software product is no longer available for use. The software Life cycle includes different phases: Requirement Phase Design Phase Implementatio

Chemical Reaction Optimization Algorithm step-by-step with example ~xRay...

Image
Chemical Reaction Optimization Algorithm Chemical Reaction Optimization algorithm is a population-based metaheuristic algorithm. Chemical Reaction Optimization algorithm is inspired by Chemical reactions. Chemical Reaction Optimization algorithm is developed by Albert Y.S. Lam and Victor O.K. Li. In this algorithm, Molecular structure (sum all characteristics) is used to compute the solution. Chemical Reaction Optimization algorithm is used to solve optimization problems. Chemistry Basic Fundamentals:  Atom / Molecule / Chemical Bonding / Molecular Structure / Molecule Energy / Chemical Reations/ Elementary Reactions  Atom:   According to Dalton (in 1808), an atom is the smallest part of an element that exists as the smallest entity. 3 important fundamental particles of an atom are Proton, Electron, and Neutron. For Example Oxygen (O), Nitrogen (N), Hydrogen (H), etc. Molecule: A molecule  is composed of 2 or more atoms held together by chemical bonds. The molecule is always formed whe

BARC Previous Year Question Papers Solved

  BARC Computer Science and Information Technology Previous Year Question  Solved  1.) The worst-case time complexity of Quick Sort is: O(nlogn) O(n) O(n^2) None Answer: O(n^2) Explanation : Quicksort is based on the divide and conquers paradigm. Quicksort expected average running time is O(nlogn) 2.) In C programming operator '&' is used to represent: Logical AND Bitwise AND Logical OR Bitwise OR Answer: B itwise AND Explanation : logical AND (&&), bitwise AND (&), Logical OR (||), Bitwise OR(|) 3.) When a static variable is initialized: Answer: First time when a loop is executed. Explanation : Static variables only execute once. 4.) What is the maximum height of the AVL tree with 7 nodes? Assume that height of the tree with a single node is 0. Answer:  3 . 5.) Data structure used in the recursive algorithm is: Answer:  Stack

Grasshopper Optimization Algorithm (G.O.A.) Step-by-Step with Numerical ...

Image
Grasshopper Optimization Algorithm (G.O.A.)  Grasshoppers are also known as pests. They destroy fields and crop production. Grasshopper lifecycle contains Eggs, Nymph Phases, and Adult Grasshopper. Grasshopper Optimization Algorithm is a Nature-inspired swarm-based optimization algorithm. Grasshopper Optimization Algorithm (GOA) is inspired by the foraging and swarming behavior of grasshoppers in nature. The grasshopper optimization algorithm is basically inspired by the behavior of adult grasshoppers in nature. Adult grasshoppers can make sudden jumps and cover long-range as compare to nymphs. This is the mathematical model used to represent grasshopper behavior in this algorithm : 𝑥_𝑖 = 𝑆_𝑖 + 𝐺_𝑖 + 𝐴_i GrasshopperCurrentPosition = Social Interaction in the group + Force of gravity + Wind Direction. Normally distributed random values are used in the grasshopper optimization algorithm for grasshopper random behavior in nature. Grasshopper Optimization Algorithm Steps. 1.) Parame

Metaheuristic Optimization Algorithms |Nature-Inspired Algorithms, Evolutionary Algorithms

Image
Metaheuristic Optimization Algorithms                     Metaheuristic Algorithms Categories. 1. Single Based Metaheuristic Algorithms: Single Solution is generated at each iteration/generation. 2. Population-Based Metaheuristic Algorithms: Multiple Solutions are generated at each iteration/generation. Single Based Metaheuristic Algorithms Examples. 1. Tabu Search 2. Guided Local Search 3. Iterated Local Search 4. Variable Neighborhood Search 5. Greedy Randomized Adaptive Search Population-Based Metaheuristic Algorithms Classification. Metaheuristic Algorithm Step-by-Step with Numerical Examples. WATCH NOW: CLICK HERE 1. Nature-Inspired Metaheuristic Algorithm 2. Evolutionary Algorithms 3. Swarm Based Algorithm 4. Human-Based Algorithm 5. Physics-Based Algorithm 6. Bio-Inspired Algorithm 7. Art-Inspired Algorithm 8. Plant-Based Algorithm Evolutionary Algorithms Examples Evolutionary Algorithm Step-by-Step with Numerical Examples. WATCH NOW: CLICK HERE 1. Genetic Algorith

Artificial Bee Colony Optimization Algorithm Step-by-Step with Numerical...

Image
Artificial Bee Colony Optimization Algorithm is a Swarm Intelligence Population-Based Metaheuristic Bees are flying insects with wings. Algorithm. Artificial Bee Colony Optimization Algorithm is inspired by the behavior of bees in nature. We can use an Algorithm. Artificial Bee Colony Optimization Algorithm to solve different Engineering Optimization Problems, Numerical Problems.  Bees feed on nectar as Energy Source in their life. Algorithms Inspired by the behavior of the bees: Bees Algorithms Bee Hives Bee Colony Optimization Algorithm Artificial Bee Colony (ABC) Algorithm Marriage Bee Optimization (MBO) Algorithm Bee Algorithms are used to solve different problems.   Bee System: Genetics Problems. Bee Hive: Routing Protocols.  Honey Bee Marriage: Cluster Analysis.  Bee Colony Optimization: Travelling Salesman Problems (TSP), Vehicle Routing Problem, Ride Matching Problems, Job Scheduling Problems. Artificial Bee Colony Optimization: Engineering Problems, Numerical Optimization. Be
More posts