Random_walk_around_antlion | R Documentation |
Function simulates random walk of an ant within the boundaries influenced by an antlion's position.
Random_walk_around_antlion(dim, Max_iter, lb, ub, antlion, current_iter)
dim |
An integer show the number of dimension (parameters) of the problem to optimize. It indicate the number of parameters to be optimized. |
Max_iter |
An integer indicate maximum number of iterations. |
lb |
A numeric vector that show lower bounds of the search space. One value per dimension. |
ub |
A numeric vector that show upper bounds of the search space. One value per dimension. |
antlion |
A numeric vector representing the position of the selected antlion. |
current_iter |
The current iteration count. |
A numeric matrix of shape (N, dim)
representing the position of the ant in each step of the random walk.
This function used inside ALO function to update the position of ants.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.