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:
objectScout 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
employees (list) – a list of
EmployeeBeeto check their trial count / abandonment limitobj_interface (
ObjectiveInterface) – the objective interface, needed tocore.abc.scout_bee.ScoutBee.samplea new position if the abandonment limit is reached
- 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