Interface Foraging

All Known Implementing Classes:
Tsmbfoa

public interface Foraging
Foraging provides an interface for defining the process of bacterial foraging: chemotaxis, grouping, reproduction and elimination-dispersal. If you implement the Foraging object it can be used while building the Tsmbfoa object.
This interface can be used to include other BFO-based algorithms.
Version:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    chemotaxis(Configurator configurator, Problem problem, Function function)
    In the chemotaxis method the chemotaxis process of TS-MBFOA is performed, where two swims are interleaved, in each cycle one exploitation or exploration swim is performed.
    void
    eliminationDispersal(Configurator configurator, Problem problem, Function function)
    In the eliminationDispersal method, the worst bacterium is eliminated from the population based on feasibility rules and a new one is randomly generated.
    void
    The grouping method is a TS-MBFOA process, which is applied in the middle cycle of the chemotaxic process.
    void
    reproduction(Configurator configurator)
    In the reproduction method, the bacteria are ordered based on the constraint management technique, eliminating the worst Sb - Sr bacteria and duplicating the best ones.
    void
    updateStepSize(Configurator configurator, Problem problem)
    The updateStepSize method updates the TS-MBFOA step size.
  • Method Details

    • chemotaxis

      void chemotaxis(Configurator configurator, Problem problem, Function function)
      In the chemotaxis method the chemotaxis process of TS-MBFOA is performed, where two swims are interleaved, in each cycle one exploitation or exploration swim is performed.
      Parameters:
      configurator - object of the class Configurator
      problem - object of the class Problem
      function - object of the class Function
    • grouping

      void grouping()
      The grouping method is a TS-MBFOA process, which is applied in the middle cycle of the chemotaxic process.
    • reproduction

      void reproduction(Configurator configurator)
      In the reproduction method, the bacteria are ordered based on the constraint management technique, eliminating the worst Sb - Sr bacteria and duplicating the best ones.
      Parameters:
      configurator - object of the class Configurator
    • eliminationDispersal

      void eliminationDispersal(Configurator configurator, Problem problem, Function function)
      In the eliminationDispersal method, the worst bacterium is eliminated from the population based on feasibility rules and a new one is randomly generated.
      Parameters:
      configurator - object of the class Configurator
      problem - object of the class Problem
      function - object of the class Function
    • updateStepSize

      void updateStepSize(Configurator configurator, Problem problem)
      The updateStepSize method updates the TS-MBFOA step size.
      Parameters:
      configurator - object of the class Configurator
      problem - object of the class Problem