I am trying to work on a TSP genetic algorithm. I am new to GA and i have read lots of documents about it. I know it need to create initialization then find out the fitness of each individual then do mutation and so on. However, I am really new to JAVA programming. I am not sure how to create the initialization(initialise all individual of population to all valid tour without repeat). P.s. some resources code and tutorial online are too difficult for me.
That's what i got so far. Please point out what do i need and what i have done wrong and what else i need to add in code.
private void initialize(){
for(int i =0; i< population.length; i++){
for(int j =0; j < population[i].length; j++){
}
}