Class OfflinePheromoneUpdate<C,E extends Environment>

java.lang.Object
isula.aco.DaemonAction<C,E>
isula.aco.algorithms.antsystem.OfflinePheromoneUpdate<C,E>
Type Parameters:
C - Class for components of a solution.
E - Class representing the Environment.

public class OfflinePheromoneUpdate<C,E extends Environment> extends DaemonAction<C,E>
Update pheromone process triggered after every ant has build a feasible solution. This action only considers the increment caused by pheromone deposit.
Author:
Carlos G. Gavidia
  • Constructor Details

    • OfflinePheromoneUpdate

      public OfflinePheromoneUpdate()
  • Method Details

    • applyDaemonAction

      public void applyDaemonAction(ConfigurationProvider configurationProvider)
      Specified by:
      applyDaemonAction in class DaemonAction<C,E extends Environment>
    • getPheromoneDeposit

      protected double getPheromoneDeposit(Ant<C,E> ant, Integer positionInSolution, C solutionComponent, E environment, ConfigurationProvider configurationProvider)
      Calculates the pheromone value to be used in the pheromone matrix update.
      Parameters:
      ant - Ant instance doing the update.
      positionInSolution - Position of the component in the solution.
      solutionComponent - Solution component.
      environment - Environment with problem specific information.
      configurationProvider - Algorithm configuration.
      Returns:
      New pheromone value.
    • toString

      public String toString()
      Overrides:
      toString in class Object