Class PenalizedShubertFunction

java.lang.Object
planner.utils.evaluators.testfunctions.TestFunction
planner.utils.evaluators.testfunctions.PenalizedShubertFunction
All Implemented Interfaces:
Evaluator
Direct Known Subclasses:
ModifiedPenalizedShubertFunction

public class PenalizedShubertFunction extends TestFunction
PenalizedShubertFunction is a class implementing the Penalized Shubert's function over the TestFunction abstract base class.
Since:
1.0
Version:
1.0
Author:
Alicia Vazquez Ramos
  • Field Summary

    Fields inherited from class planner.utils.evaluators.testfunctions.TestFunction

    exe
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    evaluate(double[] genotype)
    Computes the Penalized Shubert's function given a candidate solution.
    protected double
    g(double genotype)
    Auxiliar function, g.
    Gets a string representing the visualization by console of the Test Function.
    protected double
    u(double z)
    Auxiliar function, u.

    Methods inherited from class java.lang.Object

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

    • PenalizedShubertFunction

      public PenalizedShubertFunction(Execution exe)
      Constructor.
      Parameters:
      exe - configuration of the current execution.
  • Method Details

    • evaluate

      public double evaluate(double[] genotype) throws IncompatibleConfigurationException
      Computes the Penalized Shubert's function given a candidate solution.
      Parameters:
      genotype - candidate solution.
      Returns:
      fitness of the candidate solution.
      Throws:
      IncompatibleConfigurationException - when the dimension of the problem does not fit with the dimensionality of the function used as evaluator. Thrown if the problem is not 1-Dimensional or 2-Dimensional.
    • g

      protected double g(double genotype)
      Auxiliar function, g.
      Parameters:
      genotype - candidate solution.
      Returns:
      g value
    • u

      protected double u(double z)
      Auxiliar function, u.
      Parameters:
      z - real value.
      Returns:
      u value.
    • toString

      public String toString()
      Gets a string representing the visualization by console of the Test Function.
      Overrides:
      toString in class Object
      Returns:
      the name of the Test Function.