net.sourceforge.cilib.functions.continuous
Class Schaffer6

java.lang.Object
  extended by net.sourceforge.cilib.functions.Function
      extended by net.sourceforge.cilib.functions.ContinuousFunction
          extended by net.sourceforge.cilib.functions.continuous.Schaffer6
All Implemented Interfaces:
Serializable, Cloneable

public class Schaffer6
extends ContinuousFunction

The Schaffer F6 function. Minimum: f(x,y) = 0; (x,y) = (0,0);

Characteristics:

LaTeX function code:
\textbf{Schaffer F6:} $f(x) = 0.5 + \frac{(sin^{2} \sqrt{x^2 + y^2}) - 0.5}{(1.0 + 0.001(x^2 + y^2))^2}$

Author:
Gary Pampara
See Also:
Serialized Form

Constructor Summary
Schaffer6()
          Constructor.
 
Method Summary
 double evaluate(Vector input)
          Evaluate the function and return the evaluation.
 Schaffer6 getClone()
          Create a cloned copy of the current object and return it.
 Object getMinimum()
          Initialise the function minimum value.
 
Methods inherited from class net.sourceforge.cilib.functions.ContinuousFunction
evaluate, getMaximum
 
Methods inherited from class net.sourceforge.cilib.functions.Function
getBehavioralDomainRegistry, getDimension, getDomain, getDomainRegistry, setBehavioralDomain, setBehaviouralDomainRegistry, setDomain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schaffer6

public Schaffer6()
Constructor. Initialise the function to the initial domain of R(-100.0,100.0)^2

Method Detail

getClone

public Schaffer6 getClone()
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface Cloneable
Specified by:
getClone in class ContinuousFunction
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

getMinimum

public Object getMinimum()
Initialise the function minimum value.

Overrides:
getMinimum in class ContinuousFunction
Returns:
The minimum value as a Double object with value of 0.0

evaluate

public double evaluate(Vector input)
Evaluate the function and return the evaluation.

Specified by:
evaluate in class ContinuousFunction
Parameters:
x - The input vector to the function
Returns:
A double value representing the function evaluation


Copyright © 2009 CIRG. All Rights Reserved.