About me: I am a 30-year-old software engineer who works with genetic algorithms. I have been a long time watcher here on RU-vid, and partially owe my success through university to it.
I love programming, it is not only a job but a hobby. I also love working with genetic algorithms and believe that they are underutilized, incorrectly used, and misjudged. I wanted to take this opportunity to share some of the things that I find most exciting. So if you're interested, come along for the ride.
Possible answer to question at end: First add up all the "x" values. Then add up all the "y" values. Then square them both, add those results. Take the square root of that. .
Can the code be downloaded somewhere? I am a Pythonista, but have been thinking about learning C# , this looks like a goo way to o it as I am already familiar with GA.
Hey! Thanks for such a great video however a question crossed my mind concerning the implementation of a fitness function for a multi-objective optimization (MO) problem. Since you explained that for MO problems, different objectives need to have their separate scales/axes, then to find the fittest individual wouldn't it work if I calculated the distance magnitude (for a 2D minimization problem, or two objective functions x and y to be minimized it would be d=sqrt(x^2+y^2))? Therefore, the fittest individual would be the one with the shortest d, meaning it is closest to the origin in terms of x and y. Thanks in advance for your response.
Hey, Imagine if you have three solutions A = (1,5) B = (5,1) C = (2,2) By your logic, C would be the best solution, however it is worse in the first objective than solution A, and is worse in the second objective than solution B. Additionally say you only had A and B, your logic would not be able to tell them apart. The purpose of the Pareto front is a way for us to trade objectives against one another - specifically when we have more than one objective because direct comparisons are not possible without giving up some information.
heloo can u help me ValueError Traceback (most recent call last) Cell In[12], line 15 12 return y 14 ###Read in desired frequency from command line ---> 15 frequency = int(sys.argv[1]) 17 ### Create empty arrays 18 input = [0]*48000 ValueError: invalid literal for int() with base 10: '-f'
why does x2 shift to the left when evaluated at n+1? I can't udnerstand that! I thought n was in the time domain so adding to it would shift x2 to the right....
Hey Gary, I found your videos extremely useful to do uni assignment. Never have I thought I would enjoy a series so much regarding GA. Unfortunately, I have to build one in MatLab, so I mostly saw the theoretical approach and skimmed through the code writing. Nevertheless, a huge huge thank you for your effort and I wish you the best!
Hey, I really appreciate the feedback. I really enjoy making videos and want to make more but they are very time consuming & I’ve had some real life changes come up that are consuming more of my time now. I still plan to make more but will likely be moving onto other topics & concepts
That is part of the beauty of having each objective in its own axis, the scale of different objectives will not interact with one another, always providing the best trade off between objectives.
Hey mate, I don’t have any videos going through python on my channel other than quite an old one (and that was about creating digital filters). The theory in my videos will work across any language though, so it would be worth watching these and finding a Python tutorial. I’ve found freeCodeCamp to be good, they have a channel here on RU-vid, ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-rfscVS0vtbw.html.
@@TutorialsWithGary I like channel and content, despite it's not python that i need to focus on it, but I'll keep watching, thank you for the link ✌️☺️
@@TutorialsWithGary Yes... I tried this before but just wanted to know exactly where to put it. I mean, where to write this statement. I am just learning it.
Thank you for this wonderful video. However, I am having issue with references. I try to add them by clicking project, add references but nothing happens. even System one is not found. Is it caused by visual studio version you have used to create the project? I was able to run all previous examples by setting project path to lib folder of the project with no issue but this one is blocking me.
Hey while I do cover both on my channel and they are effectively two sides of the same coin. That said, how they are used practically are quite different. Correllation is used to determine how one signal correlates with another, in other words how similar two signals are, or how similar a portion of a signal is to another. Convolution is used to determine one signals impact on another / on a system. Practically, they are the same operation with the kernel or smaller signal has its samples flipped.
awesome tutorial man. just wanted to ask about one thing, why do we return the individual with higher fitness value in tournament selection? Shouldn’t we minimise the distance for next generations?
Yes it is common, during the breeding process, there’s no guarantee that offspring will be more fit than their parents, so we add them all into a big group and take the top X for the next generation.
Thank you for replying quickly... The tutorial is super amazing for new comers like me. However, I could not find out how to zoom since the screen freezes. Is there a way, I can run it and see output on console or in form without seeing those graphical computations? that could remove the barriers for those who wants to experiment it without concept of gaming. Just to run it on console.
is there any preferred screen size or library? I get only city displayed on screen as very big image and almost another one appearing but after that nothing else
Thank you for replying quickly... The tutorial is super amazing for new comers like me. However, I could not find out how to zoom since the screen freezes. Is there a way, I can run it and see output on console or in form without seeing those graphical computations? that could remove the barriers for those who wants to experiment it without concept of gaming
Good day sir. I really love your videos. Can Is it possible to implement the algorithm in PHP? I want to build an automate timetable generator. Also sir. Please can you make a video about hybridizing genetic and firefly algorithms? Thank you sir
Nice video! thank you very much ! I notice you choose circle shift when m increase. can you explain a bit more why or what difference to choose circle shift ?
Thanks I really appreciate that! I don’t make any money off this channel, but if you think others in your class might benefit from the content id appreciate a recommendation :)
Hey hey spectacular video, extremely clear and accurate: I need to learn GA for my job but every resource that I read was mentioning the pareto front without explaining it... Thank you!
I'm learning GA so I can build a course scheduler for the computer science department in my school. I've read a lot of materials and I have questions mostly on the implementation aspect. This series has helped me get an answer to some of those questions at the same time making GA easy to understand and I'm not done with the series yet... thank you 🙂
for the Vo/Vi = -SCR2, when you choose both the currents to be moving away from the node, the final result is +SCR2 which isn't consistent with the case for currents going into the node. could it be that the direction of currents chosen matters?
Good day, nice series, keep it up. Looking for the next. Although I have a concern, do you have any recommendation on how to setup the SFML you are using. It's kind a daunting to me because last time I remember when I initiate to use SFML, I installed it and it looks like I messed up regarding the minGW something, thus one of my program (GridLab-D) ended up not working as I expected it to be. I don't know if that's the real reason, though. Thank you in advance.
Hey, thanks for the kind words. It sounds like you were using SFML with C++, with C# it's a lot simpler. You should be able to download my same project and be up and running without much issue. If you can't get it working, send me a message here and I can provide some help. - Luke
I downloaded it too but SFML probably is causing unexpected behavior. what is the preferred target platform? 64-bit, 32-bit or AnyCPU. in my case, I am selecting AnyCPU.
Great video, but you shouldn't name your parents as 'mother' or 'father', because I am assuming you are using genderless individuals. If you should you individuals with specific gender (male individuals for example would have different inner traits and so on) this naming convention would be proper.
That is a good point, I was honestly looking to introduce a gendered crossover at some point - but it would have been a better idea to refactor the name when I did. Thanks for the feedback