Package isula.aco.algorithms.antsystem
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.
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyDaemonAction
(ConfigurationProvider configurationProvider) 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.toString()
Methods inherited from class isula.aco.DaemonAction
getAcoPhase, getAntColony, getEnvironment, getProblemSolver, setAntColony, setEnvironment, setProblemSolver
-
Constructor Details
-
OfflinePheromoneUpdate
public OfflinePheromoneUpdate()
-
-
Method Details
-
applyDaemonAction
- Specified by:
applyDaemonAction
in classDaemonAction<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
-