public class AntSystem extends PathMediator
| Modifier and Type | Field and Description |
|---|---|
protected double |
alpha |
protected List<Ant> |
ants |
protected double |
beta |
protected Ant |
globalBestAnt |
protected int |
iteration |
protected SparseMatrix |
pheromones |
protected int |
populationSize |
protected double |
Q |
protected double |
rho |
protected int |
stateCount |
protected boolean |
symmetric |
protected double |
tau0 |
| Constructor and Description |
|---|
AntSystem() |
| Modifier and Type | Method and Description |
|---|---|
void |
antExploit() |
void |
antTraverse() |
void |
depositPheromone() |
void |
evaporatePheromone() |
Ant |
generateAnt() |
List<Integer> |
getCandidateNextStates(Ant ant) |
protected double |
getRewardPerStateTransition(Ant ant) |
void |
initialize() |
void |
iterate() |
void |
setProblemSize(int size) |
Ant |
solve() |
void |
transitStates(Ant ant) |
void |
updateAntCost() |
void |
updateGlobalBestAnt() |
evaluate, getCandidateNextStates, getReward, heuristicValue, nextDoubleprotected Ant globalBestAnt
protected double alpha
protected double beta
protected double Q
protected double rho
protected boolean symmetric
protected final SparseMatrix pheromones
protected int stateCount
protected int populationSize
protected double tau0
protected int iteration
protected double getRewardPerStateTransition(Ant ant)
public Ant generateAnt()
public void initialize()
public void updateAntCost()
public Ant solve()
public void updateGlobalBestAnt()
public void iterate()
public void antExploit()
public void antTraverse()
public void depositPheromone()
public void evaporatePheromone()
public void transitStates(Ant ant)
public void setProblemSize(int size)
Copyright © 2017. All rights reserved.