powered by
Initializes the first population of search agents (prey) for the Marine Predators Algorithm.
initialize_population(SearchAgents_no, dim, ub, lb)
A matrix of initialized positions
Number of search agents
Number of dimensions
Upper bounds for each dimension
Lower bounds for each dimension
# Initialize a population of 25 agents in 30 dimensions with bounds [-100, 100] population <- initialize_population(25, 30, 100, -100)
Run the code above in your browser using DataLab