Class WFG

All Implemented Interfaces:
AutoCloseable, Problem, AnalyticalProblem
Direct Known Subclasses:
WFG1, WFG2, WFG3, WFG4, WFG5, WFG6, WFG7, WFG8, WFG9

public abstract class WFG extends AbstractProblem implements AnalyticalProblem
Implements methods shared by all problems in the WFG test suite.
  • Field Details

    • k

      protected final int k
      The number of position-related variables defined by this problem.
    • l

      protected final int l
      The number of distance-related variables defined by this problem.
    • M

      protected final int M
      The number of objectives defined by this problem.
  • Constructor Details

    • WFG

      public WFG(int k, int l, int M)
      Constructs a WFG problem instance with the specified number of position-related and distance-related variables and the specified number of objectives.
      Parameters:
      k - the number of position-related variables defined by this problem
      l - the number of distance-related variables defined by this problem
      M - the number of objectives defined by this problem
  • Method Details

    • newSolution

      public Solution newSolution()
      Description copied from interface: Problem
      Returns a new solution for this problem. Implementations must initialize the variables so that the valid range of values is defined, but typically leave the actual value at a default or undefined state.
      Specified by:
      newSolution in interface Problem
      Returns:
      a new solution for this problem