Class ZDT1

All Implemented Interfaces:
AutoCloseable, Problem

public class ZDT1 extends ZDT
The ZDT1 test problem.
  • Constructor Details

    • ZDT1

      public ZDT1()
      Constructs a ZDT1 test problem with 30 decision variables.
    • ZDT1

      public ZDT1(int numberOfVariables)
      Constructs a ZDT1 test problem with the specified number of decision variables.
      Parameters:
      numberOfVariables - the number of decision variables
  • Method Details

    • evaluate

      public void evaluate(Solution solution)
      Description copied from interface: Problem
      Evaluates the solution, updating the solution's objectives in place. Algorithms must explicitly call this method when appropriate to evaluate new solutions or reevaluate modified solutions.
      Parameters:
      solution - the solution to be evaluated