Solving TSP problem using Ant colony optimizer.
Just define your function and call Optimizer with your configuration, and then train it.
colony = Colony(ant_num = 20,
matrix = test ,
base_formun = 10,
T_SA = 1,
SA_rate = 0.9,
beta = 10,
p_local = 0.4,
alpha = 0.2,
q_0 = 0.7
)
cost_history ,path_history = colony.training(50)
Pull requests are welcome.