Random_walk_around_antlion: Perform Random Walk Around Antlion

View source: R/ALO_opt.R

Random_walk_around_antlionR Documentation

Perform Random Walk Around Antlion

Description

Function simulates random walk of an ant within the boundaries influenced by an antlion's position.

Usage

Random_walk_around_antlion(dim, Max_iter, lb, ub, antlion, current_iter)

Arguments

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.

Value

A numeric matrix of shape (N, dim) representing the position of the ant in each step of the random walk.

Note

This function used inside ALO function to update the position of ants.


metaSVR documentation built on Aug. 21, 2025, 5:58 p.m.