Posts

Showing posts from July, 2023

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

PSO Python Code || Particle Swarm Optimization in Python || ~xRay Pixy

Image
Particle Swarm Optimization Implementation in Python Video Chapters: 00:00 Introduction 02:01 Code 05:55 Position Initialization 08:06 PSO Main Loop 08:42 Velocity Calculation 10:02 Position Update 10:36 Fitness Evaluation 13:21 Objective Function 17:44 Result 19:00 Conclusion .....................................................SOURCE CODE......................................................................... import random import numpy as np from tkinter import messagebox #Define Class Particles class Particle: def __init__ (self,position): self.position=position self.velocity=np.zeros_like(position) self.best_position=position self.best_fitness=float('inf') def PSO(ObjF,Pop_Size,D,MaxT): swarm_best_position=None swarm_best_fitness=float('inf') particles=[] #Posotion Initialization position=np.random.uniform(-0.5,0.5,D) particle=Particle(position) particles.append(particle) #Fit

JavaScript Dynamic Barcode Generator || Step-By-Step || ~xRay Pixy

Image
SOURCE CODE <html> <head> <title>Dynamic Barcode Generator</title> <link rel="stylesheet" href="bar.css"/>  <script src="https://cdn.jsdelivr.net/npm/jsbarcode@3.11.3/dist/JsBarcode.all.min.js"></script> </head> <body> <center> <h1>Dynamic Barcode Generator</h1> <div id="box">   <input id="barcode-input" type ="text" placeholder="Enter Text for Barcode"/>   <button onclick="BarCodeGenerate()" >Generate Barcode</button> <br><br>   <svg id ="barcode"></svg> </div>   <script>      function BarCodeGenerate(){          var text = document.getElementById("barcode-input").value;          JsBarcode("#barcode",text);      }             </script> </center> </body> </html>
More posts