Learn R Programming

marinepredator (version 0.0.1)

initialize_population: Initialize Population

Description

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

Usage

initialize_population(SearchAgents_no, dim, ub, lb)

Value

A matrix of initialized positions

Arguments

SearchAgents_no

Number of search agents

dim

Number of dimensions

ub

Upper bounds for each dimension

lb

Lower bounds for each dimension

Examples

Run this code
# 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