Class ConvexC2_DTLZ2

All Implemented Interfaces:
AutoCloseable, Problem, AnalyticalProblem

public class ConvexC2_DTLZ2 extends ConvexDTLZ2
The convex C2-DTLZ2 problem.
  • Constructor Details

    • ConvexC2_DTLZ2

      public ConvexC2_DTLZ2(int numberOfVariables, int numberOfObjectives)
      Constructs a convex C2-DTLZ2 test problem with the specified number of variables and objectives.
      Parameters:
      numberOfVariables - the number of variables for this problem
      numberOfObjectives - the number of objectives for this problem
    • ConvexC2_DTLZ2

      public ConvexC2_DTLZ2(int numberOfObjectives)
      Constructs a convex C2-DTLZ2 test problem with the specified number of objectives. This is equivalent to calling new DTLZ2(numberOfObjectives+9, numberOfObjectives).
      Parameters:
      numberOfObjectives - the number of objectives for this problem
  • Method Details

    • getNumberOfConstraints

      public int getNumberOfConstraints()
      Description copied from interface: Problem
      Returns the number of constraints defined by this problem.
      Specified by:
      getNumberOfConstraints in interface Problem
      Overrides:
      getNumberOfConstraints in class AbstractProblem
      Returns:
      the number of constraints defined by this problem
    • 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
      Overrides:
      newSolution in class DTLZ
      Returns:
      a new solution for this problem
    • 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.
      Specified by:
      evaluate in interface Problem
      Overrides:
      evaluate in class ConvexDTLZ2
      Parameters:
      solution - the solution to be evaluated