Class Mechanism

java.lang.Object
com.adriangarcia.metaheuristics.tsmbfoa.Mechanism

public class Mechanism extends Object
Mechanism class is in charge of performing external techniques to fulfill the CNOP optimization. In this class, the mathematical evaluation and the mechanisms that generate the rotation angles of the TS-MBFOA chemotaxis are performed.
Version:
1.0
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Empty constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double[][]
    evaluationFyC(Configurator configurator, Problem problem, Function function)
    This function evaluates the mathematical expression of the CNOP objective function, also identifies the type of constraints, and evaluates them taking into account the sum of constraint violations.
    protected double[]
    generateAngles(int numberVariables)
    Method that returns a vector of double random algorithms for the spinning of bacteria in chemotaxis.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Mechanism

      protected Mechanism()
      Empty constructor.
  • Method Details

    • generateAngles

      protected double[] generateAngles(int numberVariables)
      Method that returns a vector of double random algorithms for the spinning of bacteria in chemotaxis.
      Parameters:
      numberVariables - size of objective function variables
      Returns:
      an angle vetor with numberVariables size
    • evaluationFyC

      protected double[][] evaluationFyC(Configurator configurator, Problem problem, Function function)
      This function evaluates the mathematical expression of the CNOP objective function, also identifies the type of constraints, and evaluates them taking into account the sum of constraint violations. It finishes by returning a matrix with size Sb X number of variables.
      Parameters:
      configurator - object of the class Configurator
      problem - object of the class Problem
      function - object of the class Function
      Returns:
      a matrix with size Sb X number of variables, in it the value of the objective function already evaluated.