Solve Multi-Objective Optimization Problems Using GA Solver in Matlab

  Рет қаралды 46,713

Solving Optimization Problems

Solving Optimization Problems

Күн бұрын

In this video, I’m going to show you a simple but effective way to solve various multi-objective optimization problems. This approach is very easy to implement, and it is based on multi-objective genetic algorithm solver (multi-objective GA solver) in Matlab. Let’s see how to use this optimization solver to solve a simple multi-objective optimization problem.
SUBSCRIBE to receive more videos on the topic of "Solving Optimization Problems", please click here: / @solvingoptimizationpr...
Matlab/Python codes of my Genetic Algorithm, Particle Swarm Optimization, Simulated Annealing Algorithm: bit.ly/2Aj0TQ6
HERE ARE 6 LISTS OF MY VIDEOS YOU MAY BE INTERESTED IN:
1. Optimization Using Genetic Algorithm:
• Optimization Using Gen...
2. Optimization Using Particle Swarm Optimization:
• Optimization Using Par...
3. Optimization Using Simulated Annealing Algorithm:
• Optimization Using Sim...
4. Optimization Using Optimization Solvers:
• Optimization Using Opt...
5. Optimization Using Matlab:
• Optimization Using Matlab
6. Optimization Using Python:
• Optimization Using Python
If you have any questions, please let me know by leaving a comment below.
About Me: learnwithpanda...
My Blog: learnwithpanda.com
My Facebook: bit.ly/36234ot
My LinkedIn: bit.ly/3bbth5e
Free Music from KZbin Audio Library.
Thank you for watching - I really appreciate it :)
All of my videos on the topic of Solving Optimization Problems: #SolvingOptimizationProblems, #MultiObjectiveOptimization, #UsingGAsolver
© Copyright by Solving Optimization Problems. ☞ Do not Reup

Пікірлер: 128
@nightknight8070
@nightknight8070 3 жыл бұрын
This video really help me a lot! Thano you! I don't have any problem when try to run the optimization. However, when the optimization running, it won't show the graph as in the video. How can i fix it?
@nightknight8070
@nightknight8070 3 жыл бұрын
*Thank you
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
Please try run the exact function as shown in the video first and you should get the same result. And then update and try other functions later. Good luck!
@ghazijumaa1648
@ghazijumaa1648 4 жыл бұрын
Dear Sir, How we can optimize the constants in equations Like : Y=c1*X1+ C2 *X2^c3 I mean finding the optimum values for c1, c2, c3 based on data set?
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Hi, what is the objective function? Y, X, or other thing?
@ghazijumaa1648
@ghazijumaa1648 4 жыл бұрын
@@SolvingOptimizationProblems Y is a target variable and X is a predictor variable,
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
So, in this case, consider c1, c2, c3 as decision variables to optimize your objective function
@ghazijumaa1648
@ghazijumaa1648 4 жыл бұрын
@@SolvingOptimizationProblems Can you share a video about this type of problem, really I searched all the KZbin and I did not find any one.
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
There are several videos on my channel which solve similar problems. The solving principle is the same; although, it is not possible to find exact problem. Please let me know if you still have any difficulty!
@techno-wonders
@techno-wonders 3 жыл бұрын
If we want to save show the values of pareto front variables and decision variables along with plot how can we save this
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
Export the results to work space and then save it
@techno-wonders
@techno-wonders 3 жыл бұрын
By export we get code in workspace
@techno-wonders
@techno-wonders 3 жыл бұрын
Do we get that table also then how to retrieve it in presentable eformat
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
Hi, please have a look at my video related to triple objective optimization for how to do so. Thanks
@severnsevern1445
@severnsevern1445 4 жыл бұрын
Please in the pareto front graph do we have possibility to visualize more than objectives functions?
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Yes, it is possible to visualize 3 objectives. Have a look at my video named: "How to solve triple-objective optimization problems using Matlab". Thanks for your interest!!!
@tekesteaman5105
@tekesteaman5105 10 ай бұрын
thanks a lot for clear and supportive video. please help me if any video related to the method of changing multi objective to single objective and how to solve by genetic algorithm
@SolvingOptimizationProblems
@SolvingOptimizationProblems 9 ай бұрын
Thank you for watching and suggestions!
@ssirailsiuofstso9332
@ssirailsiuofstso9332 4 жыл бұрын
Your explanation is great. Can you talk about how to use the NSGA-|| algorithm for multi-objective optimization? Thank you.
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
I will upload NSGA_II soon. Thanks for watching
@ssirailsiuofstso9332
@ssirailsiuofstso9332 4 жыл бұрын
@@SolvingOptimizationProblems Thank you very much and look forward to your update!
@severnsevern1445
@severnsevern1445 4 жыл бұрын
Great video! Please can you make a video on Kigring surrogate model.
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Thanks for your suggestions! I will try it as soon as possible.
@siwanedi2243
@siwanedi2243 2 жыл бұрын
Optimization running. Error running optimization. Undefined function 'nonlinear_constraints' for input arguments of type 'double'. why like that sir?
@SolvingOptimizationProblems
@SolvingOptimizationProblems 2 жыл бұрын
Check the format of all related functions
@siwanedi2243
@siwanedi2243 2 жыл бұрын
how to check the format ??
@yousrat4396
@yousrat4396 2 жыл бұрын
hello sir, I have a question please in the table we get of pareto front variables and decision variables why do we get multiple results ? are they in order ? like is the results of index 1 the optimal one to choose ?
@SolvingOptimizationProblems
@SolvingOptimizationProblems 2 жыл бұрын
In multi objective optimization, multiple optimal solutions exist
@veniciabond1058
@veniciabond1058 4 жыл бұрын
Thanks a lot professor, this is the only video I have found so far with similar problem to what am stuck on and uses gamultiobj toolbox- your video is so much better and easy to follow. However being new to Matlab and self studying. am stuck on this after a few hours and readings. I am attempting to graph a bi-objective problem: ie maximize f1 = x1 & f2 = x2; with these two constraints (one quadratic and one linear inequality): 𝑥1^2 + 𝑥2^2 - 1 ≤ 0 & 2𝑥1 + 𝑥2 - 2≤0. How do you set it up and graph it in gamultiobj? The graphs I am getting compared to what I expect are too different. Do you write both constraint equations in one script like you did for your two quadratic constraints? Most importantly how do you enter the objective functions and constraints in the toolbox window? Tried several variations. Thanks
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Hi, thanks for watching! All of your questions will be answered in this video. Your problem is 99% similar to the problem in this video. Just follow the instruction in this video, you should be able to solve it. Good luck!
@veniciabond1058
@veniciabond1058 4 жыл бұрын
@@SolvingOptimizationProblems Thanks for taking your time to respond. Yes, as I said earlier it is similar, I followed it step by step to the end but the graph is totally different from expected. I created two scripts like you did: first script I just replace your functions with the f1 & f2 I typed above (your question is minimize, mine is maximize- so I put a negative infront of both f1/f2, note even if I dont put a negative the graph plotted still comes out wrong). for the second script I wrote it as: function [C Ceq] = nonlinear_constraints(Input) x1 = Input(1); x2 = Input(2); C(1) = x1^2 + x2^2 - 1; Ceq(1) = 2*x1 + x2 - 2; Tried others such as using C instead of C(1), entering 2*x1 + x2 - 2 as a matrix (A= [2 1], b =[2]) under Constraints in the linear inequality constraints section, etc. There are no bounds given so I tried several bounds (feasible region is within circle of radius 1). Any ideas on what I am doing wrong? Thanks and happy holidays
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Hi, in your problem, there is no equality constraint, so Ceq = []. If you still have some difficulty, just let me know, so that, I will make a video on solving multi objective max problems
@veniciabond1058
@veniciabond1058 4 жыл бұрын
​@@SolvingOptimizationProblems the first attempt I made was: C(1) = x1^2 + x2^2 - 1; C(2) = 2*x1 + x2 - 2; Ceq = []; everything else is as you did but the graph of f1/f2 was still not as expected. So as mentioned I tried other versions including since C(2) is linear I entered it as a matrix in the linear inequality constraints of the toolbox ((A= [2 1], b =[2]) with the nonlinear script altered as - C = x1^2 + x2^2 - 1; Ceq = [];
@veniciabond1058
@veniciabond1058 4 жыл бұрын
@@SolvingOptimizationProblems Thanks, i think it will definitely help some people even if they may not be in a situation similar to mine
@nadhirmehellou9403
@nadhirmehellou9403 4 жыл бұрын
Thanks a lot,
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
You are most welcome
@ShathaAlhamad
@ShathaAlhamad 8 ай бұрын
thank you , can you please help me in solving the base station placement problem in mobile communication using GA , the fitness function has two objective functions ,and the binary encoding is used to select the active or non active base station from the possible set of the base stations
@SolvingOptimizationProblems
@SolvingOptimizationProblems Ай бұрын
thanks for your suggestions
@nishantdhiman3361
@nishantdhiman3361 2 жыл бұрын
Hello sir, Thanks for this helpful video. I just want to know if this can directly be used for a dataset or do I need to get a regression equation first. I have a dataset with 3 input and two outputs
@SolvingOptimizationProblems
@SolvingOptimizationProblems 2 жыл бұрын
I think with your dataset, we need to do the regression
@worshipacademy6402
@worshipacademy6402 4 жыл бұрын
if I have absolute values? for example: | x(1)-x(2) | . What is the comand?
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Hi, abs(x(1)-x(2))
@준-m4t
@준-m4t 4 жыл бұрын
I have seen a lot of your videos. I have seen that most of the functions (when there are 2 variables) are solved with genetic algorithms. But I have 10 variables, and I want to solve a multipurpose function. I have organized the equation, and I don't know how to assign it and how to specify it. I want to talk in detail.
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Hi, I prefer to use 2 dimensional problems to test my algorithm because it is possible to visualise the search space. To extend from 2 varibles to 1000 variables, it is not very much different.
@putrafallo3074
@putrafallo3074 2 жыл бұрын
sir,, i want to ask you how to get power generation unit scheduling with power target for example 40 MW load on 5 power plant units using multi objective genetic algorithm optimizing tool...thankyou sir 🙏
@SolvingOptimizationProblems
@SolvingOptimizationProblems 2 жыл бұрын
We need the problem formulations, objective function and constraints, and then follow the instruction in this video. Thanks for watching
@putrafallo3074
@putrafallo3074 2 жыл бұрын
@@SolvingOptimizationProblems thankyou sir 🙏
@tatianamoreira2753
@tatianamoreira2753 3 жыл бұрын
Hi, thank you for the helpful video. I am only receiving one solution point on my pareto front, do you know how to fix this? And, can you use linear constraints in the gamultiobj?
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
Hi, increase the population size, you will have more chance to get more solutions. Thanks for watching!
@tatianamoreira2753
@tatianamoreira2753 3 жыл бұрын
@@SolvingOptimizationProblems Hi, thanks for the response. I increased the population size, even to 10,000, and still have the same issue.
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
Check the constraints, what happens if you remove all the constraints?
@aminebenrhouma9287
@aminebenrhouma9287 4 жыл бұрын
hi can i change a parameter in the objective fonction in every run of the genetic algorithm?
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Hello, for that, we need to develop our own GA code. This GA solver in Matlab. It is not possible to do so.
@aminebenrhouma9287
@aminebenrhouma9287 4 жыл бұрын
@@SolvingOptimizationProblems thank you
@ismailamara4431
@ismailamara4431 4 жыл бұрын
Hi I'm using the built-in function (ga) in MATLAB. I want to make a constraint on a variable RD which is not one of the inputs variables (xi), as A.x
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
That constraint can be nonlinear constraint. Look at my m.file regarding nonlinear_constraints in this video for how to do it.
@s.vinothjohnprakash5957
@s.vinothjohnprakash5957 3 жыл бұрын
I need to minimize x2,x4,x6 using GA toolbox matlab For the function f(x)=(x1*x2)+(x3*x4)+(x5*x6) Subject to constraints 0≤x2≤100 0≤x4≤ 20 0≤x6≤ 10
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
You mean: finding x2, x4, x6 to minimize f(x)? If that's the case, find my video about single objective GA solver in Matlab
@indrajithkatkar3236
@indrajithkatkar3236 4 жыл бұрын
Are the constraints used of equality or in equality type??? And what are the design variables
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Yes, for constrained problems, please check other videos on this channel. Thanks
@indrajithkatkar3236
@indrajithkatkar3236 4 жыл бұрын
@@SolvingOptimizationProblems My doubt is which type of constraints are used here?
@indrajithkatkar3236
@indrajithkatkar3236 4 жыл бұрын
@@SolvingOptimizationProblems Can u send me the link of multi objective and minimization problem solved in matlab with the point of application purporse
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Here it is: kzbin.info/www/bejne/roaUn4Fji91ojs0
@yugao-yv7gi
@yugao-yv7gi Жыл бұрын
Hello sir,Your video is of great help to me. Do you know how to use gpops2 software package to realize adaptive h pseudo-spectral method and adaptive p pseudo-spectral method? I would appreciate it if you could answer it for me
@SolvingOptimizationProblems
@SolvingOptimizationProblems Жыл бұрын
Hello, I don't know that software. Thanks for watching!
@selcukkizilcaoglu6595
@selcukkizilcaoglu6595 4 жыл бұрын
When I put run and answer to me this problem; Optimization running. Error running optimization. Undefined function 'nonlinear_constants' for input arguments of type 'double' what is soluition for this message?
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Hi, the format of the "nonliear_constraints" is not correct.
@selcukkizilcaoglu6595
@selcukkizilcaoglu6595 4 жыл бұрын
@@SolvingOptimizationProblems thank you for answer. I passed read to note on video about constraints.
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Ok, thanks
@kalimullah2773
@kalimullah2773 3 жыл бұрын
Hello Error running optimization. Undefined function 'nonlinear_constraints' for input arguments of type 'double'. I facing the above error, why?
@kalimullah2773
@kalimullah2773 3 жыл бұрын
its solved, thanks
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
Great! Good luck.
@kalimullah2773
@kalimullah2773 3 жыл бұрын
@@SolvingOptimizationProblems Thanks
@miaadrina
@miaadrina 3 жыл бұрын
@@SolvingOptimizationProblems hi. I'm facing the same problem. What should i do?
@imambayuprasetya2435
@imambayuprasetya2435 3 жыл бұрын
@@kalimullah2773 i facing the s same problem, how to solve it?
@nadiarizkys
@nadiarizkys 3 жыл бұрын
what if i want to use discrete values for some variables?
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
We need to update the objective function
@lalitgrover4581
@lalitgrover4581 3 жыл бұрын
Hi, I tried with the same example as you gave in a video but I receive an error. Error: File: ga.m Line: 4 Column: 14 Function with the duplicate name "ga" cannot be defined.
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
Maybe because of matlab version. I used matlab version 2016a
@amianifineug1353
@amianifineug1353 3 жыл бұрын
Thank you lot! please I am working on structue transistor using Silvaco I want to use GA using matlab, Please how use matlab as an inteface with silvaco (Thank you)
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
I don't know how to connect Matlab to Silvaco
@selvarajp1703
@selvarajp1703 Жыл бұрын
Sir could you please add a multi objective pso algorithm
@SolvingOptimizationProblems
@SolvingOptimizationProblems Жыл бұрын
Great suggestion! Many thanks
@selvarajp1703
@selvarajp1703 Жыл бұрын
@SolvingOptimizationProblems I am waiting for your vedio
@kelzangmpee8496
@kelzangmpee8496 4 жыл бұрын
Hello sir , How do we optimize with summation objected function ? I have sent the image of the formula in the Facebook. Waiting for your response Thankyou sir
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Let me check. Thanks
@كهرباءوميكانيكاالمصانع
@كهرباءوميكانيكاالمصانع 4 жыл бұрын
If you found the
@sudiptamishra4297
@sudiptamishra4297 3 жыл бұрын
Hello sir, Please help me. I can't rectify the error. Undefined function 'nonlinear constraints' for input arguments of type 'double'
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
Your format of the function is not correct
@hamidmehrabi8853
@hamidmehrabi8853 3 жыл бұрын
I did it but I received this error: Undefined function 'nonlinear_constraint' for input arguments of type 'double' How can I fix this error?
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
Check the format of the m file
@sagnikbhattacharya6071
@sagnikbhattacharya6071 3 жыл бұрын
I had the same problem today. Then I realised that I have not added the path of folder (in which I saved those files) to matlab. So open "home" Open "Set path" Click "add folder" Find the folder where you saved these two files. Save and close And it should work.
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
Great to hear that. Good luck!
@sharadinduroy3430
@sharadinduroy3430 3 жыл бұрын
please give some helpful video for coding multi objective simulated annealing
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
Many thanks for the interesting suggestion!
@nihith323
@nihith323 4 жыл бұрын
sir for me it is showing gaplot pareto not supported for thisalgorithm
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Hello, I don't understand what you mean. Can you be more specific?
@techno-wonders
@techno-wonders 3 жыл бұрын
How to save parento front function values and variables
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
We can export the results to work space and then save it.
@alsaidalmetwally5671
@alsaidalmetwally5671 4 жыл бұрын
can u provide me the Matlab code for multi objective optimization for 3 responses and 3 independent variables. I have conducted 3 power of 3 full factorial design applied to three different responses. Thus I have 27 treatments and 27 for each variable
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Hi, please have a look at video about triple objective optimization on this channel. We can generate Matlab code as well
@kssb-k2o
@kssb-k2o 4 жыл бұрын
I have a bunch of constrains for the constraints in inventory problem. How do I sort it?
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
For constrained problems, we need to add a constraint handling mechanism.
@meditationmusicmahimam3690
@meditationmusicmahimam3690 3 жыл бұрын
Same here... Can you please help me?
@bkarthikeya4438
@bkarthikeya4438 3 жыл бұрын
@@meditationmusicmahimam3690 I'll
@imexmaven7071
@imexmaven7071 4 жыл бұрын
Hello sir, how do I use suitable niching method to solve discrete multi model TSP using GA in matlab? Sir, if you can share suitable code, it is a big help for my research.
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
I often use Taguchi experiment design to select the optimal parameters of the algorithm. This is GA solver in Matlab. Just install Matlab and you will have it. No need to download the code.
@imexmaven7071
@imexmaven7071 4 жыл бұрын
Is Taguchi experiment design a niching method?? Sir, I want to combine GA with nicing method and get multiple soutions.
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Hi, I use Taguchi method to select the optimal parameters of my genetic algorithm to maximize its performance
@keyrusalia6735
@keyrusalia6735 4 жыл бұрын
what if the function contains symbolic variable?
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
In this method, all variables must have some numerical values, like 2, 2.5, 8, etc. If not, we need to convert them to.
@soumialahfair3171
@soumialahfair3171 2 жыл бұрын
thank you , please can you help me in this ziggurat method x1= 3.44 v=9.958e-3 (v:surface of one stairs and they have all same v ) n =128 (n:number of my stairs ) function f= exp(-(x^2)/2) using j=randi(n) ( j; normal distributio) u=2* rand([0,1]) (u ;uniform distribution ) how can i find x2 x3 x4... and y1 y2 y3 .... (y1 : wz can find it with this v/x1 )
@SolvingOptimizationProblems
@SolvingOptimizationProblems 2 жыл бұрын
I think you need to do regression before applying the solver
@midhunap3779
@midhunap3779 4 жыл бұрын
How to do ANN-GA optimization in Matlab
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
I don't know ANN.
@mandal143
@mandal143 4 жыл бұрын
If variable is binary, it is possible
@SolvingOptimizationProblems
@SolvingOptimizationProblems 4 жыл бұрын
Yes, but a small modification is required.
@vipuldave8866
@vipuldave8866 3 жыл бұрын
Clearly of video is not proper
@SolvingOptimizationProblems
@SolvingOptimizationProblems 3 жыл бұрын
Thanks for your feedback.
How to Solve Triple-Objective Optimization Problems Using Matlab
8:10
Solving Optimization Problems
Рет қаралды 11 М.
Multi-Objective Optimization with Linear and Nonlinear Constraints in Matlab
14:31
Solving Optimization Problems
Рет қаралды 11 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
How To Solve An Optimization Problem Using Genetic Algorithm (GA) Solver In Matlab
16:11
Solving Optimization Problems
Рет қаралды 47 М.
What is a Genetic Algorithm?
4:42
MATLAB
Рет қаралды 289 М.
Optimization by using Genetic Algorithm in Matlab
15:27
LO WEI HOU MCS201002
Рет қаралды 19 М.
Genetic Algorithm: General Concept, Matlab Code, and Example
7:20
Solving Optimization Problems
Рет қаралды 140 М.
Multi-Objective Optimization in Matlab
5:47
Solving Optimization Problems
Рет қаралды 27 М.
Constrained Optimization: Intuition behind the Lagrangian
10:49
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН