Hi, thank you so much for this video. I was wondering if i can use the PSO algorithm to find the shortest path in a graph between two nodes ? if yes do you have any reference for it ?
can the pso algorthm to search the best parameters of the cnn architecture for image classification? the objective is to maximize the accuracy of the model
The fastest way is to study and understand the existing PSO code and then customize, change or update something to solve your problems. No need to build the PSO from scratch because it's very time consuming.
@@abdulsamad-lq9jt i didn't find it till now, sorry. I was found the pso code in github but the programmer kinda modified it using mutant or something.
@@zombyzero Ah :((( i wanted it for my FYP. Have to implement it, and it's heck of a job ;-; is there anything you can help with in terms of any CVRP algorithm that you implemented ?
@@abdulsamad-lq9jt I was using Branch and Bound with python (found it in youtube as well) and Nearest Neighbor with Matlab (forgot where I found the code). I know nothing about coding, that's all I can help you with. good luck bro!
Maybe, you should try the regression to find the relationship between the input (dataset) and the output (objective function) and then use the regression equation as your objective function for the PSO
Sir, After running the above code following error is coming: TypeError: can only concatenate list (not "float") to list. What should I do to correct this error??
@@SolvingOptimizationProblems Sorry I am not able to understand what you said. I have gone through the whole video and used the same code mentioned and following error came: --------------------------------------------------------------------------- TypeError Traceback (most recent call last) in 74 for j in range(particle_size): 75 swarm_particle[j].update_velocity(global_best_particle_position) ---> 76 swarm_particle[j].update_position(bounds) 77 78 A.append(fitness_gobal_best_particle_position) # record the best fitness in update_position(self, bounds) 37 def update_position(self, bounds): 38 for i in range(nv): ---> 39 self.particle_position[i] = self.particle_position + self.particle_velocity[i] 40 41 # check and repair to satisfy the upper bounds TypeError: can only concatenate list (not "float") to list
@@SolvingOptimizationProblems Sir, I have run the same PSO code without any change, still getting the same error. I can email you the code which I am trying to run.
Is it possible to solve a maze using PSO? For a project i'm comparing different methods and I wanted to compare Q-learning, PSO, and Genetic Algorithm to see which one would be ideal.
Also please suggest Best books that you have followed to learn python... I want to learn it... From the basics if any separate Optimization Using python related books 📚available.. Please give the information.. It will be more helpful for me in my research point of view Thank you Sir. Looking for your reply It wil
Great Tutorial. Thanks for sharing. Please, I need your assistance on how to use genetic algorithm for a minimization objective. I have my input as [3 by 63] table and output as [1 by 63] table. I am confused about how to set the constraints. Kindly, assist. Thanks
Hello, one method is: from that data, use regression to find the relationship between input and output. After that, apply optimization algorithm to find the optimal input variables. Thanks for watching!
@@SolvingOptimizationProblems I have established the relationship between the input and outpt with neural network. My major challenge is that; I have categorical factors as input and I have to code them numerically to get the neural network function for GA optimization. I will really appreciate your assistance on this issue. I have been struggling with it for months. I can share the data if you are interested. Thanks
Hi, thank you so much for this video. I was wondering if i can use the PSO algorithm to find the shortest path in a graph between two nodes ? if yes do you have any reference for it ?
interesting, i'm looking for the same thing also.
yes, it is possible
Thank you so much fellow, i just run into your channel and guess what! Incredible!!
Thanks for your visit. Have a great day!
hi can i know what type of IDE that u use to run your program?
Hi, I used Pycharm
have you worked on computation offloading using PSO
I don't know the problems in your field. You may customize my code of PSO to solve the optimization problems in your fields. Good luck.
Hello i was learning a article with a PSO-BP code for making prediction. But I want to understand the results. Can you please help?
Please have a look at the code for more details
can the pso algorthm to search the best parameters of the cnn architecture for image classification? the objective is to maximize the accuracy of the model
Yes, it is possible
can i use this code to implement the appointment scheduling problem?
Yes, it is possible but some customization is required.
can i use this algorithm for text classfication problem like spam or not spam ? Is it useful features optimization?
Yes, it is possible but some customization is required.
do one example video problem on text classification task for feature selection with PSO
Hi, I don't have background on text classification. So, the only thing I can do is to advise you to customize my PSO to solve problems in your fields.
@@SolvingOptimizationProblems what i have to do to solve my problem with pso?
The fastest way is to study and understand the existing PSO code and then customize, change or update something to solve your problems. No need to build the PSO from scratch because it's very time consuming.
hello sir,
how can I adapt this PSO code for an open pit mine scheduling problem?
Hello, I don't know that problem but the solving principle should be the same, we just we need objective function and constraints
hi sir, do you have a pso code for solving cvrp? thanks
Hello, I have PSO code for general problems but not for cvrp
Hey did you get the PSO code for cvrp ? i need that too. Would be great if you can help
@@abdulsamad-lq9jt i didn't find it till now, sorry. I was found the pso code in github but the programmer kinda modified it using mutant or something.
@@zombyzero Ah :((( i wanted it for my FYP. Have to implement it, and it's heck of a job ;-; is there anything you can help with in terms of any CVRP algorithm that you implemented ?
@@abdulsamad-lq9jt I was using Branch and Bound with python (found it in youtube as well) and Nearest Neighbor with Matlab (forgot where I found the code). I know nothing about coding, that's all I can help you with. good luck bro!
Great work , thank you .
The objectif function in this case just has one variable (xi) but Nv =2 ? I'm confused can you please explain
One objective function but 2 variables
Please can you tell me how can i use pso in community detection
Step 1 is to do the problem formulation. Step 2 is to apply PSO to solve it
Sir, do you have code to solve kmeans using pso?
You can change the objective function and constraints
May I know how get the equation please
I think the equation is shown in the video
thanks for the tutorial but every time i run the code it give me this error "'Particle' object has no attribute 'update_velosity' " why?
I think your code is missing the "update_velosity" function
Sir, do you have code to solve TSP using PSO?
Hi, No I don't. I only have GA and 2-opt algorithms for TSP.
if i want to implement the pso to chunking the dataset into multiple chunks could i do this ?
Yes, it is possible to solve that problem using PSO.
@@SolvingOptimizationProblems how could that done ? By passing the dataset to the fitness function or how? Would you tell me please
Maybe, you should try the regression to find the relationship between the input (dataset) and the output (objective function) and then use the regression equation as your objective function for the PSO
@@SolvingOptimizationProblems thank you, I'll try that
Good luck!
Please i need to implement SSA algorithm for localization nodes in wsn using python, can you help me
Noted. Thanks for your suggestion!
Sir,
After running the above code following error is coming:
TypeError: can only concatenate list (not "float") to list.
What should I do to correct this error??
Please check the data type of the solution
@@SolvingOptimizationProblems Sorry I am not able to understand what you said.
I have gone through the whole video and used the same code mentioned and following error came:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
in
74 for j in range(particle_size):
75 swarm_particle[j].update_velocity(global_best_particle_position)
---> 76 swarm_particle[j].update_position(bounds)
77
78 A.append(fitness_gobal_best_particle_position) # record the best fitness
in update_position(self, bounds)
37 def update_position(self, bounds):
38 for i in range(nv):
---> 39 self.particle_position[i] = self.particle_position + self.particle_velocity[i]
40
41 # check and repair to satisfy the upper bounds
TypeError: can only concatenate list (not "float") to list
Can you run my PSO code (without any change)? make sure it is running properly and then customize to solve other problems.
@@SolvingOptimizationProblems Sir, I have run the same PSO code without any change, still getting the same error. I can email you the code which I am trying to run.
Really? Did you download the code from my blog? If yes, I am sure it could run as in the video.
sir while i run this code i got error at line 89, in
NameError: name 'particle' is not defined
please suggest me a solution to retify this error
Maybe because of the wrong data type/format
@@SolvingOptimizationProblems yes sir you're correct ,I rectified the error from my side thanks for your reply sir.
Great to hear that. Good luck!
same problem can you tell me how u did please?
I have Matlab code for this but teacher gave me assignment for changing the beta value's to get best optimal solution but i dont get it
Please run the code and check it carefully
Is it possible to solve a maze using PSO? For a project i'm comparing different methods and I wanted to compare Q-learning, PSO, and Genetic Algorithm to see which one would be ideal.
I'm not sure about the maze problem. If in the maze problem, we need to find the optimal path or route, my answer is yes, it is possible to use PSO.
Dear Sir
How can I get the full codes of GA, SA, PSO, please let me know the procedure.. For payment
You can check it on my website in the description
Sir can you put video on Dingo optimization algorithm and with python code...
Not sure
Hello Sir, for real life applications, which algorithm is better, GA or PSO?
I prefer GA. I am a BIG fan of GA. Thanks
educational purpose or commercial purpose?
Both. Thanks for your comment.
Why my plot updates only at the end? Regardless of variables number i can see only last draw. Good job!
For how, you may see the code in the description
Also please suggest Best books that you have followed to learn python... I want to learn it... From the basics if any separate Optimization Using python related books 📚available.. Please give the information.. It will be more helpful for me in my research point of view
Thank you Sir.
Looking for your reply
It wil
I did not learn python from any book. I learnt it from TH-cam videos
Great Tutorial. Thanks for sharing. Please, I need your assistance on how to use genetic algorithm for a minimization objective. I have my input as [3 by 63] table and output as [1 by 63] table. I am confused about how to set the constraints. Kindly, assist. Thanks
Hello, one method is: from that data, use regression to find the relationship between input and output. After that, apply optimization algorithm to find the optimal input variables. Thanks for watching!
@@SolvingOptimizationProblems I have established the relationship between the input and outpt with neural network. My major challenge is that; I have categorical factors as input and I have to code them numerically to get the neural network function for GA optimization. I will really appreciate your assistance on this issue. I have been struggling with it for months. I can share the data if you are interested. Thanks
I don't have background to understand your problem. So, I only give you a general advice on optimization method.
@@SolvingOptimizationProblems Ok. Thanks for your time and plese keep up the good work.
Many thanks for watching Jimmylolu!
Can u helpp me out with my project i need some ideas and referenced pls
Hi, can you be more specific? What is your problem?
@@SolvingOptimizationProblems I got my project diagnosis of covid 19 using swarm intelligence and I have no clue abt it can u help me out
There is charge for code
Yes, you're right.
Please, I would like a code to forecast water consumption for the next five years
Through the information for the past ten years
You may customize this PSO code to solve your problems
thank u
You're welcome!
who came here to learn english?
Did you?