MindMap Gallery Ant Colony Algorithm
Ant colony algorithm is a bionic algorithm derived from simulating the path-finding method of ants in nature. During the movement of ants, they can leave pheromones on the path they pass for information transmission, and the ants can sense this substance during movement and use it to guide their movement direction. Therefore, the collective behavior of an ant colony composed of a large number of ants exhibits a positive information feedback phenomenon: the more ants that walk along a certain path, the greater the probability that latecomers will choose that path.
Edited at 2019-11-16 01:44:18Avatar 3 centers on the Sully family, showcasing the internal rift caused by the sacrifice of their eldest son, and their alliance with other tribes on Pandora against the external conflict of the Ashbringers, who adhere to the philosophy of fire and are allied with humans. It explores the grand themes of family, faith, and survival.
This article discusses the Easter eggs and homages in Zootopia 2 that you may have discovered. The main content includes: character and archetype Easter eggs, cinematic universe crossover Easter eggs, animal ecology and behavior references, symbol and metaphor Easter eggs, social satire and brand allusions, and emotional storylines and sequel foreshadowing.
[Zootopia Character Relationship Chart] The idealistic rabbit police officer Judy and the cynical fox conman Nick form a charmingly contrasting duo, rising from street hustlers to become Zootopia police officers!
Avatar 3 centers on the Sully family, showcasing the internal rift caused by the sacrifice of their eldest son, and their alliance with other tribes on Pandora against the external conflict of the Ashbringers, who adhere to the philosophy of fire and are allied with humans. It explores the grand themes of family, faith, and survival.
This article discusses the Easter eggs and homages in Zootopia 2 that you may have discovered. The main content includes: character and archetype Easter eggs, cinematic universe crossover Easter eggs, animal ecology and behavior references, symbol and metaphor Easter eggs, social satire and brand allusions, and emotional storylines and sequel foreshadowing.
[Zootopia Character Relationship Chart] The idealistic rabbit police officer Judy and the cynical fox conman Nick form a charmingly contrasting duo, rising from street hustlers to become Zootopia police officers!
Ant Colony Algorithm
1. Ant colony algorithm theory
I. Artificial ant colony optimization process
Find the shortest path from the ant nest to food based on the concentration of pheromone
Shorter paths have higher pheromone concentrations
When the artificial ant colony chooses a path, it consciously searches for the shortest path according to certain algorithmic rules. rather than blindly
m ants move between adjacent nodes of the graph, determined by the transition probability parameter Use the information stored in the current node to calculate the probability of reaching the node in the next step
1. Pheromone value – pheromone traces
Pheromone update method
1.挥发
2.增强
2. Visibility - a priori value
II. Similarities and Differences between Real Ants and Artificial Ants
Same point
1. a group of individuals who cooperate with each other
2. Trace and evaporation mechanisms using pheromones
3. Search for the shortest path and local movement
4. Random state transition strategy
Transition from one state to another adjacent state according to probabilistic decision rules
difference
1. Artificial ants live in discrete time
from one discrete state to another discrete state
2. Artificial ants have internal state
Memorable, remember where you have been
3. The amount of pheromones released by artificial ants is a function of the quality of the solutions generated
4. The timing of artificial ants updating pheromones depends on characteristics
III. Algorithm characteristics
Parallelism
self-organization
robustness
Positive feedback
2. Basic algorithm and its process
I. Parameter initialization
Time t=0 and the number of cycles Nc = 0, set the maximum number of cycles G, place m ants on n elements (cities), and let the initial information amount τij of each edge (i, j) on the directed graph ( t) = c, where c represents a constant, and the initial time Δτij (0) = 0.
II. Number of cycles Nc = Nc 1
III. Ant's taboo list index number k = 1
IV. Number of ants k = k 1
V. The individual ant selects element j and moves forward according to the probability calculated by the state transition probability formula, j∈{ Jk (i)}
VI. Modify the tabu list pointer, that is, move the ant to a new element after selecting it, and move the element to the taboo list of the individual ant.
VII. If the elements in set C have not been traversed completely, that is, k < m, then jump to step (4); otherwise, execute step (8)
VIII. Record the best route this time
IX. Update the amount of information on each path
Standard update method
Ant-cycle
Ant-quality
X. If the end condition is met, that is, if the number of cycles Nc ≥ G, the cycle ends and the program optimization result is output; otherwise, the tabu list is cleared and jumps to step (2).
3. Improved ant colony algorithm
I. elite ant colony algorithm
The corresponding pheromone modification formula is
II. max min ant system
Unlike the ant system, only one ant is updated with pheromones
The value range of the pheromone trajectory amount on each solution element is limited to
Initialize the pheromone to
III. Ant algorithm based on sorting
Before modifying the pheromone path, the ants are ranked according to the length of their travel (shorter first), The amount of pheromone released by an ant must be multiplied by the ant's ranking.
IV. adaptive ant colony algorithm
Find the optimal solution after each cycle and retain
Adaptively change the value of p
4. Description of key parameters
pheromone elicitor
Reflects the strength of the random factors in the path search of the ant colony, The larger the value, the greater the possibility that the ants will choose the path they have traveled before, and the randomness of the search will be weakened; when the value of the heuristic factor α is too small, it is easy for the ant colony's search to get stuck in the local area prematurely. optimal Generally [1,4]
Expectation heuristic factor β
It reflects the strength of the a priori and deterministic factors of the ant colony in the process of searching for the optimal path. The larger the value, the greater the possibility that the ant will choose the local shortest path at a certain local point. Although the convergence speed of the algorithm is accelerated at this time, the randomness of the ant colony's search for the optimal path is weakened, and the search is prone to falling into a local optimal solution at this time. Generally [3,5]
Pheromone evaporation coefficient p
The choice of size will directly affect the convergence speed and global search performance of the entire ant colony algorithm. If ρ is too small, it means that the possibility of previously searched paths being selected again is too high, which will affect the random performance and global search capabilities of the algorithm; When ρ is too large, it means that the pheromone on the path volatilizes relatively more. Although the random search performance and global search capability of the algorithm can be improved, too many useless search operations will inevitably reduce the convergence speed of the algorithm. Generally a number between 0 and 1
Number of ants m
The path traveled by m ants in a cycle is represented as a subset of the problem solution set When the number of ants increases, the changes in pheromones on a large number of previously searched solutions (paths) will tend to average, and the role of positive information feedback will not be obvious. Generally 10~50
Pheromone intensity Q
No special consideration, you can choose any
Maximum evolutionary algebra G
Generally 100~500