net.sf.myra.cantminer.sequential
Class MaxMinPheromoneUpdater

java.lang.Object
  extended by net.sf.myra.antminer.DefaultPheromoneUpdater
      extended by net.sf.myra.cantminer.sequential.MaxMinPheromoneUpdater
All Implemented Interfaces:
net.sf.myra.framework.PheromoneUpdater

public class MaxMinPheromoneUpdater
extends net.sf.myra.antminer.DefaultPheromoneUpdater

Version:
$Revision: 2339 $ $Date:: 2011-01-25 11:35:30#$
Author:
Fernando Esteban Barril Otero

Field Summary
protected  double currentBest
          The quality of the current best solution.
static java.lang.String EVAPORATION_FACTOR
          The property key under which the evaporation factor is stored.
protected  double factor
          The pheromone evaporation factor (default 0.95);
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.
protected  double pBest
          The p_best probability (default 0.05) to estimate the tMin value.
protected  double tMax
          The maximum pheromone value.
protected  double tMin
          The minimum pheromone value.
 
Constructor Summary
MaxMinPheromoneUpdater()
           
 
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

factor

protected double factor
The pheromone evaporation factor (default 0.95);


pBest

protected double pBest
The p_best probability (default 0.05) to estimate the tMin value.


tMax

protected double tMax
The maximum pheromone value.


tMin

protected double tMin
The minimum pheromone value.


currentBest

protected double currentBest
The quality of the current best solution.

Constructor Detail

MaxMinPheromoneUpdater

public MaxMinPheromoneUpdater()
Method Detail

initialize

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

evaporate

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

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 net.sf.myra.antminer.DefaultPheromoneUpdater

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.