Initializes the first population of search agents (prey) for the Marine Predators Algorithm.

initialize_population(SearchAgents_no, dim, ub, lb)

Arguments

SearchAgents_no

Number of search agents

dim

Number of dimensions

ub

Upper bounds for each dimension

lb

Lower bounds for each dimension

Value

A matrix of initialized positions

Examples

# Initialize a population of 25 agents in 30 dimensions with bounds [-100, 100]
population <- initialize_population(25, 30, 100, -100)