add PSO sources for paradiseo-eo
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@296 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
3b13df8a4e
commit
e87e390892
1 changed files with 43 additions and 0 deletions
43
branches/pso/eoTopology.h
Normal file
43
branches/pso/eoTopology.h
Normal file
|
|
@ -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 <eoNeighborhood.h>
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Define the abstract class for a swarm optimization topology.
|
||||||
|
*/
|
||||||
|
template < class POT > class eoTopology:public eoPop < POT >
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
virtual void setup(const eoPop<POT> & _pop)=0;
|
||||||
|
virtual void update(POT & ,unsigned _indice)=0;
|
||||||
|
virtual POT & best (unsigned ) = 0;
|
||||||
|
virtual void printOn(){}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif /*EOTOPOLOGY_H_ */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue