Changed base class eoEsBase to eoFixedLength
This commit is contained in:
parent
0219de5b61
commit
b5222c8aa5
2 changed files with 3 additions and 3 deletions
|
|
@ -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++)
|
||||||
|
|
|
||||||
|
|
@ -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");
|
||||||
|
|
|
||||||
Reference in a new issue