create_population: Create A Population

Description Usage Arguments Details Value Examples

Description

create_poulation A function to create the primary population of candidate strategies.

Usage

1
create_population(individuals)

Arguments

individuals

a number indicating how many individuals are in one population.

Details

There are five sites the robot can see: the current field and the fields north, east, south, and west of the robot. Each of the sites can contain a wall, evidence or nothing. Consequently, the robot can possibly be in 243 situations. In each situation, the robot can perform one of the following six actions: move north, east, south, and west, stay in one field, or pick up something. An individual is one specific strategy to move through the grid. create_poulation creates for each individual in the population a random strategy table: 243 moves are randomly sampled and assigned to each of the situations.

Value

A list containing a population of x data.frames of solutions.

Examples

1

Tabea123/FindMyCat documentation built on June 5, 2019, 7:56 a.m.