
net.sourceforge.cilib.entity.topologies.GBestTopology Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cilib-library Show documentation
Show all versions of cilib-library Show documentation
A library of composable components enabling simpler Computational Intelligence
/** __ __
* _____ _/ /_/ /_ Computational Intelligence Library (CIlib)
* / ___/ / / / __ \ (c) CIRG @ UP
* / /__/ / / / /_/ / http://cilib.net
* \___/_/_/_/_.___/
*/
package net.sourceforge.cilib.entity.topologies;
import java.util.Iterator;
import net.sourceforge.cilib.entity.Entity;
/**
*
* Implementation of the gbest neighbourhoodOf topology. This topology is a special
* case of the LBestTopology where the neighbourhoodOf size is the swarm size.
*
* References:
*
-
* R.C. Eberhart, P. Simpson, and R. Drobbins, "Computational Intelligence PC Tools,"
* chapter 6, pp. 212-226. Academic Press Professional, 1996.
*
*
* @param The {@linkplain Entity} type.
*/
public class GBestTopology extends AbstractTopology {
private static final long serialVersionUID = 3190027340582769112L;
/**
* Default constructor.
*/
public GBestTopology() {
super();
}
/**
* Copy constructor.
*/
public GBestTopology(GBestTopology copy) {
super(copy);
}
/**
* {@inheritDoc}
*/
@Override
public GBestTopology getClone() {
return new GBestTopology(this);
}
/**
* {@inheritDoc}
*/
@Override
public int getNeighbourhoodSize() {
return size();
}
/**
* {@inheritDoc}
*/
@Override
protected Iterator neighbourhoodOf(E e) {
return iterator();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy