|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.agmodel.bioinfo.antmap.Ant
Constructor Summary | |
Ant(AcoParamsBean params,
int n_city,
MersenneTwister rand)
Construct an Ant object |
Method Summary | |
void |
depart(double[][] choice_info)
Set out on a journey |
int[] |
getTourOrder()
Get tour order |
void |
move(double[][] choice_info)
Move to the next stop |
void |
prepareForJourney()
Prepare for a journey (Initialize flags for visited cities) |
void |
secretePheromone(double[][] tau)
Secrete pheromone on the tau matrix |
void |
setTourLength(double length)
Set tour length |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Ant(AcoParamsBean params, int n_city, MersenneTwister rand)
params
- ACO parametersn_city
- Number of citiesMethod Detail |
public void prepareForJourney()
public void depart(double[][] choice_info)
choice_info
- public void move(double[][] choice_info)
choice_info
- Heuristic information for choosing citypublic int[] getTourOrder()
public void setTourLength(double length)
length
- Tour lengthpublic void secretePheromone(double[][] tau)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |