Open vmask25 opened 1 year ago
Hi Simone! Thank you so much for your detailed review and kind words. Your tips are very useful and I think you fixed THE biggest problem in my code which I couldn't figure out, which is the initial population selection. I had tried to implement mechanisms like removal of duplicates and checking if the solution is optimal, but I figured they didn't really matter for high values of N. However, just for completeness, I think I should at least implement the proper stopping condition. Again, thank you so much for your feedback!
Hi! I’m Simone and I’m relatively new to Python actually so I’ll try my best to understand your code, but if I miss something or write something wrong feel free to answer and correct me.
You structured your solution using a dedicated class, like in a fully object oriented language so it’s really ordered and clear. Your cross-over is not a 1-cut or 2-cut like I’ve seen in many other colleagues’ solutions, but it’s a uniform crossover, nice idea! We didn’t try it! Even if for higher values of N it doesn’t find good solutions (I don’t know if I missed something while copying your code in order to try it on my PC but with N=500 it explodes to w=12598), I think this program is very well done and can be easily improved with some small changes, and the effort spent here is evident. Really compliments!
Major:
Suggestions:
Minor:
In the end I would say that what I wrote is written with all the respect and understanding of the effort you put in this laboratory, hoping this review could help you too, very nice job!