// inits step of the algorithm // usage: use it once for initialization public void init() { antin = new AntInteraction(alpha, beta, rho, q, numOfAnts, cities); bestTour = new List <int>(); tourLength = double.MaxValue; checkBestTour(); algStep = 1; }
public override void init() { antin = new AntInteraction(Mode.antColonySystem, alpha, beta, q, numOfAnts, cities, pheromoneTrailInitialValue, acsQ0, tau0); bestTour = new List <int>(); tourLength = double.MaxValue; checkBestTour(); algStep = 1; }