Class UF12

java.lang.Object
org.moeaframework.problem.AbstractProblem
org.moeaframework.problem.CEC2009.UF12
All Implemented Interfaces:
AutoCloseable, Problem

public class UF12 extends AbstractProblem
The unconstrained UF12 test problem from the CEC 2009 special session and competition.
  • Constructor Details

    • UF12

      public UF12()
      Constructs a UF12 test problem with 30 decision variables and 5 objectives.
    • UF12

      public UF12(int numberOfVariables, int numberOfObjectives)
      Constructs a UF12 test problem with the specified number of decision variables and objectives.
      Parameters:
      numberOfVariables - the number of decision variables
      numberOfObjectives - the number of objectives
  • 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
    • 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.
      Returns:
      a new solution for this problem