Click here to Skip to main content
16,009,965 members

Comments by j4rey89 (Top 7 by date)

j4rey89 6-May-16 7:33am View    
That's disappointing...all the time I was thinking that there was something wrong will my code.....So genetic algorithm with random changes alone wouldn't give optimal solution......What would be your suggestion, if I wanted an optimal solution? Perhaps combining Neural Network with Genetic Algorithm Or perhaps should I apply some use of minimum spanning tree(MST)? Will Simulated Annealing give a better result?
j4rey89 6-May-16 3:17am View    
yeah....so i thought I took it to the next phase by feeding it 10 scattered points.It usually gives me a decent solution of around 1300, however sometimes gives an output of around 1400-1500. But when I fed it 20 Cities, 9 out of 10 times it gave a horrible output of 3000, and occasionally an optimum output of around 1800.

I'd figure it would be right to ask this here, so I posted another question regarding it here (http://www.codeproject.com/Questions/1098223/Genetic-algorithm-for-TSP-getting-stuck-with-ineff). Looking forward to your input there. Many thanks.
j4rey89 6-May-16 1:55am View    
Ah.....Okay, I get it now, the loop, I wasn't calculating the return to the starting point....
j4rey89 5-May-16 7:08am View    
Hi Amt-Coder, I have come across similar problem,here's my full code (http://www.codeproject.com/Questions/1097913/Genetic-algorithm-for-TSP-getting-stuck-with-ineff), have you solved it? And would you mind sharing your project?
j4rey89 5-May-16 7:02am View    
How do I improve on it? I would like it to get as close as possible to the best solution(which is about 380-420). I would really appreciate it if you could suggest me any additional logic which I could add to the solution or perhaps any modification on the current solution.