Fixed bug in eoGOpSelector (missing break!)

eoOp.h: binOp's second arg is const once more

all dsp and dsw files were touched by msvc, but did add some stuff (which
will be added to eo later)

Hope this all works
This commit is contained in:
mac 2000-03-06 16:05:47 +00:00
commit 6469376880
27 changed files with 2730 additions and 2471 deletions

View file

@ -31,7 +31,6 @@
// EO includes
#include <eoRnd.h>
#include <eoPersistent.h>
#include <eoEvalFunc.h>
/** Subpopulation: it is used to move parts of population
from one algorithm to another and one population to another. It is safer
@ -91,20 +90,6 @@ class eoPop: public vector<EOT>, public eoObject, public eoPersistent {
}
};
/** Ctor for fixed-size chromosomes, with variable content
@param _popSize total population size
@param _eoSize chromosome size. EOT should accept a fixed-size ctor
@param _geneRdn random number generator for each of the genes
*/
eoPop( unsigned _popSize, unsigned _eoSize, eoRnd<Type> & _geneRnd, eoEvalFunc<EOT>& _eval)
:vector<EOT>() {
for ( unsigned i = 0; i < _popSize; i ++ ){
EOT tmpEOT( _eoSize, _geneRnd);
push_back( tmpEOT );
_eval(back());
}
};
/** Ctor from an istream; reads the population from a stream,
each element should be in different lines