net.sf.myra.cantminer.sequential
Class MaxMinEdgePheromoneUpdater

java.lang.Object
  extended by net.sf.myra.cantminer.EdgePheromoneUpdater
      extended by net.sf.myra.cantminer.sequential.MaxMinEdgePheromoneUpdater
All Implemented Interfaces:
net.sf.myra.framework.PheromoneUpdater

public class MaxMinEdgePheromoneUpdater
extends EdgePheromoneUpdater

Author:
Fernando Esteban Barril Otero

Field Summary
static java.lang.String EVAPORATION_FACTOR
          The property key under which the evaporation factor is stored.
static double INITIAL
          The initial pheromone value (this is an arbitrary 'big' value).
static java.lang.String P_BEST
          The property key under which the p_best probability is stored.
 
Constructor Summary
MaxMinEdgePheromoneUpdater()
           
 
Method Summary
 void evaporate(net.sf.myra.framework.Colony colony)
           
 double getTMax()
          Returns the maximum pheromone value allowed.
 double getTMin()
          Returns the minimum pheromone value allowed.
 void initialize(net.sf.myra.framework.Colony colony)
           
 void update(net.sf.myra.framework.Trail trail, net.sf.myra.framework.Colony colony)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVAPORATION_FACTOR

public static final java.lang.String EVAPORATION_FACTOR
The property key under which the evaporation factor is stored.

See Also:
Constant Field Values

P_BEST

public static final java.lang.String P_BEST
The property key under which the p_best probability is stored.

See Also:
Constant Field Values

INITIAL

public static final double INITIAL
The initial pheromone value (this is an arbitrary 'big' value).

See Also:
Constant Field Values
Constructor Detail

MaxMinEdgePheromoneUpdater

public MaxMinEdgePheromoneUpdater()
Method Detail

evaporate

public void evaporate(net.sf.myra.framework.Colony colony)
Specified by:
evaporate in interface net.sf.myra.framework.PheromoneUpdater
Overrides:
evaporate in class EdgePheromoneUpdater

initialize

public void initialize(net.sf.myra.framework.Colony colony)
Specified by:
initialize in interface net.sf.myra.framework.PheromoneUpdater
Overrides:
initialize in class EdgePheromoneUpdater

update

public void update(net.sf.myra.framework.Trail trail,
                   net.sf.myra.framework.Colony colony)
Specified by:
update in interface net.sf.myra.framework.PheromoneUpdater
Overrides:
update in class EdgePheromoneUpdater

getTMax

public double getTMax()
Returns the maximum pheromone value allowed.

Returns:
the maximum pheromone value allowed.

getTMin

public double getTMin()
Returns the minimum pheromone value allowed.

Returns:
the minimum pheromone value allowed.


Copyright © 2013. All Rights Reserved.