Could anyone please review my code
https://github.com/LeoUpperThrower4/GeneticAlgorithm

Check why its not working

Let's go with I gave my thoughts on review (get your code up to standard.) Now you reveal it's not working.

That's far too vague and asking a lot for folk to slog through the entive app.

Pare it down to just the line you can't get to work. Where is that?

Before you post again read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question about COMPOSING A GOOD QUESTION. "It doesn't work" is going to go downhill too fast.

Read this book;
Genetic Algorithms in Java Basics 1st ed. Edition
by Lee Jacobson (Author), Burak Kanber (Author)

I'm sorry for not being so specific, first time asking for help online.
So, I did understand the logics behind a genetic algorithm and I'm trying to apply it without copying anyone's code. I wask kind of succesful, but the population doesn't evolve at all, it keeps creating individuals with random genes.

I think you might also get more input if you posted your code here instead of making people jump through hoops at another site to get to it. Also, this thread will be of no use to anyone else in the event that your code is removed from the other site.

commented: Hoops and loops for some. Yes, let's keep it in one spot. +15

@L. There you used "it" again. To ask me to jump through hoops (nod to RJ) to get the code, decode/read to figure out your logic is quite the high jump.

Where's your design document? That is, in psuedo code or English, how your code works. Sometimes folk proceed right to code which is fine for small things but this isn't a small thing.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.