Package isula.aco.algorithms.antsystem
Class OnlinePheromoneUpdate<C,E extends Environment>
java.lang.Object
isula.aco.AntPolicy<C,E>
isula.aco.algorithms.antsystem.OnlinePheromoneUpdate<C,E>
- Type Parameters:
C
- Class for components of a solution.E
- Class representing the Environment.
The pheromone update policy of Ant System. After an Ant has built a solution,
pheromone is deposited in each of the solution components.
- Author:
- Carlos G. Gavidia
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
applyPolicy
(E environment, ConfigurationProvider configurationProvider) protected abstract double
getNewPheromoneValue
(C solutionComponent, Integer positionInSolution, E environment, ConfigurationProvider configurationProvider) Calculates the pheromone value to be used in the pheromone matrix update.Methods inherited from class isula.aco.AntPolicy
getAnt, getPolicyType, setAnt
-
Constructor Details
-
OnlinePheromoneUpdate
public OnlinePheromoneUpdate()
-
-
Method Details
-
applyPolicy
- Specified by:
applyPolicy
in classAntPolicy<C,
E extends Environment>
-
getNewPheromoneValue
protected abstract double getNewPheromoneValue(C solutionComponent, Integer positionInSolution, E environment, ConfigurationProvider configurationProvider) Calculates the pheromone value to be used in the pheromone matrix update.- Parameters:
positionInSolution
- Position of the component in the solution.solutionComponent
- Solution component.environment
- Environment with problem specific information.configurationProvider
- Algorithm configuration.- Returns:
- New pheromone value.
-