Artificial Bee Colony Optimizer#

(hivenas.core.abc.abc)

The main Artificial Bee Colony optimization algorithm.

class ArtificialBeeColony(obj_interface, colony_size=7, employee_onlooker_ratio=0.43)[source]#

Bases: object

Artificial Bee Colony optimizer

colony_size#

bee population size; defaults to value set in Params

Type

int, optional

employees#

list of all EmployeeBee used in the optimization

Type

list

eo_colony_ratio#

employees to onlookers ratio; defaults to value set in Params

Type

float, optional

obj_interface#

the objective interface defining the task boundaries

Type

ObjectiveInterface

onlookers#

list of all OnlookerBee used in the optimization

Type

list

results_df#

the main results DataFrame containing all evaluated results

Type

pandas.DataFrame

scouts#

list of all ScoutBee-sampled positions used in the optimization. Scout Bees are not instantiated.

Type

list

scouts_count#

number of scouts / parallel explorations. Follows the classical ABC 1-to-1 scout-to-employee ratio

Type

int

total_evals#

total number of evaluate calls (for both Employees and Onlookers)

Type

int

optimize()[source]#

Main optimization loop