|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.antminer.DefaultPheromoneUpdater
net.sf.myra.cantminer.sequential.MaxMinPheromoneUpdater
public class MaxMinPheromoneUpdater
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 |
---|
public static final java.lang.String EVAPORATION_FACTOR
public static final java.lang.String P_BEST
public static final double INITIAL
protected double factor
protected double pBest
protected double tMax
protected double tMin
protected double currentBest
Constructor Detail |
---|
public MaxMinPheromoneUpdater()
Method Detail |
---|
public void initialize(net.sf.myra.framework.Colony colony)
initialize
in interface net.sf.myra.framework.PheromoneUpdater
initialize
in class net.sf.myra.antminer.DefaultPheromoneUpdater
public void evaporate(net.sf.myra.framework.Colony colony)
evaporate
in interface net.sf.myra.framework.PheromoneUpdater
evaporate
in class net.sf.myra.antminer.DefaultPheromoneUpdater
public void update(net.sf.myra.framework.Trail trail, net.sf.myra.framework.Colony colony)
update
in interface net.sf.myra.framework.PheromoneUpdater
update
in class net.sf.myra.antminer.DefaultPheromoneUpdater
public double getTMax()
public double getTMin()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |