Genetic Algorithm: General Concept, Matlab Code, and Example

Поділитися
Вставка
  • Опубліковано 1 лис 2024

КОМЕНТАРІ • 133

  • @SolvingOptimizationProblems
    @SolvingOptimizationProblems  Рік тому +1

    Here is the latest version of this GA: ua-cam.com/video/CR-SFkfs0Mg/v-deo.html

  • @farmad100
    @farmad100 3 роки тому

    It is suggested to add commentary in the back ground rather than playing music to make your good videos even more effective and useful. cheers.

  • @danielgonzalorodriguez4090
    @danielgonzalorodriguez4090 Рік тому

    Great video!

  • @cafecoa
    @cafecoa Рік тому

    Good morning sir. Do you have the Matlab code using GA for the MaxOne problem?

    • @SolvingOptimizationProblems
      @SolvingOptimizationProblems  Рік тому

      No, but I will it soon. Thanks for your suggestion!

    • @cafecoa
      @cafecoa Рік тому

      @@SolvingOptimizationProblems Thank you very much! Waiting for the solution to this problem.

  • @chandrasekhar681
    @chandrasekhar681 3 роки тому +1

    Hiii sir Thank you for your video and codes its a nice platform to learn optimization, we are lucky to have these videos done by you. in the same way can you make a video on Fuzzy logic controller (FLC) optimization using the GA and PSO.

    • @SolvingOptimizationProblems
      @SolvingOptimizationProblems  3 роки тому

      Hello, thanks for your interest. I don't have background to solve your specific problems. You cam study my GA and PSO codes and then modify to solve your problems.

  • @mustafamohammed6900
    @mustafamohammed6900 2 роки тому

    i want to implement ga to optimize MPPT for the PV system, how I can modify your ga code?

  • @jaganmukesh4295
    @jaganmukesh4295 3 роки тому

    Hi can you tell me what changes has to be made to perform minimization problems

  • @gadistriandini1717
    @gadistriandini1717 4 роки тому +2

    Sir, where you mention location of crossover probability and mutation probability in this code?

    • @SolvingOptimizationProblems
      @SolvingOptimizationProblems  4 роки тому

      Hello, they are in lines 6 and 7 in the main code

    • @gadistriandini1717
      @gadistriandini1717 4 роки тому

      @@SolvingOptimizationProblems can you teach me how to show the surface and contour in the main code?

    • @SolvingOptimizationProblems
      @SolvingOptimizationProblems  4 роки тому

      Hi, that would be outside the scope of this channel. You can search for instruction using the term: plot surface and contour in matlab

  • @CliClo-j1h
    @CliClo-j1h Рік тому

    Hi how can I connect EES code to Matlab code for multiobjective optimization

  • @armandoariaktaaloanis1949
    @armandoariaktaaloanis1949 3 роки тому +1

    Sir, what if using the python code? Where's the video I can watch

  • @oadams2
    @oadams2 Рік тому

    Hello Sir, would you be able to tell me what number theory is used when converting the resultant integer (from the 20 bits) to a decimal between the bounds of -3 and 3? I can see the general formula commented in the population function but I can't find any further info behind this formula. Thanks a bunch!

  • @chandanmahata5241
    @chandanmahata5241 Рік тому

    I want to do two objective optimizations. Can you please modify the code for two obj? then I can buy

  • @徐紹芳-i3t
    @徐紹芳-i3t 2 роки тому

    Hi sir, I used the version R2022a. But it says (bi2de ) is an unrecognized function. So I tryed the bin2dec, and it said the input must be a string. How can I convert binary to real-value ? Thank.!

  • @doaajameel2674
    @doaajameel2674 2 роки тому

    Hi sir,i need to find a transfer function of a dc motor based on its performance (curve) using genetic algorithm . who can i do that ?please help me.

  • @amianifineug1353
    @amianifineug1353 2 роки тому

    Merci beaucoup
    je travaille sur les transistors en utilisant plusieurs variables
    et une fonction fitness en fonction de i
    please comment faire

    • @SolvingOptimizationProblems
      @SolvingOptimizationProblems  2 роки тому

      You can modify this GA (at least in objective function and constraints) to solve your problems

  • @farmad100
    @farmad100 3 роки тому

    excellent lesson

  • @hiamabdelhamid6897
    @hiamabdelhamid6897 3 роки тому +1

    Hi sir, what is the type of selection, crossover and mutation you used in this code?
    what are constraints and optimum of this example?
    what is the type of benchmark you used here?
    Thanks in advance

  • @rashinkhera996
    @rashinkhera996 4 роки тому

    very informative ..thanks sir.

  • @pankajymca
    @pankajymca 2 роки тому

    Hi sir , i want to know the objective function value which is near to 8 and shown in figure 1 , so we have to set that value or any criteria to select that values as in many papers I have seen its value near to 1200 . So can you please explain that.

    • @SolvingOptimizationProblems
      @SolvingOptimizationProblems  2 роки тому

      That depends on the objective function. Different objective function has a different max or min value

  • @yaraali4493
    @yaraali4493 4 роки тому

    Thanks..but if i have maximum problem..how i can use GA solver in matlab?

  • @sezenozturk701
    @sezenozturk701 Рік тому

    this is helpful thanks but instead of that weird music you could explain the code steps so we could get what you done better plus leave the video more calm.

  • @njudalotaibi9681
    @njudalotaibi9681 3 роки тому

    Can you solve coloring problem and labeling L(h,k)-Labelling problem by using Genetic algorithm.. ?
    and do you provide an online private tutor lessons for student ?

  • @vipuldave8866
    @vipuldave8866 3 роки тому

    Respected sir, can you tell me the music tone played in the background of the video... i really like that

  • @kabiraquliyeva4779
    @kabiraquliyeva4779 Рік тому

    Hi. How to deal with the problem: Write a complete Matlab (or Python) program to solve the optimization problem using GA for Levy Function. Find the optimal points.
    Is there somebody who can help me?

  • @kevinkabila5996
    @kevinkabila5996 3 роки тому

    Can you please shows us more about neural networks genetics code in matlab

  • @sreelakshminambiar804
    @sreelakshminambiar804 2 роки тому

    Can you please do a video on doing clustering on MNIST data? Thanks in advance

  • @user-hj2ed5pe6j
    @user-hj2ed5pe6j 3 роки тому +1

    what is x, y and H . Not comments about those variables are there. So asking.

  • @9332034480
    @9332034480 4 роки тому +1

    Line no. 12 cant be read in the function selection. Can u pls tell that

  • @kiyameribo2504
    @kiyameribo2504 3 роки тому

    Hi, thank you very much for brief presentation can you upload Polyblock Outer Approximation (PA) Algorithm am new to this algorithm if u have related link or material ?

  • @temesegenabuhay9408
    @temesegenabuhay9408 3 роки тому

    sir how to locate optimum location for fire station using genetic algorithms and simulated annealing algorithms using MATLAB code . i need your help

  • @shauryakhare3567
    @shauryakhare3567 3 роки тому

    Can you explain the code step by step,it would be really helpful.

  • @sumisofi3647
    @sumisofi3647 3 роки тому

    Sir may I know how to design objective function for cognitive radio

    • @SolvingOptimizationProblems
      @SolvingOptimizationProblems  3 роки тому

      Objective function is what you want to maximize or minimize. I don't have background to understand the cognitive radio.

    • @sumisofi3647
      @sumisofi3647 3 роки тому

      @@SolvingOptimizationProblems pls give me your mail Id

    • @SolvingOptimizationProblems
      @SolvingOptimizationProblems  3 роки тому

      Hi, check my info in the video description. Thanks

  • @jeffreyeiyike2358
    @jeffreyeiyike2358 2 роки тому +1

    what if we have constraint both equality and inequality

  • @sandipanbaruah7536
    @sandipanbaruah7536 3 роки тому

    Hi Sir. Thank you a lot for providing the codes and showing the process flow of genetic algorithm.
    I have just one doubt.
    In the function 'evaluation.m' , in line no.6 , where does the formula for finding 'x' come from?
    It would be hugely helpful if I can know some background for that formula. Thanks.

  • @talhasahin3009
    @talhasahin3009 2 роки тому

    How can I find Fitness Value ?

  • @박준태-t5d
    @박준태-t5d 3 роки тому

    Sir. Can i ask you one thing??
    Why the solution values are change with every implementation??

  • @bingli1989
    @bingli1989 3 роки тому

    Hi, how to deal with the problem if there are variables in the objective function?
    Such as :
    Y = ObjectiveF(X,a,b)
    Y = X(1)*a - X(2)*b;
    a and b are variables.

  • @thianendiaye7642
    @thianendiaye7642 Рік тому

    comment on télécharge le code après inscription?
    j'ai l'impression que c'est une arnaque. je n'ai qu'un jour et à chaque fois je retombe sur la même page qui me demande de me connecter.

  • @antoniomarcelino6238
    @antoniomarcelino6238 3 роки тому

    Hi. What's the name of the Benchmark example (equation's name)? Thank you very much for the video.

  • @groveraruquipa9933
    @groveraruquipa9933 2 роки тому

    Do you have some problems for the optimization of a workspace or parameters o a robot manipulator maybe?? :)

  • @wassilaajbar2425
    @wassilaajbar2425 3 роки тому

    Thank you very much for the code, it is very useful, please, what exactly is the name of Free Music from UA-cam Audio Library.

  • @sreeprakashnarayanakalam2321
    @sreeprakashnarayanakalam2321 3 роки тому

    Hi,
    Request process parameters optimization in micro maching process using MATLAB (GA) make a viedo using anyone research paper or citations please

  • @salahsalahhamadi5626
    @salahsalahhamadi5626 Рік тому

    music name in end of the video ?

  • @kirantamilalagan
    @kirantamilalagan 4 роки тому +1

    Sir, can I use GA for size optimization of steel trusses

    • @kirantamilalagan
      @kirantamilalagan 4 роки тому +1

      Sir, I have an optimization problem for finding the optimum size of the steel trusses with single objective , multi variables and constraints. I'm confused of selecting the algorithm. If GA can be use to find then, please help me how to add constraints in MATLAB code. Thank you❤️

    • @harishdr2867
      @harishdr2867 4 роки тому

      Ss even I'm struck with that problem

    • @SolvingOptimizationProblems
      @SolvingOptimizationProblems  4 роки тому +1

      Yes, GA can solve that problem. GA is a popular stochastic optimization algorithm for complex large scale problems. GA for constrained problems will be uploaded soon. Thanks for watching!

    • @SolvingOptimizationProblems
      @SolvingOptimizationProblems  4 роки тому +1

      A simple method to deal with constraints is to use penalty function. Let's try with this first to see what happen.

    • @kirantamilalagan
      @kirantamilalagan 4 роки тому

      @@SolvingOptimizationProblems Thank you for your kind response sir.
      I'm struggling to find my objective function and penalty function for my given optimization problem. Can i have your mail id or any other way to contact , ill send my question. Please help me sir❤️🤧.

  • @mrreus1148
    @mrreus1148 4 роки тому

    Thanks, very helpful video! But what if I want to add constaints to this code ?

  • @AK-ov1fe
    @AK-ov1fe 2 роки тому

    Hi, thank you so much for the explanation and the code. I have been working on a project related to same aspect in MATLAB. I copied your code as it is to try and run and understand things more clearly but while doing so I am facing following error.
    Index exceeds the number of array elements (102).
    Error in selection (line 21)
    if N

  • @vishwanathamguled2315
    @vishwanathamguled2315 3 роки тому

    can u send me the code ?

  • @kastermad8459
    @kastermad8459 4 роки тому

    it was very interesting. thank you.

  • @aybogac4848
    @aybogac4848 4 роки тому

    I have very bad genetic ! Im sure ⚠️😣😖

  • @Pk01121992
    @Pk01121992 3 роки тому

    Best and mean value is not converging....

    • @SolvingOptimizationProblems
      @SolvingOptimizationProblems  3 роки тому

      Convergence is not everything as long as the GA found the proven optimal solution. If we want more convergence, just set the population size smaller.

    • @Pk01121992
      @Pk01121992 3 роки тому

      @@SolvingOptimizationProblems Then how we decide obtained solution is optimal? .which is optimal mean or average?

    • @Pk01121992
      @Pk01121992 3 роки тому

      @@SolvingOptimizationProblems which optimization technique will give global optimal??

    • @SolvingOptimizationProblems
      @SolvingOptimizationProblems  3 роки тому

      we should run the algorithm several times and then select the best one which can be considered the optimal solution.

  • @thefinancialagent9608
    @thefinancialagent9608 4 роки тому

    python

  • @chakri620
    @chakri620 4 роки тому

    irritating music

  • @othmanaljbory3649
    @othmanaljbory3649 Рік тому

    Silav, ez algorîtmayek hewce dikim.topkis-veinott

    • @SolvingOptimizationProblems
      @SolvingOptimizationProblems  Рік тому

      I don't understand your comment

    • @othmanaljbory3649
      @othmanaljbory3649 Рік тому

      Hello, I need a genetic algorithm programming code for a bi-level programming model consisting of two objective functions and two constraints ‏‪4:16‬‬‏