Thank you very much sir for ur video and also can u make a video on Fuzzy logic controller optimization. I’m trying since many days but not getting perfect video related to Fuzzy optimization.
Thanks sir, it is a good one, but you need to be talking as you are taking step so that it can help us sir as some of us do not laptop to be seing it clearly sir.
thank you for the explication, my questions are: 1/what are the criteria we are based on to be able to change parameters appearing in the optimization tool window 2/how can we verify the correct result that give the simulation, especially we have different results by changing parameters
Hi, just add x3, x4, x5, x6, and x7 in the same procedure as shown in the matlab code. Is that clear? If still any problems, just let me know. I will explain it in more details
Hi, we need to see the problem formulation before deciding whether the GA solver can be used or not? If your problem has many constraints, GA solver should not be used.
Thank you Sir for this perfect video, who to resolve this error Optimization terminated: average change in the spread of Pareto solutions less than options.FunctionTolerance.
Thank you sir, It's really helpful. I have a project on optimization of leaf spring using a genetic algorithm. Can you please let me how to solve this problem.
@@MohammedIbrahim-px7cc objective function is what you want to maximize or minimize. for example, minimize the total cost, or maximize the utilization, etc
Hi, no, this solver is often used for continuous optimization. Scheduling is often discrete optimization. We need other methods. Please check other videos on this channel.
@@SolvingOptimizationProblems i see, because I use greedy method for my appliance sched and i dont know how to convert to Matlab, can you help me sir :/ I just want to get low cost for bill
Thank you for sharing the video! Please I want to use my structure using Silvaco and I use GA with matlab how I use AG matlab is an interface ( matlab and silvaco) Thank you
hi,thanks for such a good video. however while running the function through optimization tool & through the generated code ,why i am getting different fval.
To solve linear programming problems, there are several free LP solvers in Python and Matlab. Have a look at my channel for details of how to use them.
Sir, I am dealing with a genetic algorithm problem where I cannot define my variables to the objective function. My variables generate a result in another simulation software. That result will be given in the objective function. With every simulation run result will be stored to the objective function. How to write the GA code to get optimized values of variables? NB- simulation platform is connected to Matlab and can be controlled by Matlab
It depends on complexity of your probem. Maybe you can use GA solver in Matlab or develop your GA from beginning. Have a look at some of my videos and then you should be able to decide to use GA solver or develop your own GA. Maybe you can customize my GA codes on my videos to solve your problems
Hi, that video has been made on my channel. Please have a look at a video with title: "How to solve triple objective optimization problems using Matlab". Thanks
hi sir. i have a project which is to find the min value of the given fx (fx should be single-variable and can be whatever the user wants) by using genetic algorithm. for example the user enters f(x)=x^2-1 as an input and program should give us the min value for this function by using GA algorithm. i don know how to implement it . it should be in python. plz help me
Dear sir, I want to implement GA in stock market prediction and want the Sharpe ratio as an objective function. If you could help it will be very helpful. Thank you very much in advance.
@@yuganshjain2519 Initial population is a set of random feasible solutions. Based on your constraints, use random functions in matlab or python to generate the solutions. Sometime repair process is required to ensure the solutions are feasible.
thank you lot please where I save the file matlab? because when I declare the function @name of function. I received the following message """ the file does not exixst))""" Thank you
hello sir but when i run i get Error running optimization. Too many output arguments. what should i do? what am i doing wrong?? if anyone knows pls help
That is the weakness of all search based optimization algorithms like GA, PSO, SA, etc. To overcome this issue, we should run the algorithm a number of times, say 30 times, and then select the best solution.
Hi, I don't have that background. But you can update the objective function and constraints, and use GA solver as shown in this video to solve problems in your fields.
Hi, can I ask you to which Matlab GA parameters correspond the parameters used in this scientific paper? "Analysis and dimensional synthesis of the DELTA robot for a prescribed workspace" - M.A. Laribi, L. Romdhane, S. Zeghloul I'm trying to make the dimensioning of a delta robot using this approach but the results of my optimization are not as good as the one obtained in this paper. The name of their parameters are different from the one in Matlab so I can't run the algorithm like them, and I think this is the problem. Could you suggest me how should I tune them? Thank you I leave here the parameters table with names in case you can't open the paper due to copyrights. The population size Nind: 70 The maximal generation number MaxGen: 100 The variable number Nvar: 4 The generation gap Ggap: 0.85 The mutation rate F1: 0.64 The shrinking mutation factor F2: 0.615 The recombination rate Opt1: 0.623 The shrinking recombination factor Opt2: 0.553
As far as I known, the most systemmatic method for parameter tuning is Taguchi experimental design. I used this method a lot in my research papers. For tuning parameters of GA solver, I recommend you to google: maximizing performance of Genetic Algorithm solver in matlab, to look at the first paper appears. Let's me know if you have any questions. Good luck.
Hello, I don't know hybird power system but I have several genetic algorithm codes to solve several optimization problems. Have a look at my channel and let me know which code you want - I will send it to you
@@SolvingOptimizationProblems So i want to do optimization Fuzzy Inference System Uses Genetic Algorithm to determine scholarship recipients from students. I have data in the form of numbers like GPA from students and parents' salaries. I have done fuzzy and I want to do again optimization with genetic algotirhm but i still cant find it. Any source code or video or refrences would very helpful Can you help me?
@@jonynababan2499 Hi, first, formulate the problem (equations of objective function and constraints) and then use optimization algorithm to find the optimal solution. There are various matlab and python codes of GA, PSO, and SA algorithms in my youtube channel which you can customize it to solve your problems.
@@SolvingOptimizationProblems To be more specific I want to optimize the membership function of fuzzy logic with genetic algorithms. Can you show me a refrences like video, code or anything? or if i'm wrong please correct
Hi, I don't have any GA code to solve optimization problems related to fuzzy logic. Only thing I can do for you now is to advise you to customize my GA codes to solve your problems. You can download various codes from my blog: learnwithpanda.com
thank you for this perfect video, I have just question about how can I insert my own initial population which is well defined, for example, my objective function is to calculate the sum of each gene of the chromosome that I know the exact value of each chromosome of the initial population. how can i do this please.
@@SolvingOptimizationProblemsI tried this proposition, but the result is not equal to the sum of the chromosome. I need your help, can you please send me an email to my address email: meriemmdioud@gmail.com
Sir.. could you please explain how to use ANN model as a fitness function for ga. Optimization tool has been removed in the 2021 version, could you please help me out. Please share your email.
I want to smooth a time series of future investment in a water network, I have a limitation that is the annual budget, I want to minimize the total investment based on an annual budget and cut all the investment that is above the budget line which is our constraint, I would appreciate it if you could help me towards my problem. thank you in advance
i am facing problems on an optimization problem. Can i get your email so that i can mail my doubts and ask about it.. Plz reply My problem is based on optimal water allocation to crops, having various linear, nonlinear and equality constraints.
Thank you very much sir for ur video and also can u make a video on Fuzzy logic controller optimization. I’m trying since many days but not getting perfect video related to Fuzzy optimization.
Many thanks for your interesting suggestion !
Very informative, thanks!
Glad it was helpful!
Thanks sir, it is a good one, but you need to be talking as you are taking step so that it can help us sir as some of us do not laptop to be seing it clearly sir.
Thanks for your suggestion!
Thanks bro!
lifesaver!
Glad it helped!
Great work sir ..need more your support
Thanks for watching!
Great video,
Anyone knows if the code’d run in the latest versions of Matlab where optimtool has been removed?
Thanks
I think the latest version of matlab does not have that tool
Hai sir well explained Thankyou so much. will you please make a video based on antenna array optimization via thinning by genetic algorithm
Many thanks for your suggestion
thank you for the explication, my questions are:
1/what are the criteria we are based on to be able to change parameters appearing in the optimization tool window
2/how can we verify the correct result that give the simulation, especially we have different results by changing parameters
1. For selecting the best parameters, I often use Taguchi experimental design method; 2. I don't know, maybe, check it manually
@@SolvingOptimizationProblems for more questions can you give me your Email? I'm a PHD student and i need more information
My email is on my blog in the description! Thanks for watching!
is there some commercial online solver available for matlab GA function?
I am not sure
how to write the objective function for GA if I have 7 input variable ?
Hi, just add x3, x4, x5, x6, and x7 in the same procedure as shown in the matlab code. Is that clear? If still any problems, just let me know. I will explain it in more details
Nice explained
thank you!
IS ROUTING AND WAVELENGTH ASSIGNMENT IN ELASTIC OPTICAL NETWORK CAN BE DONE USING GA IN MATLAB?
Maybe, but for highly constrained problems, it takes a long time.
i want to optimise the kuz ram fragmentation model how could the coding be like? can i use the GA solver still or .
Hi, we need to see the problem formulation before deciding whether the GA solver can be used or not? If your problem has many constraints, GA solver should not be used.
How can use ANN as objective function in GA optimization, I wanna minimize ANN value
The objective function is a math function that we want to max or min
Thank you sir for this video. Honestly, I need your help for my thesis. Could you please help me?
Hello, How can I help you? Can you be more specific?
@@SolvingOptimizationProblems i've send you an email this day sir. Hope you see it
OK, my pleasure!
can we use integration in the place of summation
i just want to find optimal control for my Mathematical model
how should i do it matlab
can u help??
Yes, it is possible
Thank you Sir for this perfect video, who to resolve this error
Optimization terminated: average change in the spread of Pareto solutions less than options.FunctionTolerance.
Change the termination condition. Thanks for watching
Thank you sir, It's really helpful. I have a project on optimization of leaf spring using a genetic algorithm. Can you please let me how to solve this problem.
Hello, thanks for your interest. May I see your problem formulation?
@@SolvingOptimizationProblems have sent my problem Screenshot on your Facebook sir.
Ok, thanks. But the photos are not very clear.
How can I use this in distribution system restoration??
hi, we need the objective function and constraints of the distribution system restoration
Solving Optimization Problems the constraints could be tested by load flow but but how to determine the objective function
@@MohammedIbrahim-px7cc objective function is what you want to maximize or minimize. for example, minimize the total cost, or maximize the utilization, etc
Can I solve the problem which having more than 2 variable?
Yes, of course. Even 10000 variables.
hi sir can I apply this code to appliance scheduling problem?
Hi, no, this solver is often used for continuous optimization. Scheduling is often discrete optimization. We need other methods. Please check other videos on this channel.
@@SolvingOptimizationProblems i see, because I use greedy method for my appliance sched and i dont know how to convert to Matlab, can you help me sir :/ I just want to get low cost for bill
Hi, you can design a genetic algorithm for scheduling optimization.
Thanks..
Can I solve problems that have maximization objective function using this solvar??and how?
Yes, but we need a small modification in the objective function
@@SolvingOptimizationProblems
Ok thanks, i send to you on messenger the problem can you check it please.. thanks a lot..
Thank you for sharing the video! Please I want to use my structure using Silvaco and I use GA with matlab
how I use AG matlab is an interface ( matlab and silvaco) Thank you
Hello, I've never tried to connect silvaco with Matlab. You should Google on how to make that connection! Good luck!
hi,thanks for such a good video.
however while running the function through optimization tool & through the generated code ,why i am getting different fval.
yeah that's normal because GA is a metaheuristic algorithm, not an exact algorithm.
I did not found out GA solver in the APPs, wondering to know does it a toolbox we need to purchase ?
You may try to type "gatool" on the Matlab commend window or consult the Matlab customer service directly
Hello sir...i am searching matlab code for linear antenna array optimization using genetic algorithm....please help
To solve linear programming problems, there are several free LP solvers in Python and Matlab. Have a look at my channel for details of how to use them.
Hi , cloud please help me , how to optimise pipe climbers problems
Sorry, I don't know that problem
Sir, I am dealing with a genetic algorithm problem where I cannot define my variables to the objective function. My variables generate a result in another simulation software. That result will be given in the objective function. With every simulation run result will be stored to the objective function. How to write the GA code to get optimized values of variables? NB- simulation platform is connected to Matlab and can be controlled by Matlab
It depends on complexity of your probem. Maybe you can use GA solver in Matlab or develop your GA from beginning. Have a look at some of my videos and then you should be able to decide to use GA solver or develop your own GA. Maybe you can customize my GA codes on my videos to solve your problems
how to use Optimization problem using Genetic algorithm in matlab for locating new fire station. i need your help me ???
In general, we start with problem formulation and design optimization algorithm to solve it
when I put generations number = 200 and run the code, it stops after 160 generations and gives the solution, does it mean I stuck in local minima??
Maybe and maybe not. It depends on a lot of things. Set the tolerance to 0 and try different sets of parameters.
Please can yo let me know How can I implement multiobjective optimization using matlab . Number of variables are 3 and number of responses are 3
Hi, that video has been made on my channel. Please have a look at a video with title: "How to solve triple objective optimization problems using Matlab". Thanks
Sir i want to minimise the distance between points. The number of points are huge (3000). How can i model it using GA?
Yes, GA can solve that problem. Your probem is similar to travelling salesman problem (TSP)?
@@SolvingOptimizationProblems Yess Sir
hi sir. i have a project which is to find the min value of the given fx (fx should be single-variable and can be whatever the user wants) by using genetic algorithm. for example the user enters f(x)=x^2-1 as an input and program should give us the min value for this function by using GA algorithm.
i don know how to implement it . it should be in python. plz help me
There are several python codes of genetic algorithm on this channel. Please have a look.
Dear sir,
I want to implement GA in stock market prediction and want the Sharpe ratio as an objective function. If you could help it will be very helpful.
Thank you very much in advance.
Hi, how can I help?
@@SolvingOptimizationProblems I am not getting how to initialize population for trading strategies.
If you can help I will be very thankful.
@@yuganshjain2519 Initial population is a set of random feasible solutions. Based on your constraints, use random functions in matlab or python to generate the solutions. Sometime repair process is required to ensure the solutions are feasible.
@@SolvingOptimizationProblems can you share you email id ?
@@SolvingOptimizationProblems I can explain more clearly to you .
thank you lot
please where I save the file matlab? because
when I declare the function @name of function. I received the following message """ the file does not exixst))""" Thank you
It must be put in the current working folder. We can change the location.
hello sir but when i run i get
Error running optimization.
Too many output arguments.
what should i do? what am i doing wrong??
if anyone knows pls help
Hi, that's because your objective function is not correct. Try to understand my objective function and customize it to solve your problems
Sir,can you make a video on duel level genetic algorithm..
I don't know that kind of genetic algorithm but i will check to see what i can do. Thanks
Each time I run the solver I get a different prediction. So how do I conclude that the obtained prediction is the best one?
Thanks in advance :)
That is the weakness of all search based optimization algorithms like GA, PSO, SA, etc. To overcome this issue, we should run the algorithm a number of times, say 30 times, and then select the best solution.
@@SolvingOptimizationProblems Thanks a lot
what is the reason for clearing the results each time?
@@BarathTirumuruhan There is no reason. It is just my habit.
Oh.. thanks again
Hello sir! Can you make a video optimizing a yagi-uda antenna by maximizing it's gain using GA.
Hi, I don't have that background. But you can update the objective function and constraints, and use GA solver as shown in this video to solve problems in your fields.
How to write 10 log base 10 in matlab?
@@deviroseobligado3159 Just use this syntax: y = log10(x)
Hi, can I ask you to which Matlab GA parameters correspond the parameters used in this scientific paper? "Analysis and dimensional synthesis of the DELTA
robot for a prescribed workspace" - M.A. Laribi, L. Romdhane, S. Zeghloul
I'm trying to make the dimensioning of a delta robot using this approach but the results of my optimization are not as good as the one obtained in this paper. The name of their parameters are different from the one in Matlab so I can't run the algorithm like them, and I think this is the problem.
Could you suggest me how should I tune them? Thank you
I leave here the parameters table with names in case you can't open the paper due to copyrights.
The population size Nind: 70
The maximal generation number MaxGen: 100
The variable number Nvar: 4
The generation gap Ggap: 0.85
The mutation rate F1: 0.64
The shrinking mutation factor F2: 0.615
The recombination rate Opt1: 0.623
The shrinking recombination factor Opt2: 0.553
As far as I known, the most systemmatic method for parameter tuning is Taguchi experimental design. I used this method a lot in my research papers. For tuning parameters of GA solver, I recommend you to google: maximizing performance of Genetic Algorithm solver in matlab, to look at the first paper appears. Let's me know if you have any questions. Good luck.
hello sir,can u provide me the matlab code for optimal sizing of Hybrid power systems??
Hello, I don't know hybird power system but I have several genetic algorithm codes to solve several optimization problems. Have a look at my channel and let me know which code you want - I will send it to you
Sir, why you use music instead of your voice?
If you use voice, it'll be more effective I think.
Hello, many thanks for your useful suggestion!
Hello Sir, i want to do optimization to fuzzy logic by using genetic algorithm.
how can i do that? please help me
Can you be more specific?
@@SolvingOptimizationProblems
So i want to do optimization Fuzzy Inference System Uses Genetic Algorithm to determine scholarship recipients from students.
I have data in the form of numbers like GPA from students and parents' salaries. I have done fuzzy and I want to do again optimization with genetic algotirhm but i still cant find it. Any source code or video or refrences would very helpful
Can you help me?
@@jonynababan2499 Hi, first, formulate the problem (equations of objective function and constraints) and then use optimization algorithm to find the optimal solution. There are various matlab and python codes of GA, PSO, and SA algorithms in my youtube channel which you can customize it to solve your problems.
@@SolvingOptimizationProblems
To be more specific I want to optimize the membership function of fuzzy logic with genetic algorithms.
Can you show me a refrences like video, code or anything?
or if i'm wrong please correct
Hi, I don't have any GA code to solve optimization problems related to fuzzy logic. Only thing I can do for you now is to advise you to customize my GA codes to solve your problems. You can download various codes from my blog: learnwithpanda.com
thank you for this perfect video, I have just question about how can I insert my own initial population which is well defined, for example, my objective function is to calculate the sum of each gene of the chromosome that I know the exact value of each chromosome of the initial population. how can i do this please.
Yes you can! Go to the "Options" -> "Population" -> "Initial Population"
@@SolvingOptimizationProblemsI tried this proposition, but the result is not equal to the sum of the chromosome. I need your help, can you please send me an email to my address email: meriemmdioud@gmail.com
Doesn't matter, we can just use only 1 sead initial solution. Let's have it a try
Sir.. could you please explain how to use ANN model as a fitness function for ga. Optimization tool has been removed in the 2021 version, could you please help me out. Please share your email.
Please use Matlab version 2016a.
I want to smooth a time series of future investment in a water network, I have a limitation that is the annual budget, I want to minimize the total investment based on an annual budget and cut all the investment that is above the budget line which is our constraint, I would appreciate it if you could help me towards my problem.
thank you in advance
Ok, send your objective function and constraints to my email. I would try my best to help.
i am facing problems on an optimization problem. Can i get your email so that i can mail my doubts and ask about it.. Plz reply
My problem is based on optimal water allocation to crops, having various linear, nonlinear and equality constraints.
Hi, thanks for watching! My information is in the description.
sir please share the .m file also
There is no m file. This is solver in Matlab version 2016a.