net.sourceforge.cilib.functions.continuous
Class Michalewicz12

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

public class Michalewicz12
extends ContinuousFunction

Michalewicz function.

Title: CILib

Description: CILib (Computational Intelligence Library)

Copyright: Copyright (c) 2004

Company:

Characteristics: f(x) = -4.687 if n = 5 f(x) = -9.66 if n = 10

Version:
1.0
Author:
Clive Naicker
See Also:
Serialized Form

Constructor Summary
Michalewicz12()
          Create an instance of Michalewicz12.
 
Method Summary
 double evaluate(Vector input)
          Evaluate the function with the given Vector as input.
 Michalewicz12 getClone()
          Create a cloned copy of the current object and return it.
 int getM()
          Get the value for M.
 Object getMinimum()
          Accessor for the function minimum.
 void setM(int m)
          Set the value for M.
 
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

Michalewicz12

public Michalewicz12()
Create an instance of Michalewicz12. Domain is set to R(0, PI)^30

Method Detail

getClone

public Michalewicz12 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()
Accessor for the function minimum. This is the minimum value of the function in the given domain.

Overrides:
getMinimum in class ContinuousFunction
Returns:
The minimum function value.

evaluate

public double evaluate(Vector input)
Evaluate the function with the given Vector as input.

Specified by:
evaluate in class ContinuousFunction
Parameters:
input - The input Vector.
Returns:
The value of the evaluation.

getM

public int getM()
Get the value for M.

Returns:
The value for M.

setM

public void setM(int m)
Set the value for M.

Parameters:
m - The value to set.


Copyright © 2009 CIRG. All Rights Reserved.