You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ga_TSP.m
    path of file: ./repos/Mathematical_Modeling/Modern_optimization_algorithm
    
    the code of the file until where you have to start completion: % .      http://blog.csdn.net/robert_chen1988/article/details/53003300
% .      遗传算法
function ga_TSP  
  
% mainly amended by Chen Zhen, 2012~2016  
  
CityNum=30; %you chan choose 10, 30, 50, 75  
[dislist,Clist]=tsp(CityNum);  
 
    
function ga_TSP  
  
% mainly amended by Chen Zhen, 2012~2016  
  
CityNum=30; %you chan choose 10, 30, 50, 75  
[dislist,Clist]=tsp(CityNum);  
  
inn=30; %初始种群大小  
gnmax=500;  %最大代数  
pc=0.8; %交叉概率  
pm=0.8; %变异概率  
  
%产生初始种群  
s=zeros(inn,CityNum);  
for i=1:inn  
    s(i,:)=randperm(CityNum);  
end