Struct abc::HiveBuilder [] [src]

pub struct HiveBuilder<Ctx: Context> { /* fields omitted */ }

Manages the parameters of the ABC algorithm.

Methods

impl<Ctx: Context> HiveBuilder<Ctx>
[src]

Creates a new hive.

  • context - Factory-like state that can be used while generating solutions.
  • workers - Number of working solution candidates to maintain at a time.

Sets the number of "bees" that will pick a candidate to work on at random.

This defaults to the number of workers.

Sets the number of times a candidate can go unimproved before being reinitialized.

This defaults to the number of workers.

Sets the number of worker threads to use while running.

Sets the scaling function for observers to use.

Activates the HiveBuilder to create a runnable object.