Class ElitistAntSystem

  • All Implemented Interfaces:
    java.util.Comparator<Ant>
    Direct Known Subclasses:
    AntSystemRank

    public abstract class ElitistAntSystem
    extends AntSystem
    This class belong to the core classes of the Ant Framework.

    Implements the Elitits Ant System algorithm. It is essentially the same as Ant System, but the arcs of the best-so-far tour are reinforced on each iteration using the daemonActions() function. Empirical results shows that this behaves better that Ant System.

    • Field Detail

      • epsilon

        protected static final int epsilon
        Determine the weight given to the best-so-far tour Used in the daemonActions() method
        See Also:
        Constant Field Values
    • Constructor Detail

      • ElitistAntSystem

        protected ElitistAntSystem​(Enviroment E)
        Constructor. Allocates the enviroment.
        Parameters:
        E - enviroment
      • ElitistAntSystem

        protected ElitistAntSystem()
        Constructor. Empty constructor.
    • 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 AntSystem
        Throws:
        AntFrameworkException
      • daemonActions

        public void daemonActions()
        Description copied from class: Metaheuristic
        This function is called on each iteration and it provides a way to implement centralized actions
        Overrides:
        daemonActions in class AntSystem