Class ZDT2


public class ZDT2 extends ZDT
ZDT2 benchmark problem ZDT2 is a multi-objective optimization problem f1(x) = x1 f2(x) = g(x) * h(f1(x), g(x)) g(x) = 1 + 9 * (sum(xj) / (n-1)) h(f1, g) = 1 - (f1 / g)^2 xj in [0, 1] Pareto optimal front: convex
  • Constructor Details

    • ZDT2

      public ZDT2(Integer numberOfVariables)
      Constructor
      Parameters:
      numberOfVariables - Number of variables
    • ZDT2

      public ZDT2()
      Constructor
  • Method Details

    • evaluate

      public void evaluate(Solution<Variable<Double>> solution)
      Description copied from class: ZDT
      Evaluate a single solution
      Specified by:
      evaluate in class ZDT
      Parameters:
      solution - Solution to evaluate.
    • computeParetoOptimalFront

      public Solutions<Variable<Double>> computeParetoOptimalFront(int n)
      Compute the Pareto optimal front
      Parameters:
      n - Number of points
      Returns:
      Pareto optimal front
    • clone

      public ZDT2 clone()
      Specified by:
      clone in class Problem<Variable<Double>>