Changed base class eoEsBase to eoFixedLength

This commit is contained in:
mac 2000-06-13 10:27:10 +00:00
commit b5222c8aa5
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
#include <es/eoEsBase.h> #include <eoFixedLength.h>
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@ -7,7 +7,7 @@
@param _ind A floatingpoint vector @param _ind A floatingpoint vector
*/ */
double real_value(const eoEsBase<double>& _ind) double real_value(const eoFixedLength<double, double>& _ind)
{ {
double sum = 0; /* compute in double format, even if return a float */ double sum = 0; /* compute in double format, even if return a float */
for (unsigned i = 0; i < _ind.size(); i++) for (unsigned i = 0; i < _ind.size(); i++)

View file

@ -94,7 +94,7 @@ template <class EOT>
void runAlgorithm(EOT, eoParser& _parser, eoEsObjectiveBounds& _bounds) void runAlgorithm(EOT, eoParser& _parser, eoEsObjectiveBounds& _bounds)
{ {
// evaluation // evaluation
eoEvalFuncPtr<eoEsBase<FitT> > eval( real_value ); eoEvalFuncPtr<eoFixedLength<FitT, double> > eval( real_value );
// population parameters, unfortunately these can not be altered in the state file // population parameters, unfortunately these can not be altered in the state file
eoValueParam<unsigned> mu = _parser.createParam(unsigned(50), "mu","Size of the population"); eoValueParam<unsigned> mu = _parser.createParam(unsigned(50), "mu","Size of the population");