Scout Bee#

(hivenas.core.abc.scout_bee)

Scout Bees’ class responsible for the initialization phase of the Artificial Bee Colony optimization.

class ScoutBee[source]#

Bases: object

Scout Bees’ static methods.

ABC Scout Bees are generally classified as a reset operator for Employee/Onlooker Bees.

Responsible for sampling the initial random FoodSources Xm→ and reseting employee bees when the abandonment limit is reached

static check_abandonment(employees, obj_interface)[source]#

Check if EmployeeBees reached abandonment limit

Parameters
static sample(obj_interface)[source]#

Sample a random point from the objective function

Parameters

obj_interface (ObjectiveInterface) – the objective interface that defines the boundaries of the problem

Returns

the randomly sampled initial position

Return type

FoodSource