net.sourceforge.cilib.problem.boundaryconstraint
Class PeriodicBoundaryConstraint

java.lang.Object
  extended by net.sourceforge.cilib.problem.boundaryconstraint.PeriodicBoundaryConstraint
All Implemented Interfaces:
Serializable, BoundaryConstraint, Cloneable

public class PeriodicBoundaryConstraint
extends Object
implements BoundaryConstraint

If a particle oversteps the upper boundary it gets re-initialised and placed near the lower boundary and vice versa.

References:

  @inproceedings{ZXB04, author = "W.-J. Zhang and X.-F. Xie and D.-C. Bi",
                      title = "Handling boundary constraints for numerical optimization by
                      particle swarm flying in periodic search space",
                      booktitle = "IEEE Congress on Evolutionary Computation", month = jun,
                      year = {2004}, volume = "2", pages = {2307--2311} }
 

Author:
Wiehann Matthysen
See Also:
Serialized Form

Constructor Summary
PeriodicBoundaryConstraint()
           
 
Method Summary
 void enforce(Entity entity)
          Enforce the defined boundary constraint on the provided Entity.
 BoundaryConstraint getClone()
          Create a cloned copy of the current object and return it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeriodicBoundaryConstraint

public PeriodicBoundaryConstraint()
Method Detail

getClone

public BoundaryConstraint 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 BoundaryConstraint
Specified by:
getClone in interface Cloneable
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

enforce

public void enforce(Entity entity)
Enforce the defined boundary constraint on the provided Entity.

Specified by:
enforce in interface BoundaryConstraint
Parameters:
entity - The Entity with which the boundary is to be enforced.


Copyright © 2009 CIRG. All Rights Reserved.