jmetal.problems.WFG
Class WFG

java.lang.Object
  extended by jmetal.core.Problem
      extended by jmetal.problems.WFG.WFG
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
WFG1, WFG2, WFG3, WFG4, WFG5, WFG6, WFG7, WFG8, WFG9

public abstract class WFG
extends Problem

Implements a reference abstract class for all WFG test problems Reference: Simon Huband, Luigi Barone, Lyndon While, Phil Hingston A Scalable Multi-objective Test Problem Toolkit. Evolutionary Multi-Criterion Optimization: Third International Conference, EMO 2005. Proceedings, volume 3410 of Lecture Notes in Computer Science

See Also:
Serialized Form

Field Summary
protected  int[] A_
           
protected  int D_
           
protected  int k_
           
protected  int l_
           
protected  int M_
           
protected  java.util.Random random
           
protected  int[] S_
           
 
Fields inherited from class jmetal.core.Problem
length_, lowerLimit_, numberOfConstraints_, numberOfObjectives_, numberOfVariables_, problemName_, solutionType_, upperLimit_
 
Constructor Summary
WFG(java.lang.String solutionType, java.lang.Integer k, java.lang.Integer l, java.lang.Integer M)
          Constructor Creates a WFG problem
 
Method Summary
 float[] calculate_x(float[] t)
          Gets the x vector (consulte WFG tooltik reference)
 float correct_to_01(float a)
           
abstract  float[] evaluate(float[] variables)
          Evaluates a solution
 float[] normalise(float[] z)
          Normalizes a vector (consulte WFG toolkit reference)
 float[] subVector(float[] z, int head, int tail)
          Gets a subvector of a given vector (Head inclusive and tail inclusive)
 
Methods inherited from class jmetal.core.Problem
evaluate, evaluateConstraints, getLength, getLowerLimit, getName, getNumberOfBits, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables, getPrecision, getPrecision, getSolutionType, getUpperLimit, setNumberOfVariables, setPrecision, setSolutionType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

k_

protected int k_

M_

protected int M_

l_

protected int l_

A_

protected int[] A_

S_

protected int[] S_

D_

protected int D_

random

protected java.util.Random random
Constructor Detail

WFG

public WFG(java.lang.String solutionType,
           java.lang.Integer k,
           java.lang.Integer l,
           java.lang.Integer M)
Constructor Creates a WFG problem

Parameters:
k - position-related parameters
l - distance-related parameters
M - Number of objectives
solutionType - The solution type must "Real" or "BinaryReal".
Method Detail

calculate_x

public float[] calculate_x(float[] t)
Gets the x vector (consulte WFG tooltik reference)


normalise

public float[] normalise(float[] z)
Normalizes a vector (consulte WFG toolkit reference)


correct_to_01

public float correct_to_01(float a)

subVector

public float[] subVector(float[] z,
                         int head,
                         int tail)
Gets a subvector of a given vector (Head inclusive and tail inclusive)

Parameters:
z - the vector
Returns:
the subvector

evaluate

public abstract float[] evaluate(float[] variables)
Evaluates a solution

Parameters:
variables - The solution to evaluate
Returns:
a double [] with the evaluation results