Class AntQ

  • All Implemented Interfaces:
    java.util.Comparator<Ant>

    public abstract class AntQ
    extends AntColonySystem
    • Constructor Detail

      • AntQ

        protected AntQ()
    • Method Detail

      • checkParameters

        public void checkParameters()
                             throws AntFrameworkException
        Description copied from class: Metaheuristic
        Checks whether or not all of the algorithm's parameters exists. If some obligatory parameter do not exist, the function throws an exception. If some other parameter do not exists but it is possible to set a default value, here is the place to do it.
        Overrides:
        checkParameters in class AntColonySystem
        Throws:
        AntFrameworkException
      • getMaxNeighbor

        public double getMaxNeighbor​(int i)
      • localPheromonesUpdate

        public void localPheromonesUpdate​(int i,
                                          int j)
        Description copied from class: AntColonySystem
        Updates pheromone trail of a current local solution
        Overrides:
        localPheromonesUpdate in class AntColonySystem
        Parameters:
        i - position i of the solution
        j - position j of the solution
      • pheromonesUpdate

        public void pheromonesUpdate()
        Description copied from class: Metaheuristic
        Updates the pheromone trail contained in the enviroment E according to some ACO algorithm specific logic
        Overrides:
        pheromonesUpdate in class AntColonySystem