Class Mechanism
java.lang.Object
com.adriangarcia.metaheuristics.tsmbfoa.Mechanism
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.
-
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
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 Configuratorproblem
- object of the class Problemfunction
- 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.
-