jmetal.problems.WFG
Class WFG4

java.lang.Object
  extended by jmetal.core.Problem
      extended by jmetal.problems.WFG.WFG
          extended by jmetal.problems.WFG.WFG4
All Implemented Interfaces:
java.io.Serializable

public class WFG4
extends WFG

This class implements the WFG4 problem 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
 
Fields inherited from class jmetal.problems.WFG.WFG
A_, D_, k_, l_, M_, random, S_
 
Fields inherited from class jmetal.core.Problem
length_, lowerLimit_, numberOfConstraints_, numberOfObjectives_, numberOfVariables_, problemName_, solutionType_, upperLimit_
 
Constructor Summary
WFG4(java.lang.String solutionType)
          Creates a default WFG4 with 2 position-related parameter, 4 distance-related parameter and 2 objectives
WFG4(java.lang.String solutionType, java.lang.Integer k, java.lang.Integer l, java.lang.Integer M)
          Creates a WFG4 problem instance
 
Method Summary
 float[] evaluate(float[] z)
          Evaluates a solution
 void evaluate(Solution solution)
          Evaluates a solution
 float[] t1(float[] z, int k)
          WFG4 t1 transformation
 float[] t2(float[] z, int k, int M)
          WFG4 t2 transformation
 
Methods inherited from class jmetal.problems.WFG.WFG
calculate_x, correct_to_01, normalise, subVector
 
Methods inherited from class jmetal.core.Problem
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
 

Constructor Detail

WFG4

public WFG4(java.lang.String solutionType)
     throws java.lang.ClassNotFoundException
Creates a default WFG4 with 2 position-related parameter, 4 distance-related parameter and 2 objectives

Parameters:
solutionType - The solution type must "Real" or "BinaryReal".
Throws:
java.lang.ClassNotFoundException

WFG4

public WFG4(java.lang.String solutionType,
            java.lang.Integer k,
            java.lang.Integer l,
            java.lang.Integer M)
     throws java.lang.ClassNotFoundException
Creates a WFG4 problem instance

Parameters:
k - Number of position parameters
l - Number of distance parameters
M - Number of objective functions
solutionType - The solution type must "Real" or "BinaryReal".
Throws:
java.lang.ClassNotFoundException
Method Detail

evaluate

public float[] evaluate(float[] z)
Evaluates a solution

Specified by:
evaluate in class WFG
Parameters:
z - The solution to evaluate
Returns:
double [] with the evaluation results

t1

public float[] t1(float[] z,
                  int k)
WFG4 t1 transformation


t2

public float[] t2(float[] z,
                  int k,
                  int M)
WFG4 t2 transformation


evaluate

public final void evaluate(Solution solution)
                    throws JMException
Evaluates a solution

Specified by:
evaluate in class Problem
Parameters:
solution - The solution to evaluate
Throws:
JMException