diff --git a/branches/pso/eoTopology.h b/branches/pso/eoTopology.h new file mode 100644 index 000000000..53c2081a5 --- /dev/null +++ b/branches/pso/eoTopology.h @@ -0,0 +1,43 @@ +// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*- + +//----------------------------------------------------------------------------- +// eoTopology.h +// (c) OPAC 2007 +/* + + + Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr + */ +//----------------------------------------------------------------------------- + +#ifndef EOTOPOLOGY_H_ +#define EOTOPOLOGY_H_ + +//----------------------------------------------------------------------------- +#include +//----------------------------------------------------------------------------- + + +/** + * Define the abstract class for a swarm optimization topology. + */ +template < class POT > class eoTopology:public eoPop < POT > +{ +public: + + virtual void setup(const eoPop & _pop)=0; + virtual void update(POT & ,unsigned _indice)=0; + virtual POT & best (unsigned ) = 0; + virtual void printOn(){} +}; + + +#endif /*EOTOPOLOGY_H_ */ + + + + + + + +