Class Schwefel

java.lang.Object
org.moeaframework.problem.AbstractProblem
org.moeaframework.problem.single.Schwefel
All Implemented Interfaces:
AutoCloseable, Problem

public class Schwefel extends AbstractProblem
The single-objective Schwefel problem with an optimum at x = (420.9687, ..., 420.9687) with f(x) = 0.

References:

  1. Laguna, M. and Marti, R. "Experimental Testing of Advanced Scatter Search Designs for Global Optimization of Multimodal Functions." (2002).
  • Constructor Details

    • Schwefel

      public Schwefel()
      Constructs a new instance of the Schwefel problem with two decision variables.
    • Schwefel

      public Schwefel(int numberOfVariables)
      Constructs a new instance of the Schwefel problem.
      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
    • 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
    • getReferenceSet

      public NondominatedPopulation getReferenceSet()
      Returns the reference set, typically a single solution unless the problem has multiple local minima, for this single objective problem.
      Returns:
      the reference set